cancel
Showing results for 
Search instead for 
Did you mean: 

Writing Option Bytes using HEX file is failed on STM32C0, but successful on STM32L0

FArdi.1
Associate III

I need to write option bytes using HEX file, but so far can't work on STM32C0. It was working well in STM32L0.

Any solution?

Updating the option bytes using "-ob [OptByte=<value>]" is working, but I prefer using the HEX file.

 

STM32C031

STM32CubeProgrammer v2.15.0

stm32_programmer_cli -c port=SWD freq=8000 mode=UR -e all -d "OptBytes_C0.hex"

The program shows "File download complete"

Before: 0x1FFF7800 : FFFFFEAA 00000155

After: 0x1FFF7800 : FFFFFEAA 00000155 <<< Option bytes unchanged

 

 

STM32L031

STM32CubeProgrammer v2.15.0

stm32_programmer_cli -c port=SWD freq=8000 mode=UR -e all -d "OptBytes_L0.hex"

The program shows "File download complete"

Before: 0x1FF80000 = FF5500AA

After: 0x1FF80000 = FFFF0000 <<< Option bytes changed as expected

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
FArdi.1
Associate III

Update:

No solution, and there is no plan to support this feature.

 

Quoted from online support case:

"the operation of programming option bytes for STM32C0 via SWD interface is not supported currently."

 

 

View solution in original post

4 REPLIES 4
Simon.T
ST Employee

Hello @FArdi.1 ,

 

I confirmed the issue and I have submitted an internal ticket addressing your request to the dev team.

Internal ticket number: 170523 (This is an internal tracking number and is not accessible or usable by customers).

 

Best regards,

 

Simon

Billy OWEN
ST Employee

Hi @FArdi.1 

 

The forum moderator had marked your post as needing a little more investigation and direct support. An online support case has been created on your behalf, please stand by for just a moment and you will hear from us.

 

Regards,

Billy

Thanks. I saw the newly open case in online support page. I will be there to follow up this case.

FArdi.1
Associate III

Update:

No solution, and there is no plan to support this feature.

 

Quoted from online support case:

"the operation of programming option bytes for STM32C0 via SWD interface is not supported currently."