summaryrefslogtreecommitdiff
path: root/.vscode
diff options
context:
space:
mode:
authorMartin Hub <hubmartin@users.noreply.github.com>2021-08-14 21:24:26 +0200
committerGitHub <noreply@github.com>2021-08-14 21:24:26 +0200
commitdec4bab33496527e43850742a4b3dafd753eab83 (patch)
treeb0fed5f94d753acf2582a41c8de7975ec85fb03d /.vscode
parent61927751612a9dc8e53fe7882c1e576a90843bc4 (diff)
Add VSCode ST-link debug config (#567)
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/launch.json20
1 files changed, 19 insertions, 1 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 7cf3acd1..3d9aa789 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -40,7 +40,25 @@
"break main",
"continue"
]
+ },
+ {
+ "cwd": "${workspaceRoot}",
+ // TODO: find better way to get latest build filename
+ "executable": "./build/src/pinetime-app-1.3.0.out",
+ "name": "Debug OpenOCD ST-LINK pinetime-app-1.3.0.out",
+ "request": "launch",
+ "type": "cortex-debug",
+ "showDevDebugOutput": false,
+ "servertype": "openocd",
+ "runToMain": true,
+ // Only use armToolchainPath if your arm-none-eabi-gdb is not in your path (some GCC packages does not contain arm-none-eabi-gdb)
+ "armToolchainPath": "${workspaceRoot}/../gcc-arm-none-eabi-9-2020-q2-update/bin",
+ "svdFile": "${workspaceRoot}/nrf52.svd",
+ "configFiles": [
+ "interface/stlink.cfg",
+ "target/nrf52.cfg"
+ ],
}
]
-} \ No newline at end of file
+}