added tasks.json & launch.json

This commit is contained in:
Sergey Yarkov 2026-09-15 08:42:46 +03:00
parent 9a319bf9a5
commit bccc4d4195
3 changed files with 9280 additions and 0 deletions

18
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,18 @@
{
"configurations": [
{
"cwd": "${workspaceRoot}",
"executable": "./build/firmware.elf",
"name": "Debug CH32V (WCH-Link)",
"request": "launch",
"type": "cortex-debug",
"servertype": "openocd",
"serverpath": "/opt/wch/MRS_Toolchain/OpenOCD/bin/openocd",
"gdbPath": "riscv32-wch-elf-gdb",
"configFiles": ["/opt/wch/MRS_Toolchain/OpenOCD/bin/wch-riscv.cfg"],
"runToEntryPoint": "main",
"showDevDebugOutput": "none",
"svdFile": "${workspaceFolder}/platform/ch32v00x/CH32V003xx.svd"
}
]
}

27
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,27 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Clean and build (prod)",
"type": "shell",
"command": "make clean && make",
"problemMatcher": ["$gcc"],
"group": "build",
"presentation": {
"close": true,
"showReuseMessage": false
}
},
{
"label": "Clean and build (debug)",
"type": "shell",
"command": "make clean && make DEBUG=true",
"problemMatcher": ["$gcc"],
"group": "build",
"presentation": {
"close": true,
"showReuseMessage": false
}
},
]
}

File diff suppressed because it is too large Load Diff