tasks.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "version": "2.0.0",
  3. "tasks": [
  4. {
  5. "label": "Compile Project",
  6. "type": "process",
  7. "isBuildCommand": true,
  8. "command": "${userHome}/.pico-sdk/ninja/v1.12.1/ninja",
  9. "args": ["-C", "${workspaceFolder}/build"],
  10. "group": "build",
  11. "presentation": {
  12. "reveal": "always",
  13. "panel": "dedicated"
  14. },
  15. "problemMatcher": "$gcc",
  16. "windows": {
  17. "command": "${env:USERPROFILE}/.pico-sdk/ninja/v1.12.1/ninja.exe"
  18. }
  19. },
  20. {
  21. "label": "Run Project",
  22. "type": "process",
  23. "command": "${env:HOME}/.pico-sdk/picotool/2.0.0/picotool/picotool",
  24. "args": [
  25. "load",
  26. "${command:raspberry-pi-pico.launchTargetPath}",
  27. "-fx"
  28. ],
  29. "presentation": {
  30. "reveal": "always",
  31. "panel": "dedicated"
  32. },
  33. "problemMatcher": [],
  34. "windows": {
  35. "command": "${env:USERPROFILE}/.pico-sdk/picotool/2.0.0/picotool/picotool.exe"
  36. }
  37. },
  38. {
  39. "label": "Flash",
  40. "type": "process",
  41. "command": "${userHome}/.pico-sdk/openocd/0.12.0+dev/openocd.exe",
  42. "args": [
  43. "-s",
  44. "${userHome}/.pico-sdk/openocd/0.12.0+dev/scripts",
  45. "-f",
  46. "interface/cmsis-dap.cfg",
  47. "-f",
  48. "target/${command:raspberry-pi-pico.getTarget}.cfg",
  49. "-c",
  50. "adapter speed 5000; program \"${command:raspberry-pi-pico.launchTargetPath}\" verify reset exit"
  51. ],
  52. "problemMatcher": [],
  53. "windows": {
  54. "command": "${env:USERPROFILE}/.pico-sdk/openocd/0.12.0+dev/openocd.exe",
  55. }
  56. }
  57. ]
  58. }