mirror of
https://github.com/sergeyyarkov/ch32v00x-template-mk.git
synced 2026-10-11 18:29:05 +03:00
fix bin path & readme
This commit is contained in:
parent
b6b3ae533e
commit
e1c646b19c
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@ -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",
|
||||||
|
|||||||
@ -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.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user