Is it possible to change the option bytes for STM32G030C6 using J-Link utility?
Use case
I'm planning to perform STM32 firmware update over I2C. For this I need to communicate with the STM32G030C6 system memory boot loader using some other host controller. In our system we'll be using the BOOT0 pin to decide the boot area at the time of reset, the host controller will be controlling this pin.
I looked at the STM32G030C6 option bytes and their default production value.
As per the default value 0xDFFFE1AA, the production settings are
nBOOT1=1, nBOOT_SEL=1, nBOOT0=1
But I need to change these settings to
nBOOT0=1, nBOOT_SEL=0, nBOOT0=0/1
So that I can access the boot loader using the BOOT0 pin instead.
For this I need to program the option bytes value to 0xDEFFE1AA instead.
Is there any J-Link CLI utility using which we can program these bytes?
