HAL(Hardware Abstraction Layer) for the WCH CH32 series of microcontrollers written in Zig.
- Minimizing the size of the firmware output file. After each change, the size of all examples is checked, and if it increases, the cause is investigated and resolved.
- Providing seamless IDE autocompletion support is a top priority. Whatever you interact with, autocompletion should work seamlessly.
See GETTING_STARTED.md for more details.
If you want to learn more about how everything works, I recommend checking out the repository with basic examples that are based on the use of registers without abstractions: ch32v003_basic_zig
See USEFUL_NOTES.md
cd examples/blink_minimal
zig build
zig build minichlink -- -w zig-out/firmware/blink_minimal_ch32v003.bin flash -b
Minichlink is a open-source flasher for WCH chips. It is built with Zig and can be compiled using the following command:
zig build minichlink
Output will be in zig-out/bin/minichlink
.