Skip to content

Instantly share code, notes, and snippets.

@tim37021
Created January 15, 2020 07:47
Show Gist options
  • Save tim37021/bfedd16b2f7bb882e5b2f983676f44d3 to your computer and use it in GitHub Desktop.
Save tim37021/bfedd16b2f7bb882e5b2f983676f44d3 to your computer and use it in GitHub Desktop.
BlackMagicProbe vscode launch.json example
{
"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