Spark Logic

GD32F103 connection guide

GD32F103 (LQFP64) connection guide. Power and boot from Flash. Connect a Serial Wire Debug probe.

PackageContactsDetails
LQFP48 48 GD32F103Cx · 48 leads
LQFP64 64 GD32F103Rx · 64 leads
LQFP100 100 GD32F103Vx · 100 leads

GigaDevice

Device variants · LQFP64

DeviceFlashSRAMSerial peripherals
GD32F103R4T6 16 KiB 6 KiB 2 USART, 1 SPI, 1 I²C, 1 CAN, 1 USBD
GD32F103R6T6 32 KiB 10 KiB 2 USART, 1 SPI, 1 I²C, 1 CAN, 1 USBD
GD32F103R8T6 64 KiB 20 KiB 3 USART, 2 SPI, 2 I²C, 1 CAN, 1 USBD
GD32F103RBT6 128 KiB 20 KiB 3 USART, 2 SPI, 2 I²C, 1 CAN, 1 USBD
GD32F103RCT6 256 KiB 48 KiB 3 USART, 2 UART, 3 SPI, 2 I²C, 1 CAN, 1 USBD, 1 SDIO
GD32F103RDT6 384 KiB 64 KiB 3 USART, 2 UART, 3 SPI, 2 I²C, 1 CAN, 1 USBD, 1 SDIO
GD32F103RET6 512 KiB 64 KiB 3 USART, 2 UART, 3 SPI, 2 I²C, 1 CAN, 1 USBD, 1 SDIO
GD32F103RFT6 768 KiB 96 KiB 3 USART, 2 UART, 3 SPI, 2 I²C, 1 CAN, 1 USBD, 1 SDIO
GD32F103RGT6 1024 KiB 96 KiB 3 USART, 2 UART, 3 SPI, 2 I²C, 1 CAN, 1 USBD, 1 SDIO
GD32F103RIT6 2048 KiB 96 KiB 3 USART, 2 UART, 3 SPI, 2 I²C, 1 CAN, 1 USBD, 1 SDIO
GD32F103RKT6 3072 KiB 96 KiB 3 USART, 2 UART, 3 SPI, 2 I²C, 1 CAN, 1 USBD, 1 SDIO

Power and boot from Flash

Required

Use 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
    • →
4.7 µF bulk between +3.3 V digital and Digital return+3.3 V digital4.7 µF bulkDigital return
100 nF × 4, one at each VDD lead between +3.3 V digital and Digital return+3.3 V digital100 nF × 4, one at each VDD leadDigital return
1 µF in parallel with 10 nF at VDDA between +3.3 V analog and Analog return+3.3 V analog1 µF in parallel with 10 nF at VDDAAnalog return
100 nF between Backup supply and Digital returnBackup supply100 nFDigital return
10 kΩ between Boot strap and Digital returnBoot strap10 kΩDigital return

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.

LQFP64 wiring map

External wiring example · Connect a Serial Wire Debug probe

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

LQFP64

3 · PC14 · Left side, contact 3 from the top

Face the package marking. Pin 1 is beside the corner mark. Numbers advance counterclockwise.
Selected pin details

3 · PC14

Bidirectional · GPIO

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

GD32F103xx datasheet Rev. 3.3, Table 2-7; GD32F103xx datasheet Rev. 3.3, Tables 4-30 and 4-31, note 3; GD32F10x user manual Rev. 2.9, §3.3.1

Electrical limits · Pin in the reference

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.