Skip to main content
Associate
March 10, 2026
Solved

U575VGT6 CMake+Trustzone Debug Session Error

  • March 10, 2026
  • 1 reply
  • 132 views

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.  

f11debug.png`

popup.png

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 .

TZ enabled.png

The debug configuration should be flashing the secure image before the non-secure.

default_config.png

GTZC_NS/S are enabled.

hurrdur.png

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,

Best answer by jasvoboda_LS

Found AN5394.  

Mods feel free to delete this post.

1 reply

jasvoboda_LSAuthorBest answer
Associate
March 10, 2026

Found AN5394.  

Mods feel free to delete this post.