2026-02-21 11:00 AM
Hello everyone,
I'm trying to disable the TrustZone (TZEN bit) on an STM32L562E-DK development board to leave it in a completely clean state (without protections) so I can use it as a standard MCU. However, I'm encountering errors when trying to modify the Option Bytes with STM32CubeProgrammer, and I would appreciate your help.
My configuration:
The problem:
From the STM32CubeProgrammer graphical interface, I can modify and apply changes to almost all Option Bytes (such as safe areas or write protection) without issue. However, when I try to uncheck the TZEN box (to set it to 0) and click "Apply," I get the following errors:
Error: Option Byte Programming failed Or modified by application after OB_LAUNCH
Error: Expected value for Option Byte "TZEN": 0x0, found: 0x1
It appears that the TZEN bit refuses to change and remains at 1.
What I've tried so far (following application notes and other forum threads):
My question is: What am I missing? Are there any additional steps or specific requirements for the STM32L562E-DK that I'm overlooking? I've tried doing it through the command line (STM32_Programmer_CLI.exe), but the result is the same. Has anyone successfully disabled TrustZone on this board and could share the exact command sequence or steps?
Solved! Go to Solution.
2026-02-21 1:30 PM
Security:How to disable TrustZone in STM32L5xx devices during development phase - stm32mcu
2026-02-21 1:30 PM
Security:How to disable TrustZone in STM32L5xx devices during development phase - stm32mcu
2026-02-22 2:57 AM
Thank you !! I finally managed to disable TrustZone.