launch.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. {
  5. "name": "Pico Debug (Cortex-Debug)",
  6. "cwd": "${workspaceFolder}",
  7. "executable": "${command:cmake.launchTargetPath}",
  8. "request": "launch",
  9. "type": "cortex-debug",
  10. "servertype": "openocd",
  11. "gdbPath": "arm-none-eabi-gdb",
  12. "device": "RP2040",
  13. "configFiles": [
  14. "interface/cmsis-dap.cfg",
  15. "target/rp2040.cfg"
  16. ],
  17. "svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
  18. "runToEntryPoint": "main",
  19. "openOCDLaunchCommands": [
  20. "adapter speed 1000"
  21. ]
  22. },
  23. {
  24. "name": "Pico Debug (Cortex-Debug with external OpenOCD)",
  25. "cwd": "${workspaceFolder}",
  26. "executable": "${command:cmake.launchTargetPath}",
  27. "request": "launch",
  28. "type": "cortex-debug",
  29. "servertype": "external",
  30. "gdbTarget": "localhost:3333",
  31. "gdbPath": "arm-none-eabi-gdb",
  32. "device": "RP2040",
  33. "svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
  34. "runToEntryPoint": "main"
  35. },
  36. {
  37. "name": "Pico Debug (C++ Debugger)",
  38. "type": "cppdbg",
  39. "request": "launch",
  40. "cwd": "${workspaceFolder}",
  41. "program": "${command:cmake.launchTargetPath}",
  42. "MIMode": "gdb",
  43. "miDebuggerPath": "arm-none-eabi-gdb",
  44. "miDebuggerServerAddress": "localhost:3333",
  45. "debugServerPath": "openocd",
  46. "debugServerArgs": "-f interface/cmsis-dap.cfg -f target/rp2040.cfg -c \"adapter speed 1000\"",
  47. "serverStarted": "Listening on port .* for gdb connections",
  48. "filterStderr": true,
  49. "stopAtEntry": true,
  50. "hardwareBreakpoints": {
  51. "require": true,
  52. "limit": 4
  53. },
  54. "preLaunchTask": "Flash",
  55. "svdPath": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd"
  56. }
  57. ]
  58. }