Skip to main content
FArdi.1
Associate II
January 11, 2024
Solved

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

  • January 11, 2024
  • 3 replies
  • 2736 views

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

 

 

This topic has been closed for replies.
Best answer by FArdi.1

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."

 

 

3 replies

Simon.T
ST Employee
January 11, 2024

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
January 11, 2024

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

FArdi.1
FArdi.1Author
Associate II
January 12, 2024

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

FArdi.1
FArdi.1AuthorBest answer
Associate II
January 19, 2024

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."