Skip to main content
Visitor
October 5, 2026
Question

How to define safe and non-safe zone banks without using STMCubeProgrammer software

  • October 5, 2026
  • 0 replies
  • 19 views

Hello everyone,

I'm developing an application using the STM32H563 with TrustZone enabled. Online tutorials first show configuring the fuse bits using the STMCubeProgrammer software:
TZEN
SECWM1_STRT
SECWM1_END
SECWM2_STRT
SECWM2_END

Then, the application is installed in the STMCubeIDE, where it is saved and executed correctly.

However, if the developer tries to install the application without going through the first step, the code is unable to exit the safe zone, resulting in a hard fault error. This is because the IDE, when TrustZone is enabled, assumes that all FLASH memory is in the safe zone.

I would like to change these fuse bits without using STMCubeProgrammer. I believe it's possible, but I haven't found any information where the result is satisfactory. Could someone help me?