diff options
author | Martin Hub <hubmartin@users.noreply.github.com> | 2021-08-14 21:24:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-14 21:24:26 +0200 |
commit | dec4bab33496527e43850742a4b3dafd753eab83 (patch) | |
tree | b0fed5f94d753acf2582a41c8de7975ec85fb03d /.vscode/launch.json | |
parent | 61927751612a9dc8e53fe7882c1e576a90843bc4 (diff) |
Add VSCode ST-link debug config (#567)
Diffstat (limited to '.vscode/launch.json')
-rw-r--r-- | .vscode/launch.json | 20 |
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 +} |