32 lines
1.0 KiB
JSON
32 lines
1.0 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Pico Debug",
|
|
"cwd": "${workspaceRoot}",
|
|
"executable": "${command:cmake.launchTargetPath}",
|
|
"request": "launch",
|
|
"type": "cortex-debug",
|
|
"servertype": "openocd",
|
|
// This may need to be "arm-none-eabi-gdb" for some previous builds
|
|
"gdbPath" : "gdb",
|
|
"device": "RP2040",
|
|
"configFiles": [
|
|
"interface/cmsis-dap.cfg",
|
|
"target/rp2040-core0.cfg"
|
|
],
|
|
"openOCDLaunchCommands": [
|
|
"transport select swd",
|
|
"adapter speed 4000"
|
|
],
|
|
"svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
|
|
"runToEntryPoint": "main",
|
|
// Work around for stopping at main on restart
|
|
"postRestartCommands": [
|
|
"monitor reset init", // orig: "break main",
|
|
"continue"
|
|
]
|
|
}
|
|
]
|
|
}
|