2026-05-11 7:35 AM
Trying to program the option bytes I get the error message shown below. Can someone tell me what is wrong? I have tried with and without the displ and I have also tried with only one option byte at the time.
C:\Temp\BMSM-18>"C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" -c port=SWD -ob TZEN=B4 SECWM1_STRT=0x0 SECWM1_END=0x0 SECWM2_STRT=0x1f SECWM2_END=0x0 displ
-------------------------------------------------------------------
STM32CubeProgrammer v2.22.0
-------------------------------------------------------------------
ST-LINK SN : 003F00383234511537333934
ST-LINK FW : V3J15M7
Board : STLINK-V3MINIE
Voltage : 3.29V
SWD freq : 8000 KHz
Connect mode: Normal
Reset mode : Software reset
Device ID : 0x478
Revision ID : --
Device name : STM32H533/523
NVM size : 512 KBytes
Device type : MCU
Device CPU : Cortex-M33
BL Version : 0xE2
SFSP Version: v1.2.0
Debug in Low Power mode enabled
Error: Wrong command -ob tzen=b4 secwm1_strt=0x0 secwm1_end=0x0 secwm2_strt=0x1f secwm2_end=0x0 displ: Unknown command or command missed some parameters, please refer to the help to see the supported commands.
2026-05-11 8:02 AM - edited 2026-05-11 8:04 AM
Hello @thansen ,
Can you try this command instead ?
> STM32_Programmer_CLI.exe -c port=SWD -ob TZEN=0xB4 -ob SECWM1_STRT=0x0 SECWM1_END=0x0 SECWM2_STRT=0x1f SECWM2_END=0x0 -ob displ
I have put the changes made to your command in bold.