mirror of
https://github.com/sergeyyarkov/ch32v00x-template-mk.git
synced 2026-10-11 10:19:07 +03:00
fix bin path & readme
This commit is contained in:
parent
b6b3ae533e
commit
e1c646b19c
4
.vscode/launch.json
vendored
4
.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",
|
||||||
@ -15,4 +15,4 @@
|
|||||||
"svdFile": "${workspaceFolder}/platform/ch32v00x/CH32V003xx.svd"
|
"svdFile": "${workspaceFolder}/platform/ch32v00x/CH32V003xx.svd"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
|
||||||
@ -28,4 +28,6 @@ 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.
|
||||||
|
|||||||
@ -21,4 +21,4 @@ int main(void) {
|
|||||||
GPIO_SetBits(GPIOD, GPIO_Pin_4);
|
GPIO_SetBits(GPIOD, GPIO_Pin_4);
|
||||||
Delay_Ms(500);
|
Delay_Ms(500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user