Description
Describe the bug
Since Zephyr bumped to TF-M 2.2.x (commit f67be66), STM32 platforms with variant 'ns' fail to boot.
These are nucleo_l552ze_q, stm32l562e_dk and stm32l562e_dk.
Regression
- This is a regression.
Steps to reproduce
Reproduced building and programming, for example, the hello_world sample on target boards 'ns' variant:
For b_u585i_iot02a:
west build -b b_u585i_iot02a/stm32u585xx/ns samples/hello_world/
./build/tfm/api_ns/regression.sh
west flash
For nucleo_l552ze_q:
west build -b nucleo_l552ze_q/stm32l552xx/ns samples/hello_world/
./build/tfm/api_ns/regression.sh
west flash
For stm32l562e_dk:
west build -b stm32l562e_dk/stm32l562xx/ns samples/hello_world/
./build/tfm/api_ns/regression.sh
west flash
Build sequence is fine but when the boards boot, there are no trace messages printed
whereas, for the 3 boards mentioned above, we expect build traces like the below:
(...)
[INF] Starting bootloader
(...)
[INF] Bootloader chainload address offset: 0x38000
[INF] Jumping to the first image slot
Booting TF-M v2.2.0+65d861552
(...)
Creating an empty ITS flash layout.
Creating an empty PS flash layout.
[INF][PS] Encryption alg: 0x5500200
[INF][Crypto] Init HW accelerator...
[INF][Crypto] Init HW accelerator... complete.
*** Booting Zephyr OS build v4.2.0-rc1 ***
Hello World! b_u585i_iot02a/stm32u585xx/ns
Relevant log output
Impact
Major – Severely degrades functionality; workaround is difficult or unavailable.
Environment
- OS: Linux
- Toolchain: Zephyr SDK
- v4.2.0-rc1
Additional Context
No response