ch32rv
A single CLI to flash and debug WCH CH32 RISC-V microcontrollers over WCH-Link / WCH-LinkE: programming, verify/read/write, erase, recovery, option bytes, run-control + a GDB server, runtime monitors, probe management, a built-in device database, and the Arduino IDE integration protocols.
Beta. The
0.xline is a beta for downstream projects to integrate against; the CLI may still change before the1.0formal release. Verified end-to-end on a six-board bench (CH32V003 / V103 / V203 / V307 / X035 / L103). Linux x86_64 is verified; macOS / Windows binaries are experimental.
Install
Prebuilt binaries are also on the releases page. On Linux, grant USB access to the WCH-Link with a udev rule:
|
&&
Quick start
Run ch32rv --help for the full command tree and global options (--probe, --chip, --json,
--yes, --dry-run). Exit codes and the JSON envelope come from the ch32rv-contract crate.
More
ch32rv is built from reusable library crates (ch32rv-wchlink, ch32rv-dmi, ch32rv-target,
ch32rv-flash, ch32rv-debug, ch32rv-usb, ch32rv-contract). Full documentation, the command
reference, and the release plan are in the repository.
License
MIT.