Skip to main content
Explorer II
March 31, 2024
Solved

STM32G030 bootloader issues

  • March 31, 2024
  • 1 reply
  • 1011 views

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?

    This topic has been closed for replies.
    Best answer by Simon.T

    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

    1 reply

    Simon.TAnswer
    ST Employee
    April 2, 2024

    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

    GOnkelinxAuthor
    Explorer II
    April 2, 2024

    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