tasks.json 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. // See https://go.microsoft.com/fwlink/?LinkId=733558
  3. // for the documentation about the tasks.json format
  4. "version": "2.0.0",
  5. "tasks": [
  6. {
  7. "type": "shell",
  8. "label": "build",
  9. "command": "make",
  10. "args": [],
  11. "problemMatcher": [
  12. "$gcc"
  13. ],
  14. "group": {
  15. "kind": "build",
  16. "isDefault": true
  17. }
  18. },
  19. {
  20. "type": "shell",
  21. "label": "pyocd download",
  22. "command": "pyocd",
  23. "args": [
  24. "load",
  25. "Project/Project.elf",
  26. "--target=PY32F030x8",
  27. "--frequency=1000000",
  28. "--pack=${env:PYSDEPATH}\\packs\\PY32F0xx_DFP.pack"
  29. ],
  30. "problemMatcher": [
  31. "$gcc"
  32. ],
  33. "group": "build",
  34. "dependsOn": "build"
  35. },
  36. {
  37. "type": "shell",
  38. "label": "openocd download",
  39. "command": "openocd",
  40. "args": [
  41. "-f",
  42. "interface/cmsis-dap.cfg",
  43. "-f",
  44. "target/py32f030.cfg",
  45. "-c",
  46. "program Project/Project.elf verify reset exit"
  47. ],
  48. "problemMatcher": [
  49. "$gcc"
  50. ],
  51. "group": "build",
  52. "dependsOn": "build"
  53. },
  54. {
  55. "type": "shell",
  56. "label": "jlink download",
  57. "command": "JLink.exe",
  58. "args": [
  59. "-device", "PY32F030x8",
  60. "-if", "SWD",
  61. "-speed", "4000",
  62. "-autoconnect", "1",
  63. "-CommanderScript", "commands.jlink"
  64. ],
  65. "problemMatcher": [
  66. "$gcc"
  67. ],
  68. "group": "build",
  69. "dependsOn": "build"
  70. }
  71. ]
  72. }