Skip to content

Instantly share code, notes, and snippets.

@DTibbs
Forked from davidtibbetts/launch.json
Created May 25, 2018 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DTibbs/67b0e9d70bbfbafcde1e5d6ea2ef7f64 to your computer and use it in GitHub Desktop.
Save DTibbs/67b0e9d70bbfbafcde1e5d6ea2ef7f64 to your computer and use it in GitHub Desktop.
Launch JSON for VSCode w/ OpenOCD and GDB debugging.
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "cppdbg",
"request": "launch",
"targetArchitecture": "arm",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/target/thumbv7m-none-eabi/debug/app",
"stopAtEntry": false,
"windows": {
"MIMode": "gdb",
"miDebuggerPath": "arm-none-eabi-gdb.exe",
"customLaunchSetupCommands": [
{
"text": "cd ${workspaceRoot}"
},
{
"text": "target remote localhost:3333",
"description": "connect to remote target",
"ignoreFailures": false
},
{
"text": "monitor reset halt",
"description": "halt",
"ignoreFailures": false
},
{
"text": "file target/thumbv7m-none-eabi/debug/app",
"description": "load symbols",
"ignoreFailures": false
},
{
"text": "load",
"description": "load to remote MCU",
"ignoreFailures": false
}
]
},
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment