cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to change the option bytes for STM32G030C6 using J-Link utility?

ShivamSpintly
Associate II

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.

0693W00000SwJgTQAV.pngAs per the default value 0xDFFFE1AA, the production settings are

nBOOT1=1, nBOOT_SEL=1, nBOOT0=1

0693W00000SwJi5QAF.png 

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?

2 REPLIES 2
RomainR.
ST Employee

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.

RomainR.
ST Employee

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.