18 lines
567 B
JSON

{
"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"
}
]
}