1
0

Added RPi debug probe to launch config

This commit is contained in:
JackCarterSmith 2023-07-15 14:31:06 +02:00
parent 2427937081
commit 8a34c3c3c8
Signed by: JackCarterSmith
GPG Key ID: 832E52F4E23F8F24

33
.vscode/launch.json vendored
View File

@ -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)",