42 lines
1.4 KiB
JSON
42 lines
1.4 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Pico Debug (OpenOCD)",
|
|
"cwd": "${workspaceRoot}",
|
|
"executable": "${command:cmake.launchTargetPath}",
|
|
"request": "launch",
|
|
"type": "cortex-debug",
|
|
"servertype": "openocd",
|
|
// This may need to be arm-none-eabi-gdb depending on your system
|
|
"gdbPath" : "${env:PICO_GDB}",
|
|
"device": "RP2040",
|
|
"configFiles": [
|
|
"interface/raspberrypi-swd.cfg",
|
|
"target/rp2040.cfg"
|
|
],
|
|
"svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
|
|
"runToMain": true,
|
|
// Work around for stopping at main on restart
|
|
"postRestartCommands": [
|
|
"break main",
|
|
"continue"
|
|
]
|
|
},
|
|
{
|
|
"name": "Pico Debug (J-Link)",
|
|
"cwd": "${workspaceRoot}",
|
|
"executable": "${command:cmake.launchTargetPath}",
|
|
"request": "launch",
|
|
"type": "cortex-debug",
|
|
"serverpath": "C:/Program Files/SEGGER/JLink_V782d/JLinkGDBServerCL.exe",
|
|
"servertype": "jlink",
|
|
"gdbPath": "${env:PICO_GDB}",
|
|
"device": "RP2040_M0_0",
|
|
"interface": "swd",
|
|
"svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
|
|
"runToEntryPoint": "main"
|
|
}
|
|
]
|
|
}
|