tasks.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. "label": "config",
  8. "type": "shell",
  9. "command": "RTT_ROOT=../../.. scons --pyconfig",
  10. "problemMatcher": []
  11. },
  12. {
  13. "label": "build",
  14. "type": "shell",
  15. "command": "scons",
  16. "problemMatcher": [],
  17. "group": {
  18. "kind": "build",
  19. "isDefault": true
  20. }
  21. },
  22. {
  23. "label": "clean",
  24. "type": "shell",
  25. "command": "scons -c",
  26. "problemMatcher": []
  27. },
  28. {
  29. "label": "flash",
  30. "type": "shell",
  31. "command": "nrfjprog -f nrf52 --program rt-thread.hex --sectorerase",
  32. "group": "build",
  33. "problemMatcher": []
  34. },
  35. {
  36. "label": "flash_softdevice",
  37. "type": "shell",
  38. "command": "nrfjprog -f nrf52 --program packages/nrf5x_sdk-latest/components/softdevice/s132/hex/s132_nrf52_7.0.1_softdevice.hex --sectorerase",
  39. "problemMatcher": []
  40. },
  41. {
  42. "label": "erase",
  43. "type": "shell",
  44. "command": "nrfjprog -f nrf52 --eraseall",
  45. "problemMatcher": []
  46. },
  47. {
  48. "label": "reset",
  49. "type": "shell",
  50. "command": "nrfjprog -f nrf52 --reset",
  51. "problemMatcher": []
  52. }
  53. ]
  54. }