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

2
.vscode/launch.json vendored
View File

@ -2,7 +2,7 @@
"configurations": [ "configurations": [
{ {
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"executable": "./build/firmware.elf", "executable": "./build/ch32/firmware.elf",
"name": "Debug CH32V (WCH-Link)", "name": "Debug CH32V (WCH-Link)",
"request": "launch", "request": "launch",
"type": "cortex-debug", "type": "cortex-debug",

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. Project VS Code template for CH32V00x microcontrollers. It uses official WCH's SDK with `riscv32-wch-elf-gcc` compiler.
## Instructions to build ## Instructions to build
1. Download MRS toolchain from mounriver.com: [link](https://mounriver.com/download) 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 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 export PATH=/opt/wch/MRS_Toolchain/RISC-V\ Embedded\ GCC15/bin:$PATH
``` ```
3. Download SDK from wch.cn for CH32V003 for example: 3. Download SDK from wch.cn for CH32V003 for example:
```bash ```bash
@ -29,3 +29,5 @@ cargo install --git https://github.com/ch32-rs/wlink
```bash ```bash
make && make prog_flash make && make prog_flash
``` ```
For debugging, make sure you have the `libjaylink0` package installed.