Created
January 15, 2020 07:47
-
-
Save tim37021/bfedd16b2f7bb882e5b2f983676f44d3 to your computer and use it in GitHub Desktop.
BlackMagicProbe vscode launch.json example
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "(gdb) Launch", | |
"type": "cppdbg", | |
"request": "launch", | |
"program": "${workspaceFolder}/build/binary.elf", | |
"args": [], | |
"stopAtEntry": false, | |
"cwd": "${workspaceFolder}", | |
"environment": [], | |
"externalConsole": false, | |
"MIMode": "gdb", | |
"miDebuggerPath": "E:/arm-none-eabi/bin/arm-none-eabi-gdb.exe", | |
"setupCommands": [ | |
{ | |
"description": "Enable pretty-printing for gdb", | |
"text": "-enable-pretty-printing", | |
"ignoreFailures": true | |
} | |
], | |
"customLaunchSetupCommands": [ | |
{ | |
"text": "cd ${workspaceRoot}" | |
}, | |
{ | |
"text": "file build/binary.elf", | |
"description": "load symbol", | |
"ignoreFailures": false | |
}, | |
{ | |
"text": "target extended-remote \\\\.\\COM21", | |
"description": "connect to gdb server", | |
"ignoreFailures": false | |
}, | |
{ | |
"text": "monitor swdp_scan", | |
"description": "scan swd", | |
"ignoreFailures": false | |
}, | |
{ | |
"text": "attach 1", | |
"description": "attach to mcu", | |
"ignoreFailures": false | |
}, | |
], | |
"targetArchitecture": "arm" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment