STM32 jumper cap:What is the role of a jumper cap on an STM32 development board?
Q: What is the role of a jumper cap on an STM32 development board?
A: A jumper cap on an STM32 development board is a small removable connector that shorts two pins to configure hardware settings. It is commonly used to select the boot mode (BOOT0/BOOT1 pins), enable or disable a pull-up resistor, choose between power sources, or connect/disconnect peripherals. For example, placing a jumper cap between BOOT0 and VDD sets the STM32 to boot from system memory (bootloader), while connecting BOOT0 to GND selects main flash memory. Without the jumper cap, the pins float and the default state depends on internal pull resistors. Always check your board's schematic before changing jumpers.
Q: How does a jumper cap affect the boot mode of an STM32 microcontroller?
A: The STM32 boot mode is determined by the BOOT0 and BOOT1 pins at reset. A jumper cap is typically used to set BOOT0 high (to VDD) or low (to GND). For most STM32 series, BOOT0=0 boots from main flash memory, BOOT0=1 with BOOT1=0 boots from system memory (built-in bootloader), and BOOT0=1 with BOOT1=1 boots from embedded SRAM. Many boards provide a 3-pin header for BOOT0 with a jumper cap: shorting pins 1-2 sets BOOT0 to GND, shorting pins 2-3 sets BOOT0 to VDD via a pull-up resistor. Always remove the jumper after programming to avoid accidental bootloader entry.
Q: Can I run an STM32 board without a jumper cap?
A: Yes, in many cases an STM32 board can run without a jumper cap, but it depends on what the jumper controls. If the jumper is for boot mode (BOOT0), leaving it unconnected may cause the pin to float, leading to unpredictable boot behavior. However, many boards include a 10k pull-down resistor on BOOT0, so without the jumper the MCU boots from flash. Similarly, jumpers for power selection or peripheral enable might have default pull-ups or pull-downs. Always consult the board's schematic. If the pin floats, you may need to add an external resistor or keep the jumper. For reliable operation, either install the jumper or ensure a defined logic level.
Q: What are common jumper cap configurations for STM32 ST-Link and USB power?
A: On many STM32 development boards (e.g., Nucleo, Discovery), jumper caps often configure power and debugger connections. For example, a jumper between IDD and GND enables current measurement; removing it disconnects the MCU power. For ST-Link, jumpers may connect or disconnect SWDIO, SWCLK, and NRST to the target MCU. For USB power, a jumper selects between 5V from USB and an external supply. Common labels include '5V_USB', '5V_EXT', 'ST-Link', 'MCU', and 'VDD'. Always refer to the board's user manual. Incorrect jumper settings can cause the board not to power up or the debugger to fail to connect.
Q: How do I safely change a jumper cap on an STM32 board?
A: To safely change a jumper cap on an STM32 board, first power off the board and disconnect all cables (USB, power supply, debugger). Use a plastic tweezers or a small flat-head screwdriver to gently lift the jumper cap from the header pins. Avoid touching other components or shorting adjacent pins. Note the original position before removal. Place the jumper cap firmly onto the desired pins, ensuring it covers both pins completely. Double-check the board's schematic or manual for the correct configuration. After reconnecting power, verify the desired function (e.g., boot mode, power LED). Never change jumpers while the board is powered, as this can cause short circuits or damage the MCU.
Dialogue about
Common scenarios of "STM32 jumper cap"
【Engineer】 Hi, I'm trying to set up my STM32 board but I'm confused about the jumper caps. Can you explain what they are for?
【Technician】 Sure! Jumper caps on STM32 boards are used to configure various hardware settings, like boot mode, power supply, and debug interfaces. Which board are you using?
【Engineer】 I have an STM32F4 Discovery board. I see several jumpers labeled BOOT0, BOOT1, and some others.
【Technician】 On the Discovery, BOOT0 and BOOT1 determine the boot mode. For example, to boot from flash, BOOT0 should be connected to GND (0) and BOOT1 can be either 0 or 1. To boot from system memory, BOOT0=1 and BOOT1=0.
【Engineer】 So I need to set BOOT0 to 0 for normal operation? What about the other jumpers like the ones near the USB?
【Technician】 Yes, for normal operation from flash, BOOT0=0. The jumpers near USB are often for selecting power source (USB or external) and for connecting/disconnecting USB signals. Check the board's user manual for exact settings.
【Engineer】 I also see a jumper labeled 'VBAT' and 'VDD'. What are those for?
【Technician】 VBAT is for connecting a backup battery to power the RTC and backup registers when main power is off. VDD is the main power supply. Usually, you leave VBAT unconnected if not using a battery, and VDD is powered from the board's regulator.
【Engineer】 Got it. Are there any jumpers for debugging, like SWD or JTAG?
【Technician】 Yes, some boards have jumpers to enable/disable the debugger. For example, on some boards, you need to connect a jumper to use SWD. But on the Discovery, the ST-LINK is integrated, so no extra jumpers are needed for debugging.
【Engineer】 That's helpful. What about the jumper for 'USB FS' or 'USB HS'? I'm not sure what they do.
【Technician】 Those jumpers are for selecting between USB Full Speed and High Speed modes, often by connecting pull-up resistors on the D+ line. But on many STM32 boards, the USB speed is fixed or configured in software, so those jumpers might not be present.
【Engineer】 I see. So if I want to use the USB as a device, do I need to change any jumpers?
【Technician】 Typically, no. The USB connector is directly connected to the STM32's USB pins. Just make sure the board is powered correctly and the USB clock is configured in software. Jumper caps are usually for power and boot mode.
【Engineer】 Okay. What about the jumper for '5V' and '3.3V'? I see one near the power header.
【Technician】 That jumper selects the voltage for certain peripherals or the logic level. On some boards, it sets the VDD voltage to 5V or 3.3V, but most STM32 chips are 3.3V, so be careful not to set it to 5V unless the board supports it.
【Engineer】 Thanks for the warning. I'll check the manual. One more thing: what if I lose a jumper cap? Can I use a wire instead?
【Technician】 Yes, a jumper cap is just a short circuit. You can use a male-to-male jumper wire or even a paperclip to short the pins, but make sure it's secure and doesn't touch other components.
【Engineer】 Great. I think I have a better understanding now. I'll set BOOT0 to 0 and leave the rest as default for now.
【Technician】 That's a good start. If you run into issues, double-check the jumper settings against the board's schematic. Happy coding!


