---
# System prepended metadata

title: CHM32v003

---

# CH32v003 Riot Porting

- [ ] Setup udev rules
- [ ] Make openocd work ( flash, erase etc) using compiled binaried from windows
- [ ] Make

Hardware guide
https://embeetle.com/#supported-hardware/wch/boards/ch32v003f4p6-evt-r0-1v1

Programming Guide
https://pallavaggarwal.in/2023/10/01/ch32v003-low-cost-mcu-programming/

Debugger
https://github.com/cnlohr/ch32v003fun/wiki/Installation

Toolchain/openocd 
https://github.com/cjacker/opensource-toolchain-ch32v

Openocd hack repo -> https://github.com/karlp/openocd-hacks/

https://nc-pin.com/index.php/2022/04/25/openocd-for-ch32v-series/

Rust 
https://noxim.xyz/blog/rust-ch32v003/ecosystem/

Installation

OpenOCD

```
./bootstrap
```

```
./configure CFLAGS="-Wno-error" --enable-wlink
```

```
sudo make install
```

To Uninstall

```
sudo make uninstall
```

https://www.digitalocean.com/community/tutorials/how-to-view-and-update-the-linux-path-environment-variable


Debugger Mode-switch
https://github.com/cjacker/wchlinke-mode-switch