I am building application which will (besides other things) write flash memory and option bytes of STM32F091RC.
Application will run on raspberry pi, OS raspbian 4.7.7 armv6l.
I am currently successfully using st-flash utility (https://github.com/texane/stlink) to write data to flash memory using this command:
st-flash write firmware.bin 0x8000000
Now I also need to write option bytes too. I thought
st-flash write optionBytes.bin 0x1FFFF800
could work (just write to address of option bytes), but it does not. Apparently, writing option bytes is different than writing flash memory and probably it's not possible to achieve it using st-flash?
Are there any utilities which are able to write option bytes and can run:
- raspberry/arm
- unix/debian based
- St-link/V2
- STM32F091RC
- can run from commandline
python3 pystlink.py reset:halt write:optionBytes.srec set:pc:0x20000a94 run– Vladiks Aug 26 '16 at 11:23