cnlohr/ch32v003fun
FreeOpen source minimal stack for the ch32 line of WCH processors, including the ch32v003, a 10¢ 48 MHz RISC-V Microcontroller - as well as many other chips within the ch32v/x line.
About cnlohr/ch32v003fun
An open source development environment providing tooling, headers, and examples for the CH32V003 and many other WCH RISC-V microcontrollers. It offers a minimal, HAL-free approach that works on Windows (Native), Linux, and WSL. The CH32V003 is a 10-cent RISC-V EC core running at 48MHz with 16kB flash and 2kB RAM. The project includes a lightweight blinky example of only 500 bytes, fast printf debugging over the programming interface at ~36kBytes/s, support for multiple programmers (minichlink, STM32F042, ESP32S2, etc.), gdbserver debugging, and a bootloader. It also supports a wide range of WCH chips including the ch32x035, ch32v002–ch32v307, and ch5xx series.
Key Features
Pros & Cons
- Free and open source with no licensing costs
- Very small code footprint compared to official HAL
- Fast and efficient printf debugging over the programming interface
- Works across major operating systems without vendor lock-in
- Supports a large number of WCH microcontroller families
- Fewer example projects compared to the official WCH EVT/HAL
- Requires knowledge of RISC-V architecture and direct register programming
- Limited community support compared to more mainstream platforms like Arduino