-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hardware acceleration is not functional #6545
Comments
@juhaylinen the public example does not support Mbed OS 5.8 yet. It will be enabled only with 1.3.1 version of Cloud Client. |
[Mirrored to Jira] |
@ARMmbed/team-ublox |
NOTE: Broken after this PR which enabled HW acceleration #5630 [Mirrored to Jira] |
Ping - @adustm - any ideas/input to this? [Mirrored to Jira] |
Hello, Do you think this could be related to this ? I don't think that PR#5630 has been merged in 5.8.0 but much earlier. [Mirrored to Jira] |
Could you clarify if the use case UDP mode + mbed-os 5.8.0 + UBLOX_EVK_ODIN_W2 is working ? Kind regards |
We'll have a look at it. Internal Jira ticket: TE_OM2-175. |
@andreaslarssonublox @adustm - any news on this case? [Mirrored to Jira] |
Please keep us updated |
Can you check this @asifrizwanubx? |
We will update on it soon. |
Any news on this one? [Mirrored to Jira] |
is it reproducible on mbed-os-5.9.0? |
Work around didn't worked on mbed-os-5.9.0 |
I am getting build error on 5.8.0 Compile [ 16.3%]: m2mnsdlinterface.cpp
[Mirrored to Jira] |
You are using 1.4.0 version of Cloud Client? You can either downgrade back to 1.3.2 or test with Mbed OS 5.9.x. This is also broken with 5.9.3/master. 1.4.0 Cloud Client has dependency to mbed-coap 4.5.0 (Which is not available in Mbed OS 5.8.x) |
I have done investigation of odin drivers but there is no relation between odin drivers with disable\enable SHA256 hardware acceleration. The workaround didn't worked with the trace enable due to which I was not able to narrow down the issue. Any Suggestion? |
DTLS handshake also fails on Ethernet interface of UBLOX_EVK_ODIN_W2 with enable SHA256 hardware acceleration. I have no other ST board (hardware acceleration supported) due to which I will not able to verify the SHA256 hardware acceleration and DTLS. Could you please verify the same scenario on any other ST board? |
mbed-cloud-client-example not supported for NUCLEO_F439ZI with bootloader.
Tried without the bootloader, stuck on "developer flow"
[Mirrored to Jira] |
I would assume the bootloader to be exactly the same between Ublox ODIN W2 and F439ZI, but it is named after ODIN in the Client. |
F439ZI app didn't worked with Ublox ODIN W2 bootloader . |
Is there any way of enabling minimum logging, which will not effect the application. |
@asifrizwanubx Not a generic one. Some modules use mbed-trace library, which can be enabled by having For example:
[Mirrored to Jira] |
I tried this one but it seems me that it effect the timing issue of DTLS. Even the working scenario start failing. |
Yes, printing to serial port slows down the application. Enabling buffering on serial port might help a little bit That would allow Buffer size can be changed by
[Mirrored to Jira] |
Just FYI, I have found in the past that using mbed-trace over the serial port is too intrusive, introduces too many delays, however the ODIN module supports SWO and recent changes in mbed should allow So if you have SWO support in your debugger and you have a debugger (with either GDB or some SWO reading SW in the case of the Segger debugger) connected, all you should have to do is add the following code to your application to divert prints to SWO:
[Mirrored to Jira] |
|
@asifrizwanubx we should maybe put ITM support on the list for ODIN as it's really rather useful if you don't want to give up a serial port for debug purposes or want to suffer the delay of serial port operations. |
@ARMmbed/team-ublox - any news on this one? This one has been pending quite long time w/o any resolution. [Mirrored to Jira] |
As I already mentioned above this is due to hardware acceleration.
|
@asifrizwanubx from our tests (with mbed-cloud-client-example):
|
@teetak01 |
Experiencing similar issue with STM32F437 DTLS handshake when enabling crypto HW accel. Mbed OS 5.9.5 & Mbed Cloud Client 1.4.0 |
I was able to connect with Ublox Odin EVK W2 + DTLS after disabling the HW support.
Internal ticket: https://jira.arm.com/browse/IOTSSL-2507 [Mirrored to Jira] |
its already mentioned in the description of issue by @juhaylinen. Ublox Odin EVK W2 + DTLS is working without HW cryptographic. Could you explain the difference? |
@asifrizwanubx same thing. I only verified with out latest development version and moved the issue to correct team to properly fix the issue. This has been hanging way too long here. Also another change that is needed is:
For many boards something like this is also required to make the DTLS handshake to go through. [Mirrored to Jira] |
Mbed OS 5.10 might change that a tad bit (for better), as the packet handling for UDP has been optimized in MbedTLS side (ref: Mbed-TLS/mbedtls#1951, Mbed-TLS/mbedtls#1918). [Mirrored to Jira] |
See #6545 (comment) |
@screamerbg I would rename this issue as "Mbed OS hardware acceleration is broken". This is not board-specific. See my comments above for workaround and internal ticket. |
Note that this issue appears to be what @kjbracey-arm observed in #5079 (comment) |
Internal Jira reference: https://jira.arm.com/browse/IOTCRYPT-437 |
@oliverjharper Closing in Jira will close it also on Github (should this be reopened?). |
Description
Bug
Target
UBLOX_EVK_ODIN_W2
Toolchain:
GCC_ARM|ARM|IAR
mbed-cli version:
(
1.2.2
)mbed-os sha:
ad284b2 (mbed-os-5.8.0)
or
addec7b (mbed-os-5.8.1)
Expected behavior
DTLS handshake works and device connects to mbed cloud
Actual behavior
DTLS handshake fails and device fails to connect to mbed cloud
Steps to reproduce
clone https://github.com/ARMmbed/mbed-cloud-client-example
Edit file mbed_cloud_client_user_config.h to change transport mode from TCP to UDP
-#define MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP
+#define MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP
update mbed-os version to 5.8.0 or 5.8.1
compile the client example for UBLOX_EVK_ODIN_W2
Connection works if TCP is used
Workaround for UDP connection issue is to disable SHA256 hardware acceleration from file
https://github.com/ARMmbed/mbed-os/blob/master/features/mbedtls/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/mbedtls_device.h
The text was updated successfully, but these errors were encountered: