{ "version": "0.2.0", "configurations": [ { "name": "Pico Debug (Cortex-Debug)", "cwd": "/usr/shere/openocd/scripts", "type": "cortex-debug", "executable": "${command:cmake.launchTargetPath}", "request": "launch", "servertype": "openocd", // "serverpath": "${userHome}/.pico-sdk/openocd/0.12.0+dev/openocd.exe", // "gdbPath": "${command:raspberry-pi-pico.getGDBPath}", "gdbPath": "/usr/bin/arm-none-eabi-gdb", "device": "RP2040", "configFiles": [ "interface/cmsis-dap.cfg", "target/rp2040.cfg" ], "svdFile": "${PICO_SDK_PATH}/src/rp2040/hardware_regs/RP2040.svd", "runToEntryPoint": "main", // Fix for no_flash binaries, where monitor reset halt doesn't do what is expected // Also works fine for flash binaries "overrideLaunchCommands": [ "monitor reset init", "load \"${command:cmake.launchTargetPath}\"" ], "openOCDLaunchCommands": [ "adapter speed 5000" ] }, { "name": "Pico Debug (Cortex-Debug with external OpenOCD)", "cwd": "${workspaceRoot}", "type": "cortex-debug", "executable": "${command:cmake.launchTargetPath}", "request": "launch", "servertype": "external", "gdbTarget": "localhost:3333", // "gdbPath": "${command:raspberry-pi-pico.getGDBPath}", "gdbPath": "/usr/bin/arm-none-eabi-gdb", "device": "RP2040", "svdFile": "${PICO_SDK_PATH}/src/rp2040/hardware_regs/RP2040.svd", "runToEntryPoint": "main", // Fix for no_flash binaries, where monitor reset halt doesn't do what is expected // Also works fine for flash binaries "overrideLaunchCommands": [ "monitor reset init", "load \"${command:cmake.launchTargetPath}\"" ] }, ] }