Skip to content

在GD32VF103移植FreeRTOSV10,支持使用中断栈机制,支持sysview

License

Notifications You must be signed in to change notification settings

QQxiaoming/gd32vf103_freertos

Repository files navigation

CI License GitHub stars GitHub forks Gitee stars Gitee forks

gd32vf103_freertos

在GD32VF103移植freertos,linux环境开发

GD32VF103驱动来自于https://github.com/riscv-mcu/GD32VF103_Demo_Suites

FreeRTOS移植层部分代码来自于https://github.com/nucleisys/n200-sdk

编译说明

tools/Nuclei/openocd目录内为官方提供的64位linux平台openocd工具,用来调试下载

tools/riscv-none-gcc/8.2.0-2.2-20190521-0004目录为官方提供的64位linux平台GNU工具链

编译

运行

make

将在根目录执行编译,最终在build目录生成gd32vf103.elf、gd32vf103.bin、gd32vf103.hex文件

调试

运行

sudo ./ocdsever.sh

将启动通过openocd打开一个gdbsever,供调试使用

重新打开一个新命令行终端,运行

make debug

等待程序下载至flash,即可开始调试。

其他说明

目前makefile中使用insight代替gdb来调试,如果未安装此工具可以将

GDB       = /opt/riscv-none-eabi-insight/bin/riscv-none-eabi-insight #使用insight代替gdb来调试

改为

GDB       = $(PREFIX)gdb

使用

About

在GD32VF103移植FreeRTOSV10,支持使用中断栈机制,支持sysview

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages