From 5f318389e3860ecf1a3efaf36815dd82cacbe847 Mon Sep 17 00:00:00 2001 From: sergeyyarkov Date: Tue, 15 Sep 2026 10:54:53 +0300 Subject: [PATCH] readme --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..32e159d --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +Project VS Code template for CH32V00x microcontrollers. It uses official WCH's SDK with `riscv32-wch-elf-gcc` compiler. + + +## Instructions to build + +1. Download MRS toolchain from mounriver.com: [link](https://mounriver.com/download) +2. Extract folder and add binaries to `PATH` env: + +```bash +sudo mkdir -p /opt/wch/MRS_Toolchain +sudo tar -xf MRS_Toolchain_Linux_X64_V240.tar.xz -C /opt/wch --strip-components=1 +export PATH=/opt/wch/MRS_Toolchain/RISC-V\ Embedded\ GCC15/bin:$PATH +``` +3. Download SDK from wch.cn for CH32V003 for example: + +```bash +wget -O CH32V003EVT.ZIP https://file.wch.cn/download/file?id=412 +sudo unzip CH32V003EVT.ZIP -d /opt/wch/CH32V003EVT +``` + +4. Install [wlink](https://github.com/ch32-rs/wlink) flasher tool: + +5. Build and flash: + +```bash +make && make prog_flash +``` \ No newline at end of file