Skip to main content
Qwang.2
Associate II
November 5, 2021
Solved

STM32G030F6 BOOT mode,

  • November 5, 2021
  • 6 replies
  • 2745 views

Hello, peter

Another question, about BOOT, I find that PA14-BOOT0, but if this MCU has 3 BOOT modes, it need 2 IOs to control, but I can't find the second IO, how can I set the BOOT mode? Or to debug, download firmware?

Regards,

Marvin​

This topic has been closed for replies.
Best answer by TDK

According to the reference manual, there is one pin (BOOT0) along with several option bytes which dictate how it boots up. There is no BOOT1 pin like there is on other devices due to the pin constraints of a small package.

0693W00000GWc5gQAD.png 

6 replies

TDK
TDKBest answer
Super User
November 5, 2021

According to the reference manual, there is one pin (BOOT0) along with several option bytes which dictate how it boots up. There is no BOOT1 pin like there is on other devices due to the pin constraints of a small package.

0693W00000GWc5gQAD.png 

"If you feel a post has answered your question, please click ""Accept as Solution""."
Qwang.2
Qwang.2Author
Associate II
November 6, 2021

Well. So how can I set the BOOT bit since it should be set when the the MCU is powered on, it should be controlled by IO, how I can use nBOOT1 bit to control the mode?

TDK
Super User
November 6, 2021

nBOOT1 is an option bit and is settable via STM32CubeProgrammer. You can also write code to set it on your board. It is written to flash, however, so the new value won't take effect until reset. You cannot set it via a GPIO since there is not a BOOT1 pin.

I would suggest reading the relevant bits of the reference manual to understand how things here work.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Qwang.2
Qwang.2Author
Associate II
November 8, 2021

Hi, TDK

Thanks a lot.

Regards,

Marvin

Qwang.2
Qwang.2Author
Associate II
November 24, 2021

Hi, TDK

What is the default state of Pin19, PA14/PA15/BOOT0, should I add a pull-up or pull-down resistor to give a default state?

Regards,

Marvin

TDK
Super User
November 24, 2021

Using option bits here seems like the better solution. The reference manual would tell you the default state, which will be the combination of tying PA15, PA14 and BOOT0 together. The latter is floating by default.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Qwang.2
Qwang.2Author
Associate II
November 25, 2021

So I add a 10k pull-up resistor for this pin, because when I set the default state at low, the MCU can not be download.

Am I right?