Preferred way to set Option Bytes?
I’m pretty new to SW4STM32 / openocd in general.
I need to configure the option bytes of my STM32F042C6, but I’m wondering about what the best way is.
It’s flash memory, so I see two options:
1. Use the flash HAL and change them in firmware.
2. Add another section to the linker script and try to flash it with the rest of the code.
Is there something built into SW4STM32 that I could use instead?
Ultimately I’m trying to disable the built-in bootloader, but being able to change the option bytes seems important too.
Thanks in advance for any advice.