2021-07-25 23:12:34 +03:00
|
|
|
{
|
|
|
|
"version": "0.1.0",
|
|
|
|
"configurations": [
|
|
|
|
{
|
|
|
|
"name": "Debug - Openocd docker Remote",
|
|
|
|
"type":"cortex-debug",
|
2021-07-26 04:14:23 +03:00
|
|
|
"cortex-debug.armToolchainPath":"${env:ARM_NONE_EABI_TOOLCHAIN_PATH}/bin",
|
2021-07-25 23:12:34 +03:00
|
|
|
"cwd": "${workspaceRoot}",
|
|
|
|
"executable": "${command:cmake.launchTargetPath}",
|
|
|
|
"request": "launch",
|
|
|
|
"servertype": "external",
|
|
|
|
// This may need to be arm-none-eabi-gdb depending on your system
|
2021-07-26 04:14:23 +03:00
|
|
|
"gdbPath" : "${env:ARM_NONE_EABI_TOOLCHAIN_PATH}/bin/arm-none-eabi-gdb",
|
2021-07-25 23:12:34 +03:00
|
|
|
// Connect to an already running OpenOCD instance
|
|
|
|
"gdbTarget": "host.docker.internal:3333",
|
|
|
|
"svdFile": "${workspaceRoot}/nrf52.svd",
|
|
|
|
"runToMain": true,
|
|
|
|
// Work around for stopping at main on restart
|
|
|
|
"postRestartCommands": [
|
|
|
|
"break main",
|
|
|
|
"continue"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Debug - Openocd Local",
|
|
|
|
"type":"cortex-debug",
|
2021-07-26 04:14:23 +03:00
|
|
|
"cortex-debug.armToolchainPath":"${env:ARM_NONE_EABI_TOOLCHAIN_PATH}/bin",
|
2021-07-25 23:12:34 +03:00
|
|
|
"cwd": "${workspaceRoot}",
|
|
|
|
"executable": "${command:cmake.launchTargetPath}",
|
|
|
|
"request": "launch",
|
|
|
|
"servertype": "openocd",
|
|
|
|
// This may need to be arm-none-eabi-gdb depending on your system
|
2021-07-26 04:14:23 +03:00
|
|
|
"gdbPath" : "${env:ARM_NONE_EABI_TOOLCHAIN_PATH}/bin/arm-none-eabi-gdb",
|
2021-07-25 23:12:34 +03:00
|
|
|
// Connect to an already running OpenOCD instance
|
|
|
|
"gdbTarget": "localhost:3333",
|
|
|
|
"svdFile": "${workspaceRoot}/nrf52.svd",
|
|
|
|
"runToMain": true,
|
|
|
|
// Work around for stopping at main on restart
|
|
|
|
"postRestartCommands": [
|
|
|
|
"break main",
|
|
|
|
"continue"
|
|
|
|
]
|
2021-08-14 22:24:26 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"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)
|
2022-06-05 14:11:16 +03:00
|
|
|
"armToolchainPath": "${workspaceRoot}/../gcc-arm-11.2-2022.02-x86_64-arm-none-eabi/bin",
|
2021-08-14 22:24:26 +03:00
|
|
|
"svdFile": "${workspaceRoot}/nrf52.svd",
|
|
|
|
"configFiles": [
|
|
|
|
"interface/stlink.cfg",
|
|
|
|
"target/nrf52.cfg"
|
|
|
|
],
|
2021-07-25 23:12:34 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
]
|
2021-08-14 22:24:26 +03:00
|
|
|
}
|