2022-09-26 11:22 PM
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?
2022-09-28 12:10 AM
Hello ShivamSpintly (Community Member)
You can look at this post in the Segger forum, if that doesn't help you, you should rephrase your question in their forum.
[SOLVED] Option Bytes Dialog - J-Link/Flasher related - SEGGER - Forum
The STLinkV2 and V3 are able to read and write all the option bytes of all STM32 families.
Best regards,
Romain
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2022-10-04 07:16 AM
Hello ShivamSpintly (Community Member)
Did you solve it?
Thank you in advance to select my post as answered.
Best regards,
Romain,
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.