1
0

88 lines
2.7 KiB
JSON

{
"version": "0.2.0",
"configurations": [
{
"name": "Debug (BMP - OnChip-GDB)",
"cwd": "${workspaceRoot}",
"executable": "${command:cmake.launchTargetPath}",
"request": "launch",
"type": "cortex-debug",
"servertype": "bmp",
"device": "RP2040",
// Windows for COM1-COM9 -> COM4
// Windows for COM10-XXX -> \\.\COM20
// Unix -> /dev/ttyACM0
"BMPGDBSerialPort": "\\\\.\\COM20",
//"showDevDebugOutput": "raw",
"svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
// Work around for stopping at main on restart
"runToEntryPoint": "main"
},
{
"name": "Debug (PicoProbe - 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",
"openOCDLaunchCommands": [
"adapter speed 5000"
],
"configFiles": ["interface/picoprobe.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": "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)",
"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"
}
]
}