Spark Logic

Blue Pill pinout

This map follows the vcc-gnd.com Blue Pill schematic dated 2016-01-26. Check the wiring and fitted parts on other Blue Pill boards.

STM32F103C8T6 Blue Pill

55 contacts Current package

STM32F103C8T6 board· This map follows the vcc-gnd.com Blue Pill schematic dated 2016-01-26. Check the wiring and fitted parts on other Blue Pill boards.

STM32F103C8T6 Blue Pill pinout

Set the boot shunts before reset. BOOT0 low selects main Flash regardless of BOOT1. With BOOT0 high, BOOT1 low selects system memory and BOOT1 high selects SRAM.

Connector contacts

H1 and H2 correspond to P3 and P4, H3 to SWD P2, and H4 to Micro-USB U3. Boot contacts use the schematic’s P1 numbering.

Selected pin details

P1-6 · GND

Return · Ground

Connects to the board’s ground plane.

STM32F103C8T6 Blue Pill connector map

Internally shared terminals

Electrical limits · Link to this pin

Lines show shared connections.

Power the board from USB

  • USB power input
    • USB host VBUS
  • USB return
    • USB host ground
  • Board logic rail
    • 3.3 V measurement point

Connection guide

All 55 pins

PinSignalDirectionFunction
H1-1VB PowerPower Connects to VBAT. Use the specified board power connection.
H1-2C13 Configurable I/OConfigurable I/O PC13 sinks current through R5 (510 Ω) and the onboard D2 LED from 3.3 V. Driving PC13 low turns the LED on.
H1-3C14 Configurable I/OConfigurable I/O PC14 is OSC32_IN for the onboard 32.768 kHz LSE crystal Y3. It has a 20 pF load capacitor C9 to ground.
H1-4C15 Configurable I/OConfigurable I/O PC15 is OSC32_OUT for the onboard 32.768 kHz LSE crystal Y3. It has a 20 pF load capacitor C12 to ground.
H1-5A0 Configurable I/OConfigurable I/O Routes to MCU PA0. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-6A1 Configurable I/OConfigurable I/O Routes to MCU PA1. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-7A2 Configurable I/OConfigurable I/O Routes to MCU PA2. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-8A3 Configurable I/OConfigurable I/O Routes to MCU PA3. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-9A4 Configurable I/OConfigurable I/O Routes to MCU PA4. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-10A5 Configurable I/OConfigurable I/O Routes to MCU PA5. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-11A6 Configurable I/OConfigurable I/O Routes to MCU PA6. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-12A7 Configurable I/OConfigurable I/O Routes to MCU PA7. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-13B0 Configurable I/OConfigurable I/O Routes to MCU PB0. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-14B1 Configurable I/OConfigurable I/O Routes to MCU PB1. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-15B10 Configurable I/OConfigurable I/O Routes to MCU PB10. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-16B11 Configurable I/OConfigurable I/O Routes to MCU PB11. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-17R Active-low resetActive-low reset Connects to MCU NRST. Use a compatible open-drain reset signal.
H1-183.3 PowerPower Connects to 3V3. Use the specified board power connection.
H1-19G ReturnReturn Connects to the board’s ground plane.
H1-20G ReturnReturn Connects to the board’s ground plane.
H2-13.3 PowerPower Connects to 3V3. Use the specified board power connection.
H2-2G ReturnReturn Connects to the board’s ground plane.
H2-35V PowerPower Shares USB VBUS directly and feeds the RT9193-33 regulator input. Unplug USB before supplying external 5 V here.
H2-4B9 Configurable I/OConfigurable I/O Routes to MCU PB9. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-5B8 Configurable I/OConfigurable I/O Routes to MCU PB8. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-6B7 Configurable I/OConfigurable I/O Routes to MCU PB7. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-7B6 Configurable I/OConfigurable I/O Routes to MCU PB6. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-8B5 Configurable I/OConfigurable I/O Routes to MCU PB5. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-9B4 Configurable I/OConfigurable I/O Routes to MCU PB4. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-10B3 Configurable I/OConfigurable I/O Routes to MCU PB3. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-11A15 Configurable I/OConfigurable I/O Routes to MCU PA15. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-12A12 Configurable I/OConfigurable I/O PA12 shares the MCU side of USB D+ through R11 (20 Ω). R10 (4.7 kΩ) pulls this node up to the 5 V rail.
H2-13A11 Configurable I/OConfigurable I/O PA11 also connects to USB D− through R9 (20 Ω).
H2-14A10 Configurable I/OConfigurable I/O Routes to MCU PA10. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-15A9 Configurable I/OConfigurable I/O Routes to MCU PA9. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-16A8 Configurable I/OConfigurable I/O Routes to MCU PA8. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-17B15 Configurable I/OConfigurable I/O Routes to MCU PB15. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-18B14 Configurable I/OConfigurable I/O Routes to MCU PB14. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-19B13 Configurable I/OConfigurable I/O Routes to MCU PB13. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-20B12 Configurable I/OConfigurable I/O Routes to MCU PB12. Choose the applicable GPIO or peripheral function in the MCU documentation.
H3-13V3 PowerPower Connects to 3V3. Use the specified board power connection.
H3-2DIO Configurable I/OConfigurable I/O Routes to MCU PA13. Choose the applicable GPIO or peripheral function in the MCU documentation.
H3-3CLK Configurable I/OConfigurable I/O Routes to MCU PA14. Choose the applicable GPIO or peripheral function in the MCU documentation.
H3-4GND ReturnReturn Connects to the board’s ground plane.
H4-1VBUS PowerPower VBUS connects directly to H2-3 and feeds the RT9193-33 regulator. External 5 V on H2-3 can backfeed a connected USB host.
H4-2D- BidirectionalBidirectional USB D− reaches PA11 through R9 (20 Ω).
H4-3D+ BidirectionalBidirectional USB D+ reaches PA12 through R11 (20 Ω). On the PA12 side, R10 (4.7 kΩ) pulls the line up to 5 V.
H4-4ID ReturnReturn Micro-USB ID is wired directly to pin 5 (GND) and board ground.
H4-5GND ReturnReturn Connects to the board’s ground plane.
P1-13V3 PowerPower Connects to 3V3. Use the specified board power connection.
P1-23V3 PowerPower Connects to 3V3. Use the specified board power connection.
P1-3BOOT0 Boot strap inputBoot strap input P1-3 connects to BOOT0 through R3 (100 kΩ). Fit a shunt to P1-1 for high or P1-5 for low. With the shunt removed, BOOT0 has no defined board-level bias.
P1-4BOOT1 Boot strap input / GPIOBoot strap input / GPIO P1-4 connects to PB2/BOOT1 through R4 (100 kΩ). Fit a shunt to P1-2 for high or P1-6 for low. With the shunt removed, PB2 has no board-level bias and is sampled as BOOT1 at reset.
P1-5GND ReturnReturn Connects to the board’s ground plane.
P1-6GND ReturnReturn Connects to the board’s ground plane.

Signal assignments

Serial Wire Debug

PA13 is SWDIO and PA14 is SWCLK. The 3.3 V board rail is a reference for a compatible probe.

USART1 on PA9/PA10

PA9 is TX and PA10 is RX in the default USART1 mapping. Select the matching firmware configuration.

Electrical limits

ParameterLimitConditions and source
Board logic rail3.3 V nominal3.3 V nominal Check the fitted regulator and MCU datasheet before attaching an external circuit. USB is the only supply used in the example. STM32F103C8T6 Blue Pill connector map
External high-speed oscillator8 MHz8 MHz Use the correct HSE frequency in firmware clock calculations. STM32F103C8T6 Blue Pill connector map

Models and documents

The maps follow the listed PCB variants. Match the board markings and connector positions to the source for your PCB revision before applying power.

STM32F103C8T6 Blue Pill
This map follows the vcc-gnd.com Blue Pill schematic dated 2016-01-26. Check the wiring and fitted parts on other Blue Pill boards.