68 lines
2.6 KiB
JSON
68 lines
2.6 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Pico Debug (Cortex-Debug)",
|
|
"cwd": "${workspaceRoot}",
|
|
"executable": "${command:raspberry-pi-pico.launchTargetPath}",
|
|
"request": "launch",
|
|
"type": "cortex-debug",
|
|
"servertype": "openocd",
|
|
"serverpath": "${userHome}/.pico-sdk/openocd/v0.12.0-2/bin/openocd.exe",
|
|
"gdbPath": "gdb",
|
|
"device": "RP2040",
|
|
"configFiles": [
|
|
"interface/cmsis-dap.cfg",
|
|
"target/rp2040.cfg"
|
|
],
|
|
"svdFile": "${userHome}/.pico-sdk/sdk/1.5.1/src/rp2040/hardware_regs/rp2040.svd",
|
|
"runToEntryPoint": "main",
|
|
// Give restart the same functionality as runToEntryPoint - main
|
|
"postRestartCommands": [
|
|
"break main",
|
|
"continue"
|
|
],
|
|
"openOCDLaunchCommands": [
|
|
"adapter speed 5000"
|
|
]
|
|
},
|
|
{
|
|
"name": "Pico Debug (Cortex-Debug with external OpenOCD)",
|
|
"cwd": "${workspaceRoot}",
|
|
"executable": "${command:raspberry-pi-pico.launchTargetPath}",
|
|
"request": "launch",
|
|
"type": "cortex-debug",
|
|
"servertype": "external",
|
|
"gdbTarget": "localhost:3333",
|
|
"gdbPath": "gdb",
|
|
"device": "RP2040",
|
|
"svdFile": "${userHome}/.pico-sdk/sdk/1.5.1/src/rp2040/hardware_regs/rp2040.svd",
|
|
"runToEntryPoint": "main",
|
|
// Give restart the same functionality as runToEntryPoint - main
|
|
"postRestartCommands": [
|
|
"break main",
|
|
"continue"
|
|
]
|
|
},
|
|
{
|
|
"name": "Pico Debug (C++ Debugger)",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"cwd": "${workspaceRoot}",
|
|
"program": "${command:raspberry-pi-pico.launchTargetPath}",
|
|
"MIMode": "gdb",
|
|
"miDebuggerPath": "gdb",
|
|
"miDebuggerServerAddress": "localhost:3333",
|
|
"debugServerPath": "${userHome}/.pico-sdk/openocd/v0.12.0-2/bin/openocd.exe",
|
|
"debugServerArgs": "-f interface/cmsis-dap.cfg -f target/rp2040.cfg -c \"adapter speed 5000\"",
|
|
"serverStarted": "Listening on port .* for gdb connections",
|
|
"filterStderr": true,
|
|
"hardwareBreakpoints": {
|
|
"require": true,
|
|
"limit": 4
|
|
},
|
|
"preLaunchTask": "Flash",
|
|
"svdPath": "${userHome}/.pico-sdk/sdk/1.5.1/src/rp2040/hardware_regs/rp2040.svd"
|
|
},
|
|
]
|
|
}
|