Skip to content

Instantly share code, notes, and snippets.

@davidtibbetts
Created March 5, 2018 22:16
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save davidtibbetts/ae8a9ba29f99c1d812d3aeffe20fedee to your computer and use it in GitHub Desktop.
Save davidtibbetts/ae8a9ba29f99c1d812d3aeffe20fedee 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