ch32fun is a minimal open-source development environment for WCH RISC-V microcontrollers such as the CH32V003 and related CH32 and CH5xx chips. It intentionally avoids large hardware abstraction layers so developers can work closer to the device registers and technical reference manual. The project supplies lightweight headers, startup code, build tools, and many hardware examples. Its minichlink programmer supports several debug adapters and can provide GDB-style debugging and single-wire printf output. Applications can use simple GPIO, timing, ADC, interrupt, and UART helpers without adopting a full vendor SDK. The environment works on native Windows, Linux, and WSL with RISC-V GCC toolchains. Its small runtime is particularly suited to low-cost microcontrollers with very limited flash and RAM.
Features
- Minimal WCH RISC-V development stack
- Direct hardware access without a large HAL
- Cross-platform Windows, Linux, and WSL builds
- Multiple programmer and debugger backends
- GPIO, ADC, timing, interrupt, and UART helpers
- Extensive microcontroller examples and bootloader support