launch.json 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. {
  5. "name": "Pico Debug",
  6. "cwd": "${workspaceRoot}",
  7. "executable": "${command:cmake.launchTargetPath}",
  8. "request": "launch",
  9. "type": "cortex-debug",
  10. "servertype": "openocd",
  11. // This may need to be "arm-none-eabi-gdb" for some previous builds
  12. "gdbPath" : "arm-none-eabi-gdb",
  13. //"gdbPath" : "gdb-multiarch",
  14. "device": "RP2040",
  15. "configFiles": [
  16. // This may need to be "interface/picoprobe.cfg" for some previous builds
  17. "interface/cmsis-dap.cfg",
  18. //"interface/picoprobe.cfg",
  19. "target/rp2040.cfg"
  20. ],
  21. "svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
  22. "runToEntryPoint": "main",
  23. // Work around for stopping at main on restart
  24. "postRestartCommands": [
  25. "break main",
  26. "continue"
  27. ],
  28. "searchDir": ["${workspaceFolder}/../openocd/tcl/"],
  29. }
  30. ]
  31. }