build(vscode): 新增 DAPLink 专用烧录配置与任务

- openocd_daplink_gd32e23x.cfg:去掉 connect_assert_srst(该选项导致 DAPLink 下 Cortex-M23 识别失败)
This commit is contained in:
2026-10-02 23:07:55 +08:00
parent e81c902341
commit a40c2ec793
2 changed files with 48 additions and 0 deletions
+25
View File
@@ -70,6 +70,31 @@
"tooltip": "Flash MCU"
}
},
{
"label": "Flash MCU (DAPLink)",
"type": "process",
"command": "${env:GD32_OPENOCD_BIN}/openocd.exe",
"args": [
"-s", "${env:GD32_OPENOCD_SCRIPTS}",
"-f", "${workspaceFolder}/.vscode/openocd_daplink_gd32e23x.cfg",
"-c", "program Application.elf verify reset exit"
],
"group": "build",
"problemMatcher": [],
"options": {
"cwd": "${command:cmake.buildDirectory}/Application",
"environment": {
"OPENOCD_SCRIPTS": "${env:GD32_OPENOCD_SCRIPTS}"
}
},
"presentation": {
"clear": true
},
"icon": {
"id": "zap",
"tooltip": "Flash MCU via DAPLink (no connect_assert_srst)"
}
},
{
"label": "Reset MCU",
"type": "process",