Created
March 5, 2018 22:16
-
-
Save davidtibbetts/ae8a9ba29f99c1d812d3aeffe20fedee to your computer and use it in GitHub Desktop.
Launch JSON for VSCode w/ OpenOCD and GDB debugging.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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