ch32rv
A single CLI to flash and debug WCH CH32 RISC-V microcontrollers over WCH-Link / WCH-LinkE, OEP (Open Embedded Probe) probes, and the chips' own bootloaders: 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 the bench with CH32V003, V006, V103, V203, V205, V307, X035, X315, L103 and H417. Linux x86_64 and Windows x86_64 are verified; macOS and the arm targets are experimental.
Install
Prebuilt binaries are also on the releases page. On Linux, grant USB access to the probes and bootloaders 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 the ch32rv-* crates in its repository (parts of the CLI, with no API or
semver promise of their own). Full documentation, the command
reference, and the release plan are in the repository.
License
MIT.