cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G030 bootloader issues

GOnkelinx
Associate II

Hi,

I try to bring the STM32G030 into the bootloader mode, but this isn't works.

It works only when the option bytes are set to nBOOT_SEL = 1, nBOOT1 = 1 and nBOOT0 = 0.
At that moment we can upload the FW, but when we reset the MCU he will not starts again.
Only when we set nBoot0 to 1 again in the option byte.

Also when we clear only the nBOOT_SEL = 0, the MCU goes never in bootloader mode. (runs normal)
We try it with BOOTpin = 0 or 1 before we giving a reset puls. 

So what we doing wrong here?

1 ACCEPTED SOLUTION

Accepted Solutions
Simon.T
ST Employee

Hello @GOnkelinx ,

 

You can refer to the table 7. Boot modes page 51 of the RM0454 rev5. 

SimonT_0-1712065857429.png

If you want to control the access to the bootloader through boot pin, you need to put nBOOT1 bit =1, nBOOT_SEL  bit=0, nBOOT0 bit = no importance. And following the level of BOOT0pin after reset the device will boot from system memory (bootloader) or flash memory.

 

Best regards,

 

Simon

View solution in original post

2 REPLIES 2
Simon.T
ST Employee

Hello @GOnkelinx ,

 

You can refer to the table 7. Boot modes page 51 of the RM0454 rev5. 

SimonT_0-1712065857429.png

If you want to control the access to the bootloader through boot pin, you need to put nBOOT1 bit =1, nBOOT_SEL  bit=0, nBOOT0 bit = no importance. And following the level of BOOT0pin after reset the device will boot from system memory (bootloader) or flash memory.

 

Best regards,

 

Simon

Hi,

I have found the issue. 

I update the MCU from a raspberry pi, but during the booloader sequence the I/O pin of the RPI generated an unwanted spike due a leakage in the I/O pin.

Many thanks