aboutsummaryrefslogtreecommitdiffstats
path: root/.vscode/launch.json
diff options
context:
space:
mode:
authorJF002 <JF002@users.noreply.github.com>2021-08-10 16:54:13 +0200
committerGitHub <noreply@github.com>2021-08-10 16:54:13 +0200
commit643077341b14a52819cbaf02abbd5fb56cdeb802 (patch)
treef8d130b7003ef38aad7f93f101eae9fa1d0ccea9 /.vscode/launch.json
parent9fb37550886f09f6510e99a5b452262c53c3987c (diff)
parent44889adda074af2a7a5fe61b19667521755dd24d (diff)
Merge pull request #505 from geekbozu/devcon
VSCode Devcontainer
Diffstat (limited to '.vscode/launch.json')
-rw-r--r--.vscode/launch.json46
1 files changed, 46 insertions, 0 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 00000000..7cf3acd1
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,46 @@
+ {
+ "version": "0.1.0",
+ "configurations": [
+ {
+ "name": "Debug - Openocd docker Remote",
+ "type":"cortex-debug",
+ "cortex-debug.armToolchainPath":"${env:ARM_NONE_EABI_TOOLCHAIN_PATH}/bin",
+ "cwd": "${workspaceRoot}",
+ "executable": "${command:cmake.launchTargetPath}",
+ "request": "launch",
+ "servertype": "external",
+ // This may need to be arm-none-eabi-gdb depending on your system
+ "gdbPath" : "${env:ARM_NONE_EABI_TOOLCHAIN_PATH}/bin/arm-none-eabi-gdb",
+ // Connect to an already running OpenOCD instance
+ "gdbTarget": "host.docker.internal:3333",
+ "svdFile": "${workspaceRoot}/nrf52.svd",
+ "runToMain": true,
+ // Work around for stopping at main on restart
+ "postRestartCommands": [
+ "break main",
+ "continue"
+ ]
+ },
+ {
+ "name": "Debug - Openocd Local",
+ "type":"cortex-debug",
+ "cortex-debug.armToolchainPath":"${env:ARM_NONE_EABI_TOOLCHAIN_PATH}/bin",
+ "cwd": "${workspaceRoot}",
+ "executable": "${command:cmake.launchTargetPath}",
+ "request": "launch",
+ "servertype": "openocd",
+ // This may need to be arm-none-eabi-gdb depending on your system
+ "gdbPath" : "${env:ARM_NONE_EABI_TOOLCHAIN_PATH}/bin/arm-none-eabi-gdb",
+ // Connect to an already running OpenOCD instance
+ "gdbTarget": "localhost:3333",
+ "svdFile": "${workspaceRoot}/nrf52.svd",
+ "runToMain": true,
+ // Work around for stopping at main on restart
+ "postRestartCommands": [
+ "break main",
+ "continue"
+ ]
+ }
+
+ ]
+} \ No newline at end of file