46 lines
1.5 KiB
JSON
46 lines
1.5 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "debug",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"windows": {
|
|
"miDebuggerPath": "c:/dev/gcc-arm-6.2/bin/arm-none-eabi-gdb.exe"
|
|
},
|
|
"linux": {
|
|
"miDebuggerPath": "/usr/bin/arm-none-eabi-gdb"
|
|
},
|
|
"targetArchitecture": "arm",
|
|
"program": "${workspaceRoot}/outdir/nucleo_f411re/zephyr.elf",
|
|
// A delay is needed to start the debug_server here as the OCD server
|
|
// is not fully started when gdb tries to connect
|
|
//"preLaunchTask": "debug_server",
|
|
"debugServerArgs": "",
|
|
"stopAtEntry": false,
|
|
"setupCommands": [
|
|
{ "text": "file ${workspaceRoot}/outdir/nucleo_f411re/zephyr.elf" },
|
|
{ "text": "set remotetimeout 30" },
|
|
{ "text": "target remote localhost:3333" },
|
|
{ "text": "monitor halt" },
|
|
{ "text": "monitor reset init" },
|
|
{ "text": "load" },
|
|
{ "text": "info target" }
|
|
],
|
|
"externalConsole": false,
|
|
"cwd": "${workspaceRoot}"
|
|
}
|
|
]
|
|
}
|
|
|
|
//"type": "gdb",
|
|
//"request": "attach",
|
|
|
|
|
|
|
|
// For OpenOCD which has to run when gdb tries to connect
|
|
// $ PATH_TO_OPENOCD/bin/openocd
|
|
// -f PATH_TO_OPENOCD/scripts/board/stm32f4discovery.cfg
|
|
// -f PATH_TO_OPENOCD/scripts/interface/stlink-v2-1.cfg
|
|
// -c init
|
|
// -c "reset init" |