Skip to content

Instantly share code, notes, and snippets.

@smittytone
Last active March 26, 2022 18:30
Show Gist options
  • Save smittytone/81bac3ab9a78e21bd46ed20b0ba17d72 to your computer and use it in GitHub Desktop.
Save smittytone/81bac3ab9a78e21bd46ed20b0ba17d72 to your computer and use it in GitHub Desktop.
Raspberry Pi Pico Visual Studio Code debugger launch.json file
{
"version": "0.2.0",
"configurations": [
{ "name": "Pico Debug",
"device": "RP2040",
"gdbPath": "arm-none-eabi-gdb",
"cwd": "${workspaceRoot}",
"executable": "${command:cmake.launchTargetPath}",
"request": "launch",
"type": "cortex-debug",
"servertype": "openocd",
"configFiles": [
"/interface/picoprobe.cfg",
"/target/rp2040.cfg"
],
"svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
"runToMain": true,
"postRestartCommands": [
"break main",
"continue"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment