2026-03-09 6:19 PM
Hello Community,
I am migrating a prototype CMake application to TrustZone for a test board targeting the STM32U575VGT6 MCU. Launching a debug session for my project generates the following errors.
`
I've attached verbose console error output in the attached file (console_error_output.txt).
CubeProgrammer confirms I have the set Option Byte for TZEN .
The debug configuration should be flashing the secure image before the non-secure.
GTZC_NS/S are enabled.
I have been following the tutorial Develop TrustZone enabled applications on STM32L5 ARM MCUs with STM32CubeIDE - Webinar Replay . The instructions at 20:00 are completely arcane and I realize I am out of my depth of expertise to get this small project to work (.ioc attached).
Does anyone have an application note or tutorial, pertinent to the U5 series, that explains how to flash and launch debugger sessions for a pure CMake + TZ project using only STM32CubeIDE 2.1.0, CubeMX 6.17.0, and CubeProgrammer 2.22.0? All the documentation I have found is only relevant to EWARM or the Keil IDE.
Thank you all,
Solved! Go to Solution.
2026-03-10 9:38 AM
2026-03-10 9:38 AM
Found AN5394.
Mods feel free to delete this post.