-
Notifications
You must be signed in to change notification settings - Fork 3k
LPC55S69 KVSTORE test fails with GCC & IAR compilers #10262
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
Please try with the below GCC toolchain. arm-none-eabi-gcc.exe (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 7.3.1 20180622 (release) |
I don't see the failure. Below is the test run results with IAR. With GCC, the toolchain should be updated. |
The above was run on mbed-os master |
I tried with tag mbed-os-5.12.0 and the tests passed as well. |
@dannybenor . Please give it a try as well. |
Thanks a lot for confirming this is working on your side Mahesh. Our documentation currently states that the supported GCC compiler is https://os.mbed.com/docs/mbed-os/v5.12/tools/index.html I'll check if this is correct, or needs to be reviewed/updated. |
confirmed with our team that version 6 is still the officially supported version. @mmahadevan108 - can you investigate further with gcc 6 and see if there is a possible workaround? @dannybenor - since this is kvstore related, can you confirm which compiler version you have been using, and if you have seen this issue? |
@maclobdell Cortex-M33 is ARMv8M architecture which is supported by ARMC6 toolchain, GCC ARM version 7 (higher) and IAR 8.x. Hence you would need to upgrade your GCC toolchain. |
The compiler versions are correct however . ARMv8M is not supported in GCC ARM 6. @ARMmbed/mbed-os-psa is that correct? |
@0xc0170 GCC_ARM 6 is the first version of GCC that supports V8m |
@mmahadevan108 This is a valid bug in the currently supported GCC ARM version |
@orenc17 @dannybenor Please confirm if this is a valid issue, I am unable to reproduce. |
@maclobdell |
@maclobdell Is this still an issue? Multiple people cannot reproduce. |
@orenc17 & @mmahadevan108 - Can you provide the exact version of GCC and IAR that you used in your testing? I suspect that everything is working with GCC v7 and IAR 8.something. However, Mbed OS currently specifies different compiler versions (GCC v6). So, while it may be working with one compiler, we need to understand why it doesn't work with the other compiler version. If it can't work, then we need to get our team to officially document which toolchain is required for v8m targets and Mbed OS. |
I just tested Mbed OS 5.12.1 with GCC compiler 7.3.1 running features-storage-tests-kvstore-static_tests results in the below results. could the hardware I'm testing have a problem? Or maybe some expected configuration of the chip is not right? Or maybe DAPLink version has a problem? Can someone help diagnose the test results?
cc @ARMmbed/mbed-os-storage |
Can you try a different board. Also I am using the DAPLink binaries from the below link: |
@ARMmbed/mbed-os-storage |
@cmonr, it is not reproduced on our side |
@maclobdell closing or talk to @alzix |
I've tried multiple boards. I've tried updating the Daplink to the latest. I get consistent failures. Even if I go back to ARM compiler 6, the tests eventually time out. There must be some misunderstood dependency. The tests are not stable. Can I get some guidance and help here? |
Hi @maclobdell, can you please provide your KVStore configuration under features/storage/kvstore/conf? |
I'm testing LPC55S69 with Mbed OS 5.12.1 with no changes in features/storage/kvstore/conf |
I've run the https://mbed-os.mbedcloudtesting.com/view/PSA/job/PSA-SPM-tests/54/ - 5.12.1 GCC & IAR @ARMmbed/mbed-os-maintainers i believe we can close the issue |
Based on suggestion from Mahesh at NXP, I set jumper J10, erased the flash using Keil uVision, removed J10, then used a freshly installed Mbed OS 5.12.2, I ran the tests with GCC 7.3.1 and the tests all passed. |
so there is definitely a dependency on the initial state of flash. |
also, I noticed that if I switch from GCC_ARM to IAR, I have to erase the flash in-between, otherwise it will fail with IAR. |
You should never have to manually wipe the flash in order to get After digging a little into this, it's clear there is a bug in the LPC55S69 target support that causes It seems like there might be some conflict caused by the default |
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. |
We closed this issue because it has been inactive for quite some time and we believe it to be low priority. If you think that the priority should be higher, then please reopen with your justification for increasing the priority. |
Uh oh!
There was an error while loading. Please reload this page.
Description
Board: LPCXpresso55S69
Mbed OS Version: 5.12.0
Compiler Version: GNU Tools for ARM Embedded Processors 6-2017-q1-update) 6.3.1 20170215
(Also fails with IAR 8.32)
Test Command: mbed test -m LPC55S69_NS -t GCC_ARM
Test: features-storage-tests-kvstore-static_tests x
Result: TIMEOUT
Platform: LPC55S69_NS - Toolchain: GCC_ARM
Elapsed Time: 3021.98 seconds
Build Path: BUILD/tests/LPC55S69_NS/GCC_ARM
Absolute Build Path: C:\Users\maclob01\Documents\mbed-os-5\mbed-os-cy-nxp\BUILD\tests\LPC55S69_NS\GCC_ARM
Copy Method: default
Image Path: BUILD/tests/LPC55S69_NS/GCC_ARM/features/storage/TESTS/kvstore/static_tests/static_tests.hex
This test case fails. Many other test cases are then skipped.
Testcase: set_several_keys_multithreaded
Result: ERROR
Elapsed Time: 0.00
Start Time: 28-03-2019 00:25:02.160000
End Time: 28-03-2019 00:25:02.160000
Failed: 0
Passed: 0
uTest Log
[1553750702.11][CONN][RXD] >>> Running case #7: 'set_several_keys_multithreaded'...
[1553750702.16][CONN][INF] found KV pair in stream: {{__testcase_start;set_several_keys_multithreaded}}, queued...
[1553750702.22][CONN][RXD] :140::FAIL: Expected 0 Was 284
[1553750702.22][CONN][RXD] :0::PASS
[1553753698.36][HTST][INF] test suite run finished after 3000.06 sec...
[1553753698.36][CONN][INF] received special event '__host_test_finished' value='True', finishing
[1553753698.41][HTST][INF] CONN exited with code: 0
[1553753698.41][HTST][INF] No events in queue
[1553753698.41][HTST][INF] stopped consuming events
[1553753698.41][HTST][INF] host test result(): None
[1553753698.41][HTST][WRN] missing __exit event from DUT
[1553753698.41][HTST][WRN] missing __exit_event_queue event from host test
[1553753698.41][HTST][ERR] missing __exit_event_queue event from host test and no result from host test, timeout...
[1553753698.41][HTST][INF] calling blocking teardown()
[1553753698.41][HTST][INF] teardown() finished
[1553753698.41][HTST][INF] {{result;timeout}}
Full Test Log
lpc55s69_evk-kvstore-test-fail.txt
cc @mmahadevan108
cc @dannybenor
Issue request type
The text was updated successfully, but these errors were encountered: