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:
- unix/debian based
- can run from commandline