GD32C231C-EVAL
Overview
The GD32C231C-EVAL evaluation board is a low-cost development platform for GigaDevice GD32C231C microcontroller series based on ARM Cortex-M23 core.
The GD32C231C8 features:
ARM Cortex-M23 processor at 48MHz maximum
64KB Flash memory
12KB SRAM
Low power operation
Multiple communication interfaces: UART, SPI, I2C
GPIO ports
Timer modules
ADC and comparator
Hardware
MCU: GD32C231C8T6
Crystal: 8MHz external crystal for HXTAL
LED: 4 user LEDs (LED1..LED4)
Debug: SWD interface
Supported Features
The gd32c231c_eval board supports the hardware features listed below.
- on-chip / on-board
- Feature integrated in the SoC / present on the board.
- 2 / 2
-
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files. -
vnd,foo -
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.
gd32c231c_eval/gd32c231 target
On-target memory for this board target: 12 KiB of RAM, 64 KiB of Flash.
Type |
Location |
Description |
Compatible |
|---|---|---|---|
CPU |
on-chip |
ARM Cortex-M23 CPU1 |
|
Clock control |
on-chip |
Gigadevice RCU - Clock Controller1 |
|
Flash controller |
on-chip |
There are three types GD32 FMC1 |
|
GPIO & Headers |
on-chip |
||
Interrupt controller |
on-chip |
ARMv8-M NVIC (Nested Vectored Interrupt Controller)1 |
|
on-chip |
GigaDevice External Interrupt Controller1 |
||
LED |
on-board |
Group of GPIO-controlled LEDs1 |
|
Multi-Function Device |
on-chip |
Gigadevice RCU1 |
|
Miscellaneous |
on-chip |
GigaDevice GD32 System Configuration Registers1 |
|
MTD |
on-chip |
Flash memory binding of GD32 FMC v11 |
|
Pin control |
on-chip |
GD32 Pin Controller (AF Model)1 |
|
Reset controller |
on-chip |
Gigadevice RCU - Reset Controller1 |
|
Serial controller |
on-chip |
||
SRAM |
on-chip |
Generic on-chip SRAM1 |
|
Timer |
on-chip |
ARMv8-M System Tick1 |
Connections and IOs
LED
LED1 = PA15
LED2 = PD1
LED3 = PD3
LED4 = PB4
UART
USART0_TX = PA9
USART0_RX = PA10
Programming and Debugging
The gd32c231c_eval board supports the runners and associated west commands listed below.
| flash | debug | attach | debugserver | rtt | reset | |
|---|---|---|---|---|---|---|
| jlink | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| openocd | ✅ (default) | ✅ (default) | ✅ | ✅ | ✅ |
The GD32C231C-EVAL board includes an onboard GD-Link programmer/debugger with a CMSIS-DAP SWD interface over USB. The recommended flashing tool is GD-Link Utility Programmer, the official GigaDevice utility. OpenOCD and J-Link are also supported.
Flashing
Using GD-Link Utility Programmer
GD-Link Utility Programmer [1] is GigaDevice’s official download tool for GD-Link hardware. It supports SWD programming and ISP download.
Download and install GD-Link Utility Programmer from the GigaDevice download center [2].
Build the sample application:
west build -b gd32c231c_eval samples/hello_worldConnect the board to the PC via the USB port (GD-Link interface).
Open GD-Link Utility Programmer, select target device GD32C231C8T6, load
build/zephyr/zephyr.hex, and click Download.
Using OpenOCD
OpenOCD can be used with the onboard GD-Link CMSIS-DAP interface or an external SWD probe:
west build -b gd32c231c_eval samples/hello_world
west flash
Using J-Link
west build -b gd32c231c_eval samples/hello_world
west flash --runner jlink
Debugging
Use the onboard GD-Link interface or an external SWD probe:
west build -b gd32c231c_eval samples/hello_world
west debug