Skip to main content
Lead
June 10, 2021
Solved

BOOT0 pin and SWCLK pin are the same pin - Is that OK?

  • June 10, 2021
  • 6 replies
  • 3987 views

Hi!

I'm using STM32G030F6P6 TSSOP-20 and I notice that BOOT0 pin and SWCLK pin are the same pin. If I want to program the STM32G030F6P6 MCU, then I only need SWDIO and SWCLK and NRST pin and forget about the BOOT0 pin because BOOT0 pin is not avaiable if I have SWDIO?

0693W00000BadcFQAR.png

This topic has been closed for replies.
Best answer by TDK
It depends on how BOOT0 is wired and the relevant option bytes. I would imagine the nucleo board is set up to run user code automatically, but I'm not going to double check.

6 replies

TDK
June 10, 2021

You don't need BOOT0 to program.

You will need to tie BOOT0 low to boot to user code, or set the corresponding option bytes to boot to user code.

"If you feel a post has answered your question, please click ""Accept as Solution""."
DMårtAuthor
Lead
June 10, 2021

Thank you for your answer. I don't know what "user code" is, but I assume you mean programming with UART?

OK! Then I know that I can ignore the BOOT0 and only use ST-LINKV2 to program the MCU above via SWDIO and SWCLK and NRST.

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-ComputerSTM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer
TDK
June 10, 2021

The chip can either boot to system memory (aka bootloader) or the flash (aka user code). BOOT0 (or option bytes which override it) selects which one is selected.

"If you feel a post has answered your question, please click ""Accept as Solution""."
DMårtAuthor
Lead
June 10, 2021

So programming with ST-LINKV2 (e.g Nucleo board) then I will boot from user code?

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-ComputerSTM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer
TDK
TDKBest answer
June 10, 2021
It depends on how BOOT0 is wired and the relevant option bytes. I would imagine the nucleo board is set up to run user code automatically, but I'm not going to double check.
"If you feel a post has answered your question, please click ""Accept as Solution""."