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
