Skip to content

robinjanssens/WCH-Toolchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WCH Toolchain

This toolchain currently support the following devices:

Install

MacOS

Install Compiler

  • brew tap riscv-software-src/riscv
  • brew install riscv-software-src/riscv/riscv-tools

Install Flashtool

  • brew install libusb
  • (Install Rust brew install rust)
  • cargo install wchisp --git https://github.com/ch32-rs/wchisp
  • Add export PATH=$PATH:/Users/<username>/.cargo/bin to ~/.zprofile
  • source ~/.zprofile

Develop

User code should be placed in the /projects folder.
When creating new project folder, copy makefile from a different project inside your new project's folder or copy an existing project.

Build

Inside your project's folder:

  • make

Flash

Inside your project's folder:

  • Boot device in programming mode by holding button while powering on device
  • make flash

About

Compile and flash pipeline for WCH32 MCUs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages