feat: add flash-only configurations for Ubuntu and Windows in launch.json

This commit is contained in:
roy01
2026-04-17 15:56:25 +08:00
parent d980b5196a
commit c17830ee1c
+15 -1
View File
@@ -16,6 +16,13 @@
"postDebugTask": "Stop OpenOCD (Ubuntu)",
"overrideGDBServerStartedRegex": "Listening on port",
},
{
"name": "Ubuntu Flash Only (No GDB)",
"type": "node-terminal",
"request": "launch",
"cwd": "${workspaceFolder}",
"command": "${workspaceFolder}/openocd/linux/2025.10/bin/openocd -s openocd/linux/2025.10/scripts -f openocd/linux/2025.10/scripts/target/pec930.cfg -c \"program ./build/Debug/pec930_motor.elf verify reset exit\""
},
{
"name": "Windows RISC-V Debug (OpenOCD)",
"type": "cortex-debug",
@@ -30,7 +37,14 @@
"preLaunchTask": "Start OpenOCD (Windows)",
"postDebugTask": "Stop OpenOCD (Windows)",
"overrideGDBServerStartedRegex": "Listening on port",
}
},
{
"name": "Windows Flash Only (No GDB)",
"type": "node-terminal",
"request": "launch",
"cwd": "${workspaceFolder}",
"command": "${workspaceFolder}\\openocd\\win\\2025.10\\bin\\openocd.exe -s openocd\\win\\2025.10\\scripts -f openocd\\win\\2025.10\\scripts\\target\\pec930.cfg -c \"program .\\build\\Debug\\pec930_motor.elf verify reset exit\""
},
]
}