Spark Logic

Black Pill pinout

This STM32F103 board uses a four-contact SWD connector with GND, CLK, DIO and 3V3 in that order. Its debug connector differs from the Blue Pill and WeAct MiniF4.

STM32F103C8T6 Black Pill

43 contacts Current package
WeAct MiniF4 V3.1 44 contacts

STM32 development boards · This STM32F103 board uses a four-contact SWD connector with GND, CLK, DIO and 3V3 in that order. Its debug connector differs from the Blue Pill and WeAct MiniF4.

STM32F103C8T6 Black Pill pinout

Header 1
Use the board connector marking and locate contact 1 before wiring.
Header 2
Use the board connector marking and locate contact 1 before wiring.
SWD header
Use the board connector marking and locate contact 1 before wiring.
USB connector
Use the board connector marking and locate contact 1 before wiring.
Selected pin details

H1-13 · A8

Configurable I/O · GPIO

Routes to MCU PA8. Choose the applicable GPIO or peripheral function in the MCU documentation.

STM32F103C8T6 Black Pill connector map

Electrical limits · Link to this pin

All 43 pins

PinSignalDirectionFunction
H1-1GND ReturnReturn Connects to the board’s ground plane.
H1-2V3.3 PowerPower Connects to 3V3. Use the specified board power connection.
H1-3B7 Configurable I/OConfigurable I/O Routes to MCU PB7. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-4B6 Configurable I/OConfigurable I/O Routes to MCU PB6. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-5B5 Configurable I/OConfigurable I/O Routes to MCU PB5. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-6B4 Configurable I/OConfigurable I/O Routes to MCU PB4. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-7B3 Configurable I/OConfigurable I/O Routes to MCU PB3. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-8A15 Configurable I/OConfigurable I/O Routes to MCU PA15. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-9A12 Configurable I/OConfigurable I/O Routes to MCU PA12. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-10A11 Configurable I/OConfigurable I/O Routes to MCU PA11. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-11A10 Configurable I/OConfigurable I/O Routes to MCU PA10. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-12A9 Configurable I/OConfigurable I/O Routes to MCU PA9. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-13A8 Configurable I/OConfigurable I/O Routes to MCU PA8. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-14B15 Configurable I/OConfigurable I/O Routes to MCU PB15. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-15B14 Configurable I/OConfigurable I/O Routes to MCU PB14. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-16B13 Configurable I/OConfigurable I/O Routes to MCU PB13. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-17B12 Configurable I/OConfigurable I/O Routes to MCU PB12. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-1GND ReturnReturn Connects to the board’s ground plane.
H2-2B8 Configurable I/OConfigurable I/O Routes to MCU PB8. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-3B9 Configurable I/OConfigurable I/O Routes to MCU PB9. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-4C13 Configurable I/OConfigurable I/O Routes to MCU PC13. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-5RST Active-low resetActive-low reset Connects to MCU NRST. Use a compatible open-drain reset signal.
H2-6A0 Configurable I/OConfigurable I/O Routes to MCU PA0. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-7A1 Configurable I/OConfigurable I/O Routes to MCU PA1. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-8A2 Configurable I/OConfigurable I/O Routes to MCU PA2. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-9A3 Configurable I/OConfigurable I/O Routes to MCU PA3. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-10A4 Configurable I/OConfigurable I/O Routes to MCU PA4. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-11A5 Configurable I/OConfigurable I/O Routes to MCU PA5. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-12A6 Configurable I/OConfigurable I/O Routes to MCU PA6. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-13A7 Configurable I/OConfigurable I/O Routes to MCU PA7. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-14B0 Configurable I/OConfigurable I/O Routes to MCU PB0. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-15B1 Configurable I/OConfigurable I/O Routes to MCU PB1. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-16B10 Configurable I/OConfigurable I/O Routes to MCU PB10. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-17B11 Configurable I/OConfigurable I/O Routes to MCU PB11. Choose the applicable GPIO or peripheral function in the MCU documentation.
H3-1GND ReturnReturn Connects to the board’s ground plane.
H3-2CLK Configurable I/OConfigurable I/O Routes to MCU PA14. Choose the applicable GPIO or peripheral function in the MCU documentation.
H3-3DIO Configurable I/OConfigurable I/O Routes to MCU PA13. Choose the applicable GPIO or peripheral function in the MCU documentation.
H3-43V3 PowerPower Connects to 3V3. Use the specified board power connection.
H4-1VBUS PowerPower Connects to 5V. Use the specified board power connection.
H4-2D- BidirectionalBidirectional USB data line. PCB net destination is PA11.
H4-3D+ BidirectionalBidirectional USB data line. PCB net destination is PA12.
H4-4ID UnconfirmedUnconfirmed The board source supplies no net for this position. Consult the schematic before use.
H4-5GND 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 Black Pill connector map
External high-speed oscillator8 MHz8 MHz Use the correct HSE frequency in firmware clock calculations. STM32F103C8T6 Black Pill connector map

Models and documents

The maps follow the listed PCB variants. Match the board markings and connector positions to the referenced schematic before applying power.

STM32F103C8T6 Black Pill
This STM32F103 board uses a four-contact SWD connector with GND, CLK, DIO and 3V3 in that order. Its debug connector differs from the Blue Pill and WeAct MiniF4.