GD32F103 connection guide
GD32F103 (LQFP48) connection guide. Power and boot from Flash. Connect a Serial Wire Debug probe.
Device variants · LQFP48
| Device | Flash | SRAM | Serial peripherals |
|---|---|---|---|
| GD32F103C4T6 | 16 KiB | 6 KiB | 2 USART, 1 SPI, 1 I²C, 1 CAN, 1 USBD |
| GD32F103C6T6 | 32 KiB | 10 KiB | 2 USART, 1 SPI, 1 I²C, 1 CAN, 1 USBD |
| GD32F103C8T6 | 64 KiB | 20 KiB | 2 USART, 1 SPI, 1 I²C, 1 CAN, 1 USBD |
| GD32F103CBT6 | 128 KiB | 20 KiB | 3 USART, 2 SPI, 2 I²C, 1 CAN, 1 USBD |
Power and boot from Flash
RequiredUse a regulated 3.3 V supply and a single ground plane. Feed VBAT from the same rail for this single-supply setup. Fit each bypass capacitor close to its corresponding contacts. Pull BOOT0 low with 10 kΩ.
- +3.3 V digital
- Bench supply positive
- Digital return
- Bench supply return
- +3.3 V analog
- Same +3.3 V source
- Analog return
- Same ground plane
- Backup supply
- Same +3.3 V source
- Boot strap
- →
Bench checks
- Verify continuity from every supply and ground lead to its intended rail before powering up.
- Confirm that the digital and analog rails are near 3.3 V and that BOOT0 remains low through reset.
GD32F103xx datasheet Rev. 3.3, §3.3 and Fig. 4-1. The 10 kΩ strap is a bench choice.
Connection scenarios
Connect a Serial Wire Debug probe
Keep the power circuit in place. Use a probe that senses the target’s I/O voltage on VTref. Enable its SWD mode and connect the probe’s reset output if the probe supports connection under reset.
- Target reference
- Probe VTref input
- Common ground
- Probe ground
- SWD data
- ↔
- Probe SWDIO
- SWD clock
- →
- Probe SWCLK
- Reset
- ↔
- Probe open-drain nRESET
Bench checks
- Check that VTref measures approximately 3.3 V with respect to probe ground.
- Select the exact part in the debugger. Start at a low SWD clock rate and check that the debug port responds before programming Flash.
GD32F10x user manual Rev. 2.9, debug port pin assignment. GD32F103xx datasheet Rev. 3.3, §2.6.
LQFP48 wiring map
3 · PC14
GPIO or low-speed external oscillator input (OSC32IN). The backup-domain power switch supplies all three pins (PC13–PC15): 3 mA typical sourcing in total; sinking is the same as on other I/O. GPIO output: ≤2 MHz with load ≤30 pF. GPIO requires VDD; with VBAT alone, only the backup functions remain available.
Wiring requirements
RTC must keep time with VDD off. Keep VBAT powered and select LXTAL as the RTC clock. IRC40K and HXTAL cannot keep the RTC running from VBAT alone.
32.768 kHz crystal. Fit the crystal between PC14 (OSC32IN) and PC15 (OSC32OUT) with load capacitors to ground; enable LXTAL.
Driven low-speed clock. Enable LXTAL bypass, drive PC14 and leave PC15 open.
Using PC14 or PC15 as GPIO. Turn LXTAL off before using either pin as GPIO. GPIO on these pins is unavailable in standby and with VBAT alone.
Driving GPIO loads. Budget sourcing current across PC13, PC14 and PC15 together. Use an external driver if the combined load exceeds their shared capability.
Manufacturer documents
Interactive maps cover LQFP48, LQFP64 and LQFP100. See Figures 2-3 and 2-7 of the datasheet for LQFP144 and QFN36. Match the suffix on the chip. Board headers and regulator connections depend on the PCB.
- GD32F103xx datasheet Rev. 3.3· Figures 2-4 to 2-6, pin tables 2-6 to 2-8, Figure 4-1 and ordering information.
- GD32F10x user manual Rev. 2.9· Boot modes, GPIO alternate functions and serial-wire debug.
- Source register· Document applicability, revisions and SHA-256 checksums.
