Electronic – STM32 programming and BOOT0 pin

bootloaderstm32

I am developing a STM32H7 board which will be programmed via SWD.

I am curious, is there any reason why I should connect BOOT0 pin to GND via resistor and not directly to GND?

I won't be using the bootloader but can it happen that I accidentally disable the debug port from software and then can't program the MCU via SWD anymore and need to use bootloader mode by putting BOOT0 high?

Best Answer

If you're making a board, why not provide for a resistor/jumper to connect Boot0 to +V and GND? Then only populate one of them? Leave your options open. You don't need a resistor. I prefer to use a jumper rather than a resistor.

You can use header shunts as jumpers that can be easily changed but that takes more PCB space, components and more assembly work. Or just place an SMD chip footprint you can either choose to use an SMD resistor or SMD jumper (zero ohm resistor) during assembly. Then you can fiddle with things all you want after-the-fact.