2026-04-25 4:14 AM
Hi everyone,
I’m currently experimenting with the GPIO_IOToggle_TrustZone example using STM32 TrustZone.
When I build and flash both the Secure and NonSecure firmware, everything works correctly: the LED toggles as expected, so the interaction between Secure and NonSecure worlds seems fine.
However, I’m running into an issue with debugging:
I am using STM32CubeIDE and I would like to understand how to properly configure the environment to be able to debug the NonSecure application as well.
Specifically:
Any guidance on the correct way to set up STM32CubeIDE for debugging the NonSecure project would be really appreciated.
Thanks in advance!
2026-04-28 10:49 AM
Hello @stst9187 ,
To debug both Secure and non secure applications, you just need to have a setup, based for instance on secure application on which you add non secure application in startup tab of debug configuration.
Just click on Add ... button, select non secure project and OK.
If you leave everything by default, the debugger will flash both applications, load symbols of both applications and stop in the main of the secure.
Best regards
Jocelyn