From c17830ee1cb5d18a4e5edf1425aa2a1e1f8712a1 Mon Sep 17 00:00:00 2001 From: roy01 Date: Fri, 17 Apr 2026 15:56:25 +0800 Subject: [PATCH] feat: add flash-only configurations for Ubuntu and Windows in launch.json --- .vscode/launch.json | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index ad0fc36..484aa31 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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\"" + }, ] } \ No newline at end of file