SWD debug
P3-2 connects to PA13 and P3-3 connects to PA14. Use P1-4 (NRST) for connect under reset.
The GD32F103CBT6 version of WeAct’s BluePill+ V1.1 board with 20-position side headers and a separate SWD header.
Board regulator input. USB VBUS feeds VCC through D4 with SB1 open. Closing SB1 bypasses D4 and ties VBUS directly to VCC. Use one power source at a time. Disconnect external VCC and 3V3 supplies when powering from USB. With SB1 closed, external VCC can backfeed the USB host.
| Pin | Signal | Direction | Function |
|---|---|---|---|
| P1-1 | VCC Supply input | Supply input | Board regulator input. USB VBUS feeds VCC through D4 with SB1 open. Closing SB1 bypasses D4 and ties VBUS directly to VCC. Use one power source at a time. Disconnect external VCC and 3V3 supplies when powering from USB. With SB1 closed, external VCC can backfeed the USB host. |
| P1-2 | GND Return | Return | Connect to the board ground return. |
| P1-3 | 3V3 Regulated rail | Regulated rail | Regulator output and MCU supply. Leave external 3.3 V power disconnected while using USB or VCC power. |
| P1-4 | NRST Input | Input | Active-low reset shared with SW1. Connect the probe reset lead here for SWD connect under reset. |
| P1-5 | PB11 Bidirectional | Bidirectional | Microcontroller pad exposed directly on the expansion header. |
| P1-6 | PB10 Bidirectional | Bidirectional | Microcontroller pad exposed directly on the expansion header. |
| P1-7 | PB1 Bidirectional | Bidirectional | Microcontroller pad exposed directly on the expansion header. |
| P1-8 | PB0 Bidirectional | Bidirectional | Microcontroller pad exposed directly on the expansion header. |
| P1-9 | PA7 Bidirectional | Bidirectional | Data to optional W25Q32 flash U3 (MOSI). Shared with the flash when U3 is fitted. |
| P1-10 | PA6 Bidirectional | Bidirectional | Data from optional W25Q32 flash U3 (MISO). Shared with the flash when U3 is fitted. |
| P1-11 | PA5 Bidirectional | Bidirectional | Clock (SCK) for optional W25Q32 flash U3. Shared with the flash when U3 is fitted. |
| P1-12 | PA4 Bidirectional | Bidirectional | Chip select (F_CS) for optional W25Q32 flash U3. Shared with the flash when U3 is fitted. |
| P1-13 | PA3 Bidirectional | Bidirectional | Microcontroller pad exposed directly on the expansion header. |
| P1-14 | PA2 Bidirectional | Bidirectional | Microcontroller pad exposed directly on the expansion header. |
| P1-15 | PA1 Bidirectional | Bidirectional | Microcontroller pad exposed directly on the expansion header. |
| P1-16 | PA0 Bidirectional | Bidirectional | Pressing user button SW2 connects PA0 to 3.3 V through R4 (330 Ω). Configure an input pull-down for a defined released state. |
| P1-17 | PC15 Output | Output | Shared with the fitted 32.768 kHz oscillator circuit. |
| P1-18 | PC14 Input | Input | Shared with the fitted 32.768 kHz oscillator circuit. |
| P1-19 | PC13 Bidirectional | Bidirectional | MCU PC13 is brought out on P1-19. The onboard blue LED is driven by PB2. |
| P1-20 | VB Backup input | Backup input | RTC backup input through the schematic’s diode network. |
| P2-1 | PB12 Bidirectional | Bidirectional | Microcontroller pad exposed directly on the expansion header. |
| P2-2 | PB13 Bidirectional | Bidirectional | Microcontroller pad exposed directly on the expansion header. |
| P2-3 | PB14 Bidirectional | Bidirectional | Microcontroller pad exposed directly on the expansion header. |
| P2-4 | PB15 Bidirectional | Bidirectional | Microcontroller pad exposed directly on the expansion header. |
| P2-5 | PA8 Bidirectional | Bidirectional | Microcontroller pad exposed directly on the expansion header. |
| P2-6 | PA9 Bidirectional | Bidirectional | USART0 transmit on the default pin mapping. |
| P2-7 | PA10 Bidirectional | Bidirectional | USART0 receive on the default pin mapping. |
| P2-8 | PA11 Bidirectional | Bidirectional | GPIO shared with the USB D− line on this board. |
| P2-9 | PA12 Bidirectional | Bidirectional | GPIO shared with the USB D+ line on this board. |
| P2-10 | PA15 Bidirectional | Bidirectional | Microcontroller pad exposed directly on the expansion header. |
| P2-11 | PB3 Bidirectional | Bidirectional | Microcontroller pad exposed directly on the expansion header. |
| P2-12 | PB4 Bidirectional | Bidirectional | Microcontroller pad exposed directly on the expansion header. |
| P2-13 | PB5 Bidirectional | Bidirectional | Microcontroller pad exposed directly on the expansion header. |
| P2-14 | PB6 Bidirectional | Bidirectional | I²C0 clock on the default pin mapping. |
| P2-15 | PB7 Bidirectional | Bidirectional | I²C0 data on the default pin mapping. |
| P2-16 | PB8 Bidirectional | Bidirectional | Microcontroller pad exposed directly on the expansion header. |
| P2-17 | PB9 Bidirectional | Bidirectional | Microcontroller pad exposed directly on the expansion header. |
| P2-18 | VCC Supply input | Supply input | Board regulator input. USB VBUS feeds VCC through D4 with SB1 open. Closing SB1 bypasses D4 and ties VBUS directly to VCC. Use one power source at a time. Disconnect external VCC and 3V3 supplies when powering from USB. With SB1 closed, external VCC can backfeed the USB host. |
| P2-19 | GND Return | Return | Connect to the board ground return. |
| P2-20 | 3V3 Regulated rail | Regulated rail | Regulator output and MCU supply. Leave external 3.3 V power disconnected while using USB or VCC power. |
| P3-1 | 3V3 Target reference | Target reference | Connect to the probe’s voltage-sense input (VTref). Disable probe-supplied target power when the board is powered from USB. |
| P3-2 | SWDIO Bidirectional | Bidirectional | Serial Wire data on PA13. |
| P3-3 | SWCLK Input | Input | Serial Wire clock on PA14. |
| P3-4 | GND Return | Return | Connect to the board ground return. |
P3-2 connects to PA13 and P3-3 connects to PA14. Use P1-4 (NRST) for connect under reset.
P2-6 is TX and P2-7 is RX with the default pin mapping.
P2-14 is SCL and P2-15 is SDA with the default pin mapping.
With W25Q32 U3 fitted, P1-9 through P1-12 share the flash MOSI, MISO, SCK and chip-select lines. Account for U3 before using these pins for other functions.
| Parameter | Limit | Conditions and source |
|---|---|---|
| VCC regulator input3.3–5.5 V | 3.3–5.5 V | Range printed on the board schematic. Use 5 V USB Type-C as the sole source in this guide. WeAct Studio BluePill+ V1.1 schematic, 6 June 2022 |
| Digital signaling3.3 V nominal | 3.3 V nominal | Use 3.3 V adapter and debug levels. WeAct Studio BluePill+ V1.1 schematic, 6 June 2022 |
Match the WeAct Studio V1.1 board marking and header pin-1 index before wiring P1, P2 or P3. The onboard blue LED D1 is active high on PB2 (BOOT1) through R1 (1.5 kΩ). R6 (10 kΩ) pulls PB2 to ground. PB2 stays on the board.