tinygo-org / tinygo

Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
https://tinygo.org
Other
14.72k stars 858 forks source link

Support for the CH32V003 chip #4321

Open aykevl opened 2 days ago

aykevl commented 2 days ago

Work in progress.

To try, you need to make the lib/cmsis-svd/data/WCH-Community/ directory and download https://github.com/ch32-rs/ch32-rs/blob/main/svd/vendor/CH32V003xx.svd into that directory.

Also, you need to install probe-rs.

Not nearly finished. I'd like to get at least the timer working before marking this PR as ready.

aykevl commented 1 day ago

We might need to add a new way of generating register files: https://github.com/ch32-rs/ch32-rs/issues/21 Basically it seems like development on register files now happens here: https://github.com/ch32-rs/ch32-data, but unfortunately they store the files in a custom YAML based format (not in standard SVD format).