-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
libraries.libc.sprintf_new: fails on lpcxpresso55s16_ns and lpcxpresso55s69_ns #35100
Comments
I'm not able to reproduce this. Performing a build with: $ cd tests/lib/sprintf
$ mkdir build && cd build
$ cmake -DBOARD=lpcxpresso55s69_ns -DCONF_FILE=prj_new.conf ..
$ make
$ JLinkExe -device lpc55s69 -if swd -speed 2000 -autoconnect 1
J-Link>erase
J-Link>loadfile zephyr/zephr.hex
J-Link>quit Then physically reset the board ... there is no serial output, which is expected since $ arm-none-eabi-readelf --sections --wide zephyr/zephyr.elf
There are 27 section headers, starting at offset 0xba3ec:
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al
[ 0] NULL 00000000 000000 000000 00 0 0 0
[ 1] rom_start PROGBITS 00040000 0000b4 000130 00 WAX 0 0 4
[ 2] text PROGBITS 00040130 0001e4 004daa 00 AX 0 0 4 Are you enabling TF-M here by hand, since you shouldn't be using the When I build with
Perhaps you are flashing the |
so basically all _ns platfrom need use a differrent link file? |
@hakehuang At present, yes, all Can I ask what the use case here is, and what your specific build command was that allowed you to get the specific error? I haven't been able to reproduce it myself on the lpc55s69. |
@microbuilder , I just run twist cases for these _ns boards and find above issues. And in this case, I remember we used to be able to merge two core image into one and wrap the complex steps into build setting. do we still plan to keep them sepatated? if so, can we provide a default TFM image there? |
We need to add I just tested with the following: $ cmake -DBOARD=lpcxpresso55s69_ns -DCONF_FILE=prj_new.conf -DCONFIG_BUILD_WITH_TFM=y ..
$ make
$ JLinkExe -device lpc55s69 -if swd -speed 2000 -autoconnect 1 The with the J-Link:
This passes the tests since there is now a valid S image at the start from TF-M:
|
@ioannisg @galak Should running tests on the |
I would put it in a bit more abstract level: we cannot run tests in CI for Non-Secure platforms, unless there is an in-tree and default-set solution for the co-existing Secure binary. If there's not, we exclude these platforms from any tests. So, since TF-M is the only in-tree Secure FW solution, the above reduces to: "run tests in CI for Non-Secure platforms, if BUILD_WITH_TFM is selected by default" |
So, yes, this is a bug. Unless there's an available pre-built, pre-flashed Secure FW component on the board. I don't think we have such boards now. |
@ioannisg I agree, and we should exclude anything where |
Rename the NXP LPCXpresso55S16 board definition from lpcxpresso55s16_ns (non-secure) to lpcxpresso55s16 and remove TF-M configuration options. While the LPC55S16 does have Arm TrustZone support, there is no TF-M support available upstream yet. Fixes zephyrproject-rtos#35100 Signed-off-by: Henrik Brix Andersen <[email protected]>
This commit forces the `CONFIG_BUILD_WITH_TFM=y` option when using the `_ns` build targets for the LPC55sXX. Using these targets in samples or in CI without an accompanying secure environment image (ex. TF-M) leads to execution failures, since the NS images are offset a predetermined amount. Fixes zephyrproject-rtos#35100 Signed-off-by: Kevin Townsend <[email protected]>
This commit forces the `CONFIG_BUILD_WITH_TFM=y` option when using the `_ns` build targets for the LPC55sXX. Using these targets in samples or in CI without an accompanying secure environment image (ex. TF-M) leads to execution failures, since the NS images are offset a predetermined amount. Fixes #35100 Signed-off-by: Kevin Townsend <[email protected]>
Describe the bug
ASSERTION FAI wehn run test_EOF
To Reproduce
Steps to reproduce the behavior:
lpcxpresso55s69_ns has the same problem
Expected behavior
test pass
Impact
sprint new conf setting features
Logs and console output
and for cmake -DBOARD=lpcxpresso55s16_ns build we see below failure
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: