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.

PackageContactsDetails
STM32F103C8T6 Black Pill 43 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.
WeAct MiniF4 V3.1 44 Match the V3.1 marking on the underside of the WeAct MiniF4. The map follows headers P1 and P2 and SWD connector P3 in the V3.1 schematic.

STM32 development boards

WeAct MiniF4 V3.1 pinout

Connector contacts

The guide uses H1, H2 and H3 for schematic connectors P1, P2 and P3 respectively. Match pin 1 to the board markings.

Selected pin details

H1-1 · 5V

Power · Power

Board 5 V rail and regulator input. USB VBUS feeds it through D4 with SB1 open. Closing SB1 bypasses D4 and ties the rails together. Disconnect USB before feeding 5 V here.

WeAct MiniF4 V3.1 connector map

Electrical limits · Link to this pin

Power the board from USB

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

Connection guide

All 44 pins

PinSignalDirectionFunction
H1-15V PowerPower Board 5 V rail and regulator input. USB VBUS feeds it through D4 with SB1 open. Closing SB1 bypasses D4 and ties the rails together. Disconnect USB before feeding 5 V here.
H1-2G ReturnReturn Connects to the board’s ground plane.
H1-33.3 PowerPower Board regulator output and MCU supply rail. With USB or 5 V power connected, leave external supplies off this contact.
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 R3 pulls PB2 down with 10 kΩ. With BOOT0 high at reset, keep PB2 (BOOT1) low to enter the system bootloader.
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 Shares MOSI with the optional onboard W25Q flash when fitted.
H1-9A6 Configurable I/OConfigurable I/O Shares MISO with the optional onboard W25Q flash when fitted. Keep flash CS high when using this line for another device.
H1-10A5 Configurable I/OConfigurable I/O Shares SCK with the optional onboard W25Q flash when fitted.
H1-11A4 Configurable I/OConfigurable I/O Selects the optional onboard W25Q flash when fitted. Keep CS high to deselect the flash.
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 Pressing KEY pulls PA0 to GND through R1 (330 Ω). Enable a pull-up when using KEY as a digital input.
H1-16R Active-low resetActive-low reset The RESET button pulls NRST to GND. C3 (100 nF) is on this line. Use an open-drain output for external reset.
H1-17C15 Configurable I/OConfigurable I/O LSE output (OSC32_OUT), wired to the onboard 32.768 kHz crystal Y1. Leave this header contact open when using LSE.
H1-18C14 Configurable I/OConfigurable I/O LSE input (OSC32_IN), wired to the onboard 32.768 kHz crystal Y1. Leave this header contact open when using LSE.
H1-19C13 Configurable I/OConfigurable I/O Drives the onboard blue LED D2 through its 1.5 kΩ series resistor. The LED lights when PC13 is low.
H1-20VB PowerPower RTC backup supply input. VB and the 3.3 V rail feed MCU VBAT through separate branches of D1 (BAT54C). Account for the diode drop when checking the MCU VBAT range.
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 Wired to USB-C D−. Leave this header contact free of external drivers when using USB data.
H2-9A12 Configurable I/OConfigurable I/O Wired to USB-C D+. Leave this header contact free of external drivers when using USB data.
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 Board 5 V rail and regulator input. USB VBUS feeds it through D4 with SB1 open. Closing SB1 bypasses D4 and ties the rails together. Disconnect USB before feeding 5 V here.
H2-19G ReturnReturn Connects to the board’s ground plane.
H2-203.3 PowerPower Board regulator output and MCU supply rail. With USB or 5 V power connected, leave external supplies off this contact.
H3-13.3V PowerPower Board 3.3 V rail. Connect a powered board here to the probe’s VTref input.
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 source for your PCB revision before applying power.

WeAct MiniF4 V3.1
Match the V3.1 marking on the underside of the WeAct MiniF4. The map follows headers P1 and P2 and SWD connector P3 in the V3.1 schematic.