Add VSCode ST-link debug config (#567)

This commit is contained in:
Martin Hub 2021-08-14 21:24:26 +02:00 committed by GitHub
parent 6192775161
commit dec4bab334
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
.vscode/launch.json vendored
View File

@ -40,7 +40,25 @@
"break main", "break main",
"continue" "continue"
] ]
},
{
"cwd": "${workspaceRoot}",
// TODO: find better way to get latest build filename
"executable": "./build/src/pinetime-app-1.3.0.out",
"name": "Debug OpenOCD ST-LINK pinetime-app-1.3.0.out",
"request": "launch",
"type": "cortex-debug",
"showDevDebugOutput": false,
"servertype": "openocd",
"runToMain": true,
// Only use armToolchainPath if your arm-none-eabi-gdb is not in your path (some GCC packages does not contain arm-none-eabi-gdb)
"armToolchainPath": "${workspaceRoot}/../gcc-arm-none-eabi-9-2020-q2-update/bin",
"svdFile": "${workspaceRoot}/nrf52.svd",
"configFiles": [
"interface/stlink.cfg",
"target/nrf52.cfg"
],
} }
] ]
} }