Skip to content

Instantly share code, notes, and snippets.

@thopiekar
Last active March 4, 2020 12:45
Show Gist options
  • Save thopiekar/9a1446affe9313c047a30b1794ca5692 to your computer and use it in GitHub Desktop.
Save thopiekar/9a1446affe9313c047a30b1794ca5692 to your computer and use it in GitHub Desktop.
Nucleo F411RE - nanoFramework - VisualStudioCode debugging
{
"version": "0.2.0",
"configurations": [
{
"name": "Nucleo F411RE nanoBooter",
"type": "cppdbg",
"request": "launch",
"miDebuggerPath": "C:/nf-toolchain/gcc-arm-none-eabi/9-2019-q4-major/win32/bin/arm-none-eabi-gdb.exe",
"targetArchitecture": "ARM",
"program": "C:/nanoFramework/nf-interpreter/build/nanoBooter.elf",
"setupCommands": [
{"description":"" , "text" : "target extended-remote localhost:3333"},
{"description":"" , "text" : "monitor reset_config none separate"},
{"description":"" , "text" : "monitor reset halt"},
{"description":"" , "text" : "monitor flash write_image erase \"c:/nanoFramework/nf-interpreter/build/nanoBooter.hex\" "},
{"description":"" , "text" : "file \"c:/nanoFramework/nf-interpreter/build/nanoCLR.elf\" "},
{"description":"" , "text" : "monitor reset halt"}
],
"customLaunchSetupCommands": [
{"description":"" , "text" : "monitor reset_config none separate"},
{"description":"" , "text" : "monitor reset halt"}
],
"launchCompleteCommand": "exec-continue",
"debugServerPath": "c:/nf-toolchain/OpenOCD/0.10.0/bin/openocd.exe",
"debugServerArgs": "-s \"c:/nf-toolchain/OpenOCD/0.10.0/scripts/\" -f \"board/st_nucleo_f4.cfg\" ",
"serverStarted": "Info\\ :\\ [\\w\\d\\.]*:\\ hardware",
"filterStderr": true,
"externalConsole": true,
"cwd": "${cwd}",
// Enable the following to debug GDB
"logging": {
"engineLogging": true,
"traceResponse": true
},
},
{
"name": "Nucleo F411RE nanoCLR",
"type": "cppdbg",
"request": "launch",
"miDebuggerPath": "C:/nf-toolchain/gcc-arm-none-eabi/9-2019-q4-major/win32/bin/arm-none-eabi-gdb.exe",
"targetArchitecture": "ARM",
"program": "C:/nanoFramework/nf-interpreter/build/nanoCLR.elf",
"setupCommands": [
{"description":"" , "text" : "target extended-remote localhost:3333"},
{"description":"" , "text" : "monitor reset_config none separate"},
{"description":"" , "text" : "monitor reset halt"},
{"description":"" , "text" : "monitor flash write_image erase \"c:/nanoFramework/nf-interpreter/build/nanoCLR.hex\" "},
{"description":"" , "text" : "file \"c:/nanoFramework/nf-interpreter/build/nanoCLR.elf\" "},
{"description":"" , "text" : "monitor reset halt"}
],
"customLaunchSetupCommands": [
{"description":"" , "text" : "monitor reset_config none separate"},
{"description":"" , "text" : "monitor reset halt"}
],
"launchCompleteCommand": "exec-continue",
"debugServerPath": "c:/nf-toolchain/OpenOCD/0.10.0/bin/openocd.exe",
"debugServerArgs": "-s \"c:/nf-toolchain/OpenOCD/0.10.0/scripts/\" -f \"board/st_nucleo_f4.cfg\" ",
"serverStarted": "Info\\ :\\ [\\w\\d\\.]*:\\ hardware",
"filterStderr": true,
"externalConsole": true,
"cwd": "${cwd}"
// Enable the following to debug GDB
"logging": {
"engineLogging": true,
"traceResponse": true
},
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment