Skip to content

Instantly share code, notes, and snippets.

@mjohngreene
Created November 19, 2019 00:50
Show Gist options
  • Save mjohngreene/0fa23b68d964244548ccad3bcdac604f to your computer and use it in GitHub Desktop.
Save mjohngreene/0fa23b68d964244548ccad3bcdac604f to your computer and use it in GitHub Desktop.
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "C++ Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/BUILD/MTS_MDOT_F411RE/GCC_ARM-DEBUG/${workspaceRootFolderName}.elf",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceRoot}",
"environment": [],
"launchCompleteCommand": "exec-continue",
"externalConsole": false,
"debugServerPath":"openocd",
"debugServerArgs": "-f /usr/share/openocd/scripts/board/st_nucleo_f4.cfg -f /usr/share/openocd/scripts/interface/stlink-v2-1.cfg -c init -c \"reset init\"",
"serverLaunchTimeout": 20000,
"filterStderr": true,
"filterStdout": false,
"serverStarted": "target halted due to debug-request, current mode: Thread",
"preLaunchTask": "mbed",
"setupCommands": [
{ "text": "-target-select remote localhost:3333", "description": "connect to target", "ignoreFailures": false },
{ "text": "-file-exec-and-symbols ${workspaceRoot}/BUILD/MTS_MDOT_F411RE/GCC_ARM-DEBUG/${workspaceRootFolderName}.elf", "description": "load file", "ignoreFailures": false},
{ "text": "-interpreter-exec console \"monitor endian little\"", "ignoreFailures": false },
{ "text": "-interpreter-exec console \"monitor reset\"", "ignoreFailures": false },
{ "text": "-interpreter-exec console \"monitor halt\"", "ignoreFailures": false },
{ "text": "-interpreter-exec console \"monitor arm semihosting enable\"", "ignoreFailures": false },
{ "text": "-target-download", "description": "flash target", "ignoreFailures": false }
],
"logging": {
"moduleLoad": true,
"trace": true,
"engineLogging": true,
"programOutput": true,
"exceptions": true
},
"linux": {
"MIMode": "gdb",
"MIDebuggerPath": "/usr/bin/arm-none-eabi-gdb"
},
"windows": {
"preLaunchTask": "mbed",
"MIMode": "gdb",
"MIDebuggerPath": "C:\\Program Files (x86)\\GNU Tools ARM Embedded\\6 2017-q2-update\\bin\\arm-none-eabi-gdb.exe",
"debugServerPath": "C:\\Program Files (x86)\\openocd\\0.10.0-11.1\\bin\\openocd.exe",
"debugServerArgs": "-f \"C:/Program Files (x86)/openocd/0.10.0-11.1/scripts/board/st_nucleo_f4.cfg\" -f \"C:/Program Files (x86)/openocd/0.10.0-11.1/scripts/interface/stlink-v2-1.cfg\" -c init -c \"reset init\"",
"setupCommands": [
{ "text": "-environment-cd ${workspaceRoot}\\BUILD\\MTS_MDOT_F411RE\\GCC_ARM-DEBUG\\" },
{ "text": "-target-select remote localhost:3333", "description": "connect to target", "ignoreFailures": false },
{ "text": "-file-exec-and-symbols ${workspaceRootFolderName}.elf", "description": "load file", "ignoreFailures": false},
{ "text": "-interpreter-exec console \"monitor endian little\"", "ignoreFailures": false },
{ "text": "-interpreter-exec console \"monitor reset\"", "ignoreFailures": false },
{ "text": "-interpreter-exec console \"monitor halt\"", "ignoreFailures": false },
{ "text": "-interpreter-exec console \"monitor arm semihosting enable\"", "ignoreFailures": false },
{ "text": "-target-download", "description": "flash target", "ignoreFailures": false }
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment