cancel
Showing results for 
Search instead for 
Did you mean: 

ST-LINK_CLI.exe don't accept the -OB argument

j239955_stm1_stmicro
Associate II
Posted on August 04, 2016 at 11:11

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.
7 REPLIES 7
Nesrine M_O
Lead II
Posted on August 04, 2016 at 11:31

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-

j239955_stm1_stmicro
Associate II
Posted on August 04, 2016 at 11:48

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 bytes

Nesrine M_O
Lead II
Posted on August 04, 2016 at 12:02

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 -rOB

Also I recommend you to have a look to the STM32 ST-LINK utility command line interface (CLI) section in the UM0892 User manual

-Syrine-

j239955_stm1_stmicro
Associate II
Posted on August 04, 2016 at 12:14

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         : 0xFFFFFFFF

Nesrine M_O
Lead II
Posted on August 04, 2016 at 13:12

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 -pause

STM32 ST-LINK CLI v2.5.0

STM32 ST-LINK Command Line Interface

ST-LINK SN : 0670FF555355755087081741

ST-LINK Firmware version : V2J25M13

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     : 1

nRST_STOP   : 1

nRST_STDBY  : 1

nBoot1      : 1

VDDA        : 1

Data0       : 0xDD

Data1       : 0xDD

nSRAM_Parity: 1

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       : 0xDD

Data1       : 0xDD

nSRAM_Parity: 1

WRP         : 0xFFFFFFFF

Updating option bytes...

Option bytes updated successfully.

Option bytes:

RDP         : Level 0

IWDG_SW     : 1

nRST_STOP   : 1

nRST_STDBY  : 1

nBoot1      : 1

VDDA        : 1

Data0       : 0xDD

Data1       : 0xDD

nSRAM_Parity: 1

WRP         : 0xFFFFFFFF

Press ENTER to exit.

-Syrine-

j239955_stm1_stmicro
Associate II
Posted on August 04, 2016 at 13:58

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 :)

Nesrine M_O
Lead II
Posted on August 04, 2016 at 14:37

Hi junique.julien,

It is good to hear that it was solved , thank you for your interest on our STM32 related solutions.

-Syrine-