diff --git a/.vscode/launch.json b/.vscode/launch.json index 4afb06d..be4534d 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -35,6 +35,39 @@ "svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd", // Work around for stopping at main on restart "runToEntryPoint": "main" + }, + { + "name": "Debug (RPi Debug Probe)", + "cwd": "${workspaceRoot}", + "executable": "${command:cmake.launchTargetPath}", + "request": "launch", + "type": "cortex-debug", + "servertype": "openocd", + "gdbPath" : "${env:PICO_GDB}", + "device": "RP2040", + "openOCDLaunchCommands": [ + "adapter speed 5000" + ], + "configFiles": ["interface/cmsis-dap.cfg","target/rp2040.cfg"], + "svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd", + // Work around for stopping at main on restart + "runToEntryPoint": "main" + }, + { + "name": "Start (RPi Debug Probe)", + "cwd": "${command:cmake.launchTargetDirectory}", + "executable": "${command:cmake.launchTargetPath}", + "request": "launch", + "type": "cortex-debug", + "servertype": "openocd", + "gdbPath" : "${env:PICO_GDB}", + "device": "RP2040", + "openOCDLaunchCommands": [ + "adapter speed 5000", + "program ${command:cmake.launchTargetFilename} verify reset exit" + ], + "configFiles": ["interface/cmsis-dap.cfg","target/rp2040.cfg"], + "svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd" }, { "name": "Debug (J-Link)",