cancel
Showing results for 
Search instead for 
Did you mean: 

ST-LINK_CLI.exe stm32f042 option bytes

kukushonok
Associate II
Posted on September 07, 2015 at 15:42

Hello,

Please help me clarify the following:

I need to write data option byte to stm32f042 by ST_LINK_CLI.exe when

 I try to do the following command:

 

ST-LINK_CLI.exe -OB Data0=0xAA Data0=0x55

I get the result:

Device family :STM32F04xx

-OB Data0: Available only on STM32 F1 and STM32 F3 series.

-OB Data0: Available only on STM32 F1 and STM32 F3 series.

Updating option bytes...

Option bytes updated successfully.

 

and requred byte is not written but I can changed this optin byte from TM32 ST-LINK Utility.exe utility...

Please help me to clirify how can I change data option bytes in stm32f042 by CLI interface

Regards,

Kukenov Andrei

4 REPLIES 4
Nesrine M_O
Lead II
Posted on September 07, 2015 at 19:04

Hi kukenov.andrei,

which ST_LINK_CLI version are you using?

-Syrine –
kukushonok
Associate II
Posted on September 08, 2015 at 10:03

Hello, Syrine

STM32 ST-LINK CLI v2.3.0

Regards,

Andrei Kukenov

Nesrine M_O
Lead II
Posted on September 08, 2015 at 12:31

Hi kukenov.andrei,

The issue exists unfortunately but it will be fixed in next version of STM32 ST-LINK Utility.

To configure option bytes you can either call the command -OB, or you can also program a hex file with the option bytes config.

In your case to program Data0, create a hex file of one byte length with the value Data0 to program address 0x1FFFF804.

-Syrine –

kukushonok
Associate II
Posted on September 08, 2015 at 16:09

Thanks a lot Syrine

Regards,

Andrei Kukenov