This commit is contained in:
2025-11-21 17:39:07 +01:00
parent ee55984c93
commit 55a1469b99
10 changed files with 295 additions and 86 deletions

52
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,52 @@
{
"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}\""
]
},
]
}