rt-thread/bsp/gd32vf103v-eval
Placebo27 538158bf20
[bsp] fix mismatched function types in rt_pin_ops for all drv_gpio.c (#7457)
2023-05-08 23:35:27 -04:00
..
.settings add gd32vf103v-eval bsp 2019-07-24 19:25:39 +08:00
applications [gd32][drivers] auto formatted 2021-03-12 00:03:36 +08:00
board [atomic]添加arm与risc-v下的常用原子操作函数 (#7053) 2023-03-23 20:06:50 +08:00
drivers [bsp] fix mismatched function types in rt_pin_ops for all drv_gpio.c (#7457) 2023-05-08 23:35:27 -04:00
figures add gd32vf103v-eval bsp 2019-07-24 19:25:39 +08:00
libraries [libcpu][riscv]整合libcpu/riscv中的移植文件 提供一份公共代码于common (#6941) 2023-03-01 01:32:43 -05:00
.config sync and update all projects (#7138) 2023-03-31 16:49:48 +08:00
.cproject first version 2019-07-24 17:03:26 +08:00
.project first version 2019-07-24 17:03:26 +08:00
Kconfig format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
README.md add gd32vf103v-eval bsp 2019-07-24 19:25:39 +08:00
SConscript [posix][libc] 优化libc中posix结构 2021-10-26 23:09:54 -04:00
SConstruct [update] CFLAGS 2021-12-17 14:28:40 +08:00
rtconfig.h sync and update all projects (#7138) 2023-03-31 16:49:48 +08:00
rtconfig.py first version 2019-07-24 17:03:26 +08:00

README.md

GD32VF103

简介

gd32vf103v-eval 是由兆易创新公司推出的基于开源指令集 RISC-V 架构的开发板。

板载资源:

硬件 描述
内核 Bumblebee
架构 32-bit RV32IMAC
主频 108 MHz

编译说明

导入工程

打开 Eclipse 选择工作空间

指定工作空间

打开 Eclipse 后需要导入 RT-Thread 工程

导入工程

选择以存在的工程,并指定工程路径

选择存在工程

指定工程路径

指定工程路径

添加环境变量

设置 Build Tools Path

build_path

点击 MCU 列表中的 Build Tools Path 选项,为其选择 SDK 文件包中提供的对应工具

设置 OpenOCD Path

open_ocd

点击 MCU 列表中的 OpenOCD Path 选项,为其选择 SDK 文件包中提供的对应工具。

设置 RISC-V Toolchains Path

risc-v

点击 MCU 列表中的 RISC-V Toolchains Paths 选项,为其选择 SDK 文件包中提供的对应工具。

按照以上步骤设置好路径点击编译即可编译工程

build

烧写及执行

替换驱动

  1. 执行 JLink_Windows_V622c.exe (可以是任意版本)安装 JLink 驱动程序。
  2. 执行 Zadig.exe点击 Options->List All Devices。
  3. 在下图 1 处选择 J-Link2 处选择 WinUSB 之后点击 3 处 Replace Driver 进行驱动替换。

zadig

安装完成之后会弹出如下窗口:

close

配置 GDB 调试

在菜单栏中,点击 Run->Debug Configurations进入 Debug 配置界面,如下图所示:

open_debug

这里使用 OpenOCD 作为 GDB Server使用GCC工具链中的 GDB 工具作为 GDB Client。双击 GDB OpenOCD Debugging新建一套 OpenOCD 的配置选项。

Main 选项卡

Main 选项卡配置界面

main_select

选择当前工程 GD32VF103并且选择当前型号的可执行文件例如GD32VF103xB\GD32VF103xB.elf。

Debugger 选项卡 Debugger 选项卡配置界面

debug_select

在 Debugger 选项卡中,确认红圈中的配置正确。 其中“Config options” 是为 OpenOCD 选择配置文件,需要根据当前使用的下载器选择不同的 cfg 文件。

上述配置内容配置好后,点击应用调试。

运行结果

下载程序之后,连接串口(115200-N-8-1),可以看到 RT-Thread 的输出信息:

 \ | /
- RT -     Thread Operating System
 / | \     4.0.2 build Jul 24 2019
 2006 - 2019 Copyright by rt-thread team
msh >

驱动支持情况

驱动 支持情况 备注
USART 支持 UART0_TX/RXGPIO 9/10

5. 联系人信息

维护人: