This repository shows you how to build a executable file for GD32VF103 RISC-V MCU with riscv-gnu-toolchain.
How to use
Open the terminal console
Change the working directory to the /src folder under this README path
Read the README file to knowing the instruction of Makefie
Type $” make” to make the .elf/.hex/.bin file from source code which named “main.c”, the output files are all putting in /build folder
Type $” make dfu” to download the .bin file to the gd32vf103 development board using dfu protocol.
You can see the on-board LED flashing
Modify main.c for any function you want, also, you can reference the /Example folder to using ADC,DAC,I2C,CAN bus or anything the IC can do.