GD32VF103C DLink Debugger
Overview
This GD32VF103C DLink Debugger is used to debug Nuclei RISC-V CPU from Nuclei using GD32VF103CVBT6 as main MCU.
Click https://github.com/nuclei-Software/nuclei-dlink to learn more about Nuclei DLink project.
Setup
How to use
For GD32VF103C DLink Debugger board, the DOWNLOAD and CORE variables
are fixed to flashxip
and n205
.
You can find its linker script in
SoC/gd32vf103/Board/gd32vf103c_dlink/Source/GCC/
gcc_gd32vf103_flashxip.ld
: Linker script file forDOWNLOAD=flashxip
If you want to specify your own modified linker script, you can follow steps described in Change Link Script
You can find its openocd configuration file in
SoC/gd32vf103/Board/gd32vf103c_dlink/openocd_gd32vf103.cfg
To run this application in GD32VF103C DLink Debugger board in Nuclei SDK, you just need to use this SOC and BOARD variables.
# Clean the application
make SOC=gd32vf103 BOARD=gd32vf103c_dlink clean
# Build the application
make SOC=gd32vf103 BOARD=gd32vf103c_dlink all
# Upload the application using openocd and gdb
make SOC=gd32vf103 BOARD=gd32vf103c_dlink upload
# Debug the application using openocd and gdb
make SOC=gd32vf103 BOARD=gd32vf103c_dlink debug