Black Pill connection guide
Black Pill (WeAct MiniF4 V3.1) connection guide. Power the board from USB. Attach an SWD probe.
| Package | Contacts | Details |
|---|---|---|
| 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. |
Power the board from USB
RequiredUse USB-C as the single power source. With SB1 open, VBUS feeds the board’s 5 V rail through D4. With SB1 closed, VBUS and the 5 V rail are directly connected. Leave external power headers disconnected. Check the 3.3 V rail before attaching the debug probe.
- 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
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.
WeAct MiniF4 V3.1 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.
WeAct MiniF4 V3.1 connector map
WeAct MiniF4 V3.1 wiring map
Connector contacts
H1-1 · 5V
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.
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.
- STMicroelectronics MCU datasheet· MCU electrical specifications and package pin functions.
- WeAct MiniF4 V3.1 schematic· PCB power, debug, connector and peripheral wiring.
- WeAct MiniF4 hardware revisions· Revision changes, including regulator and USB-C power routing.
