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

WeAct MiniF4 V3.1

44 contacts Current package

STM32 development boards · WeAct documents the same side-header and SWD pin definitions for V3.0 and V3.1. The map covers those headers on V3.1. See the WeAct schematic for USB-C and the optional flash device.

WeAct MiniF4 V3.1 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.
Selected pin details

H2-5 · A8

Configurable I/O · GPIO

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

WeAct MiniF4 V3.1 connector map

Electrical limits · Link to this pin

All 44 pins

PinSignalDirectionFunction
H1-15V PowerPower Connects to 5V. Use the specified board power connection.
H1-2G ReturnReturn Connects to the board’s ground plane.
H1-33.3 PowerPower Connects to 3V3. Use the specified board power connection.
H1-4B10 Configurable I/OConfigurable I/O Routes to MCU PB10. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-5B2 Configurable I/OConfigurable I/O Routes to MCU PB2. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-6B1 Configurable I/OConfigurable I/O Routes to MCU PB1. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-7B0 Configurable I/OConfigurable I/O Routes to MCU PB0. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-8A7 Configurable I/OConfigurable I/O Routes to MCU PA7. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-9A6 Configurable I/OConfigurable I/O Routes to MCU PA6. 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-11A4 Configurable I/OConfigurable I/O Routes to MCU PA4. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-12A3 Configurable I/OConfigurable I/O Routes to MCU PA3. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-13A2 Configurable I/OConfigurable I/O Routes to MCU PA2. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-14A1 Configurable I/OConfigurable I/O Routes to MCU PA1. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-15A0 Configurable I/OConfigurable I/O Routes to MCU PA0. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-16R Active-low resetActive-low reset Connects to MCU NRST. Use a compatible open-drain reset signal.
H1-17C15 Configurable I/OConfigurable I/O Routes to MCU PC15. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-18C14 Configurable I/OConfigurable I/O Routes to MCU PC14. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-19C13 Configurable I/OConfigurable I/O Routes to MCU PC13. Choose the applicable GPIO or peripheral function in the MCU documentation.
H1-20VB PowerPower Connects to VBAT. Use the specified board power connection.
H2-1B12 Configurable I/OConfigurable I/O Routes to MCU PB12. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-2B13 Configurable I/OConfigurable I/O Routes to MCU PB13. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-3B14 Configurable I/OConfigurable I/O Routes to MCU PB14. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-4B15 Configurable I/OConfigurable I/O Routes to MCU PB15. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-5A8 Configurable I/OConfigurable I/O Routes to MCU PA8. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-6A9 Configurable I/OConfigurable I/O Routes to MCU PA9. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-7A10 Configurable I/OConfigurable I/O Routes to MCU PA10. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-8A11 Configurable I/OConfigurable I/O Routes to MCU PA11. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-9A12 Configurable I/OConfigurable I/O Routes to MCU PA12. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-10A15 Configurable I/OConfigurable I/O Routes to MCU PA15. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-11B3 Configurable I/OConfigurable I/O Routes to MCU PB3. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-12B4 Configurable I/OConfigurable I/O Routes to MCU PB4. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-13B5 Configurable I/OConfigurable I/O Routes to MCU PB5. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-14B6 Configurable I/OConfigurable I/O Routes to MCU PB6. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-15B7 Configurable I/OConfigurable I/O Routes to MCU PB7. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-16B8 Configurable I/OConfigurable I/O Routes to MCU PB8. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-17B9 Configurable I/OConfigurable I/O Routes to MCU PB9. Choose the applicable GPIO or peripheral function in the MCU documentation.
H2-185V PowerPower Connects to 5V. Use the specified board power connection.
H2-19G ReturnReturn Connects to the board’s ground plane.
H2-203.3 PowerPower Connects to 3V3. Use the specified board power connection.
H3-13.3V PowerPower Connects to 3V3. Use the specified board power connection.
H3-2SWDIO DebugDebug Connects to MCU PA13 on the debug interface.
H3-3SWCLK 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.

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. WeAct MiniF4 V3.1 connector map
External high-speed oscillator25 MHz25 MHz Use the correct HSE frequency in firmware clock calculations. WeAct MiniF4 V3.1 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.

WeAct MiniF4 V3.1
WeAct documents the same side-header and SWD pin definitions for V3.0 and V3.1. The map covers those headers on V3.1. See the WeAct schematic for USB-C and the optional flash device.