2016-08-04 02:11 AM
ST-LINK CLI.exe don't accept the -OB argument
when i execute this commade line: ''C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\ST-LINK_CLI.exe'' –OB RDP=0 the software return : STM32 ST-LINK CLI v2.5.0 STM32 ST-LINK Command Line Interface Argument error.Use -? for help.2016-08-04 02:31 AM
Hi junique.julien,
you have to connect first:C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\ST-LINK_CLI.exe'' -c swd –OB RDP=0-Syrine-2016-08-04 02:48 AM
if I execute this commande line
''C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\ST-LINK_CLI.exe'' -c swd –OB RDP=0 the software return STM32 ST-LINK CLI v2.5.0 STM32 ST-LINK Command Line Interface ST-LINK SN : 53FF74064980555739101187 ST-LINK Firmware version : V2J23S4 Connected via SWD. SWD Frequency = 4000K. Target voltage = 3.2 V. Connection mode : Normal. Device ID:0x448 Device flash Size : 128 Kbytes Device family :STM32F072xx/F078xx but don't update the option bytes2016-08-04 03:02 AM
Hi junique.julien,
What do you mean by “but don't update the option bytes�: a fail message has been appeared? Try this command to display option bytes:''C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\ST-LINK_CLI.exe'' -c swd –OB RDP=0 -rOBAlso I recommend you to have a look to the STM32 ST-LINK utility command line interface (CLI) section in the UM0892 User manual-Syrine-2016-08-04 03:14 AM
There aren't fail messages et no change in display option bytes
for exemple: ''C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\ST-LINK_CLI.exe'' -rOB STM32 ST-LINK CLI v2.5.0 STM32 ST-LINK Command Line Interface ST-LINK SN : 53FF74064980555739101187 ST-LINK Firmware version : V2J23S4 Connected via SWD. SWD Frequency = 4000K. Target voltage = 3.2 V. Connection mode : Normal. Device ID:0x448 Device flash Size : 128 Kbytes Device family :STM32F072xx/F078xx Option bytes: RDP : Level 0 IWDG_SW : 0 nRST_STOP : 0 nRST_STDBY : 0 nBoot1 : 0 VDDA : 0 Data0 : 0x00 Data1 : 0x00 nSRAM_Parity: 0 WRP : 0xFFFFFFFF and ''C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\ST-LINK_CLI.exe'' -c swd –OB RDP=1 IWDG_SW=1 nRST_STOP=1 nRST_STDBY=1 nBoot1=1 VDDA=1 nSRAM_Parity=1 WRP=0xFFFFFFE0 -rOB STM32 ST-LINK CLI v2.5.0 STM32 ST-LINK Command Line Interface ST-LINK SN : 53FF74064980555739101187 ST-LINK Firmware version : V2J23S4 Connected via SWD. SWD Frequency = 4000K. Target voltage = 3.2 V. Connection mode : Normal. Device ID:0x448 Device flash Size : 128 Kbytes Device family :STM32F072xx/F078xx Option bytes: RDP : Level 0 IWDG_SW : 0 nRST_STOP : 0 nRST_STDBY : 0 nBoot1 : 0 VDDA : 0 Data0 : 0x00 Data1 : 0x00 nSRAM_Parity: 0 WRP : 0xFFFFFFFF2016-08-04 04:12 AM
Hi junique.julien,
I did the test from my side and there is any issue.C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility>''ST-LINK_CLI.exe'' -c SWD -rOB -OB RDP=1 -rOB -OB RDP=0 -rOB -pauseSTM32 ST-LINK CLI v2.5.0STM32 ST-LINK Command Line InterfaceST-LINK SN : 0670FF555355755087081741ST-LINK Firmware version : V2J25M13Connected via SWD.SWD Frequency = 4000K.Target voltage = 3.2 V.Connection mode : Normal.Device ID:0x448Device flash Size : 128 KbytesDevice family :STM32F072xx/F078xxOption bytes:RDP : Level 0IWDG_SW : 1nRST_STOP : 1nRST_STDBY : 1nBoot1 : 1VDDA : 1Data0 : 0xDDData1 : 0xDDnSRAM_Parity: 1WRP : 0xFFFFFFFFUpdating option bytes...Option bytes updated successfully.Option bytes:RDP : Level 1IWDG_SW : 1nRST_STOP : 1nRST_STDBY : 1nBoot1 : 1VDDA : 1Data0 : 0xDDData1 : 0xDDnSRAM_Parity: 1WRP : 0xFFFFFFFFUpdating option bytes...Option bytes updated successfully.Option bytes:RDP : Level 0IWDG_SW : 1nRST_STOP : 1nRST_STDBY : 1nBoot1 : 1VDDA : 1Data0 : 0xDDData1 : 0xDDnSRAM_Parity: 1WRP : 0xFFFFFFFFPress ENTER to exit.-Syrine-2016-08-04 04:58 AM
It Works !!!! :)
this command line wokrs for me thank you ''C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\ST-LINK_CLI.exe'' -c SWD -rOB -OB RDP=1 IWDG_SW=1 nRST_STOP=1 nRST_STDBY=1 nBoot1=1 VDDA=1 nSRAM_Parity=1 WRP=0xFFFFFFE0 -rOB -pause STM32 ST-LINK CLI v2.5.0 STM32 ST-LINK Command Line Interface ST-LINK SN : 53FF74064980555739101187 ST-LINK Firmware version : V2J23S4 Connected via SWD. SWD Frequency = 4000K. Target voltage = 3.2 V. Connection mode : Normal. Device ID:0x448 Device flash Size : 128 Kbytes Device family :STM32F072xx/F078xx Option bytes: RDP : Level 0 IWDG_SW : 0 nRST_STOP : 0 nRST_STDBY : 0 nBoot1 : 0 VDDA : 0 Data0 : 0x00 Data1 : 0x00 nSRAM_Parity: 0 WRP : 0xFFFFFFFF Updating option bytes... Option bytes updated successfully. Option bytes: RDP : Level 1 IWDG_SW : 1 nRST_STOP : 1 nRST_STDBY : 1 nBoot1 : 1 VDDA : 1 Data0 : 0x00 Data1 : 0x00 nSRAM_Parity: 1 WRP : 0xFFFFFFE0 Press ENTER to exit. Thank you :)2016-08-04 05:37 AM
Hi junique.julien,
It is good to hear that it was solved , thank you for your interest on our STM32 related solutions.-Syrine-