CH32V307-makefile-example icon indicating copy to clipboard operation
CH32V307-makefile-example copied to clipboard

Example Makefile project for the CH32V307

Basic CH32V307 RISCV Makefile project

Requirements:

  • xpack riscv toolchain (riscv-none-embed-)

Set up udev rules for WCH link

sudo cp ./50-wch.rules   /etc/udev/rules.d  
sudo udevadm control --reload-rules

Make project

make

Licence

Unless otherwise stated files are licensed as BSD 2-Clause

Files under vendor/ are from openwch (https://github.com/openwch/ch32v307) Licensed under Apache-2.0 Makefile is based on an example here: https://spin.atomicobject.com/2016/08/26/makefile-c-projects/