-
Notifications
You must be signed in to change notification settings - Fork 3k
Mbed TLS example hangs running on UBLOX_EVK_ODIN_W2 when built with ARM and IAR compilers #5040
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
Comments
cc @andresag01 |
Changing the |
@scartmell-arm I'm wary of anything that works most of the time. That implies that it's really not working, but that something is masking the breakage. Further, I advocate against changing the profiles to "make code work" for the very same reason. If you application has very special needs, make your own profile. |
I wasn't advocating it as a fix, just narrowing down what the cause might be. |
Yeah, understood. I was just making sure that bystanders don't take it as a fix. |
Poked around a bit, looks like it's hanging in this function after calling into netconn_apimsg from printf statements prior to that call cause the example to run normally while blind waits do not. |
Reran this example on the same hardware for out of boxing, ARMc5 built with mbed-cli still fails in the same manner, however IAR functioned for me (built on the same machine as before when I reproduced it). Using the mbed-os-5.6.0-rc2 branch for mbed-os and head of master for the tls-client example: @scartmell-arm have you reran this recently? Wanted to double check with someone else.
|
Bump, have you been able to reproduce the issue? |
@0xc0170 No, but we're preparing a new release of the driver and will look at it later this week. |
@andreaslarssonublox: We have been testing the tls-client example on NUCLEO_F429ZI and we have not experienced this problem so far. However, the problem seems to be intermittent, so perhaps it is rare enough that it we just have not observed it yet. |
Update: It seems that this is no longer failing on our CI. However, please note that the CI only runs the test once, so it might be that the problem happens much less often. If would be good if someone can take a look at this... |
I tested this for the SHA 2f2da77 mentioned above and got the same faulty behavior. I also tested it for NUCLEO_F429ZI and it works.. One thing that differs is that in the mbed-os version above crypto HW acceleration is enabled for ODIN. It can't be enabled for NUCLEO_F429 since it has no crypto HW acceleration thus explaining why it works on NUCLEO but not ODIN. When the MBEDTLS_CONFIG_HW_SUPPORT define is removed from target.json for ODIN it seems to work for the version above. I also tested it before and after crypto HW acceleration was disabled in #5080: I have only verified it with the ARM compiler. This is most likely related to this issue: |
ARM Internal Ref: IOTSSL-2331 |
Is this problem still occurring for anyone? This does not occur for us with Mbed OS 5.9/Mbed TLS 2.10.0 on our CI. Otherwise I propose we close this as 'can't reproduce'. |
Uh oh!
There was an error while loading. Please reload this page.
Description
When building the mbed-os-example-tls/tls-client example using the default profile the program hangs when attempting to create a connection.
This happens predominantly with the ARM compiler, and about 20% of the time with IAR compiler.
The problem doesn't occur when building using the debug profile.
Target
UBLOX_EVK_ODIN_W2
Toolchain:
ARM | IAR
Toolchain Versions:
mbed-cli version:
1.2.0
mbed-os sha:
(master) Which as of now is:
https://github.com/ARMmbed/mbed-os/#2f2da779cbf61132dc7eeea32d455053177ff938
Steps to reproduce
Compiling with the release profile enabled:
Gives the following output before hanging:
Compiling with the debug profile enabled:
Gives the correct output:
The text was updated successfully, but these errors were encountered: