Question
STLink CLI utility can't program option bytes
Hi,
I'm trying to use the STLink CLI to reprogram option bytes on an STM32L4 MCU. The command is accepted, but doesn't reprogram the designed option:
'C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe' -c port=swd mode=hotplug -ob BFB2=0
-------------------------------------------------------------------
STM32CubeProgrammer v2.9.0
-------------------------------------------------------------------
ST-LINK SN : 55FF64066684564930141187
ST-LINK FW : V2J39S7
Board : --
Voltage : 3.35V
SWD freq : 4000 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x470
Revision ID : Rev W
Device name : STM32L4Rxxx/STM32L4Sxxx
Flash size : 2 MBytes
Device type : MCU
Device CPU : Cortex-M4
BL Version : --
Debug in Low Power mode enabled
...
PROGRAMMING OPTION BYTES AREA ...
Bank : 0x00
Address : 0x40022020
Size : 20 Bytes
██████████████████████████████████████████████████ 100%
Reconnecting...
Reconnected !
UPLOADING OPTION BYTES DATA ...
Bank : 0x00
Address : 0x40022020
Size : 20 Bytes
██████████████████████████████████████████████████ 100%
Bank : 0x01
Address : 0x40022044
Size : 16 Bytes
██████████████████████████████████████████████████ 100%
OPTION BYTE PROGRAMMING VERIFICATION:
Error: Expected value for Option Byte "bfb2": 0x0, found: 0x1
Error: Option Byte Programming failedHas anyone seen this, or know how to use the CLI utility to reprogram option bytes?
Thanks!
-Adam
