2025-03-04 8:18 AM
Hi,
I'm using an STM32L562 Discovery Kit, and trying to use the VSCode extension to debug.
For now, I am only working with a basic code to blink LD10 with TrustZone activated.
Now, I have an issue when flashing the MCU : the program doesn't seam to be running with TrustZone, but the same code without TrustZone runs as expected.
I saw that when debugging (with STM32CubeIDE) I need to tell that I want to start in the Secure world.
https://youtu.be/R9DsR-qF3bw?si=qIQG0d2XnSpl39vA&t=1970
Do I need to set this somewhere in VSCode too, or is the default mode ?
Is "Build & Debug Microcontroller Secure and NonSecure - ST-Link" doing it by default ?
Thank you in advance,
Adrian