Skip to main content
Lead
Jun 10, 2021 1:41 PM UTC
Solved

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

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.
TDK
TDKBest answer
Jun 10, 2021 2:58 PM UTC
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""."

6 replies

TDK
Jun 10, 2021 2:00 PM UTC

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
Jun 10, 2021 2:07 PM UTC

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
Jun 10, 2021 2:48 PM UTC

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
Jun 10, 2021 2:55 PM UTC

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
Jun 10, 2021 2:58 PM UTC
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""."