55 lines
1.9 KiB
JSON
55 lines
1.9 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Launch",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/exe/blinky.axf",
|
|
"args": [],
|
|
"stopAtEntry": false,
|
|
"cwd": "${workspaceFolder}",
|
|
"environment": [],
|
|
"MIMode": "gdb",
|
|
"miDebuggerPath": "arm-none-eabi-gdb",
|
|
// "debugServerPath": "JLinkGDBServerCLExe",
|
|
// "debugServerArgs": "-select USB -device Cortex-R4 -endian little -if JTAG -speed 1000 -ir -LocalhostOnly",
|
|
// "serverStarted": "Listening on TCP/IP port 2331",
|
|
"logging": {
|
|
"engineLogging": true,
|
|
"exceptions": true,
|
|
"moduleLoad": true,
|
|
"programOutput": true,
|
|
"trace": true,
|
|
"traceResponse": true
|
|
},
|
|
"setupCommands": [
|
|
{
|
|
"description": "Connect to gdb server.",
|
|
"text": "target remote localhost:3333",
|
|
"ignoreFailures": false
|
|
},
|
|
{
|
|
"description": "Load executable into debugger.",
|
|
"text": "file ${workspaceFolder}/exe/blinky.axf",
|
|
"ignoreFailures": false
|
|
},
|
|
{
|
|
"description": "Load.",
|
|
"text": "load",
|
|
"ignoreFailures": false
|
|
},
|
|
{
|
|
"description": "Set stack pointer",
|
|
"text": "set $sp = g_pfnVectors[0]",
|
|
"ignoreFailures": false
|
|
},
|
|
{
|
|
"description": "Set program counter",
|
|
"text": "set $pc = g_pfnVectors[1]",
|
|
"ignoreFailures": false
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |