From e1c646b19cdeece3756a6891f6b3a68cf53e1377 Mon Sep 17 00:00:00 2001 From: sergeyyarkov Date: Tue, 15 Sep 2026 17:50:50 +0300 Subject: [PATCH] fix bin path & readme --- .vscode/launch.json | 4 ++-- README.md | 6 ++++-- src/main.c | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 78a4865..2e6dd86 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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" } ] -} \ No newline at end of file +} diff --git a/README.md b/README.md index 463944e..410af91 100644 --- a/README.md +++ b/README.md @@ -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 -``` \ No newline at end of file +``` + +For debugging, make sure you have the `libjaylink0` package installed. diff --git a/src/main.c b/src/main.c index 041ca78..39216e1 100644 --- a/src/main.c +++ b/src/main.c @@ -21,4 +21,4 @@ int main(void) { GPIO_SetBits(GPIOD, GPIO_Pin_4); Delay_Ms(500); } -} +} \ No newline at end of file