cancel
Showing results for 
Search instead for 
Did you mean: 

Can't program the option bytes using CLI?

thansen
Associate III

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.

1 REPLY 1
Kouthair
ST Employee

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.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.