2021-06-10 06:41 AM
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?
Solved! Go to Solution.
2021-06-10 07:58 AM
2021-06-10 07:00 AM
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.
2021-06-10 07:07 AM
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.
2021-06-10 07:48 AM
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.
2021-06-10 07:55 AM
So programming with ST-LINKV2 (e.g Nucleo board) then I will boot from user code?
2021-06-10 07:58 AM
2021-06-11 03:24 AM
Well, the Nucleo board have SW-pins such as SWDIO, SWCLK and in this case BOOT0 and SWCLK shares the same pin.