2024-03-31 05:10 AM
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?
Solved! Go to Solution.
2024-04-02 06:53 AM
Hello @GOnkelinx ,
You can refer to the table 7. Boot modes page 51 of the RM0454 rev5.
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
2024-04-02 06:53 AM
Hello @GOnkelinx ,
You can refer to the table 7. Boot modes page 51 of the RM0454 rev5.
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
2024-04-02 01:20 PM
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