2026-09-11 16:12:23 +03:00
2026-09-11 12:57:14 +03:00
2026-09-15 17:50:50 +03:00
2026-09-11 12:57:14 +03:00
2026-09-11 12:57:14 +03:00

Project VS Code template for CH32V00x microcontrollers. It uses official WCH's SDK with riscv32-wch-elf-gcc compiler.

Screenshot
Debugging process of CH32V003F4P6 in VS Code

Instructions to build

  1. Download MRS toolchain from mounriver.com: link
  2. Extract folder and add binaries to PATH env:
sudo mkdir -p /opt/wch/MRS_Toolchain
sudo tar -xf MRS_Toolchain_Linux_X64_V240.tar.xz -C /opt/wch --strip-components=1
export PATH=/opt/wch/MRS_Toolchain/RISC-V\ Embedded\ GCC15/bin:$PATH
  1. Download SDK from wch.cn for CH32V003 for example:
wget -O CH32V003EVT.ZIP https://file.wch.cn/download/file?id=412
sudo unzip CH32V003EVT.ZIP -d /opt/wch/CH32V003EVT
  1. Install wlink flasher tool:
cargo install --git https://github.com/ch32-rs/wlink
  1. Build and flash
make && make prog_flash

For debugging, make sure you have the libjaylink0 package installed.

Description
No description provided
Readme 394 KiB
Languages
C 68.7%
Assembly 16.1%
Makefile 15.2%