launch.json 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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. "openOCDLaunchCommands": ["adapter speed 5000"]
  30. }
  31. ]
  32. }