Spark Logic

Black Pill connection guide

Black Pill (STM32F103C8T6 Black Pill) connection guide. Power the board from USB. Attach an SWD probe.

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

Power the board from USB

Required

Use a single USB cable to power the board through its native connector. Leave external power headers disconnected. Check the 3.3 V rail before attaching the debug probe.

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

Bench checks

  • Identify the USB power input and ground in the documentation for your PCB revision.
  • Measure roughly 3.3 V between the board logic rail and ground. Check for a short or wrong connector if the rail is low.

STM32F103C8T6 Black Pill connector map

Connection scenarios

Attach an SWD probe

Use the USB supply from the required step. Configure the probe for a powered 3.3 V target. Connect the probe’s reference input to the board logic rail, then wire SWDIO, SWCLK and ground.

  • Target reference
    • Probe VTref input
  • Ground
    • Probe ground
  • SWD data
    • ↔
    • Probe SWDIO
  • SWD clock
    • →
    • Probe SWCLK

Bench checks

  • Check pin 1 orientation and verify each connection with the cable unplugged.
  • Select the exact MCU and use a low SWD clock for the first connection.

STM32F103C8T6 Black Pill connector map

STM32F103C8T6 Black Pill wiring map

External wiring example · Attach an SWD probe

Highlighted contacts are used in the required step or selected circuit. Select a contact to highlight its wiring nets.

Connector contacts

H-prefixed contact IDs are references used in this guide. Match the actual markings and connector orientation to the board documentation.

Selected pin details

H1-1 · GND

Return · Ground

Connects to the board’s ground plane.

STM32F103C8T6 Black Pill connector map

Electrical limits · Pin in the reference

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 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.