fix bin path & readme

This commit is contained in:
Sergey Yarkov 2026-09-15 17:50:50 +03:00
parent b6b3ae533e
commit e1c646b19c
3 changed files with 7 additions and 5 deletions

4
.vscode/launch.json vendored
View File

@ -2,7 +2,7 @@
"configurations": [
{
"cwd": "${workspaceRoot}",
"executable": "./build/firmware.elf",
"executable": "./build/ch32/firmware.elf",
"name": "Debug CH32V (WCH-Link)",
"request": "launch",
"type": "cortex-debug",
@ -15,4 +15,4 @@
"svdFile": "${workspaceFolder}/platform/ch32v00x/CH32V003xx.svd"
}
]
}
}

View File

@ -1,6 +1,5 @@
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)
@ -11,6 +10,7 @@ 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
@ -28,4 +28,6 @@ cargo install --git https://github.com/ch32-rs/wlink
```bash
make && make prog_flash
```
```
For debugging, make sure you have the `libjaylink0` package installed.

View File

@ -21,4 +21,4 @@ int main(void) {
GPIO_SetBits(GPIOD, GPIO_Pin_4);
Delay_Ms(500);
}
}
}