54 lines
1.5 KiB
JSON
54 lines
1.5 KiB
JSON
|
{
|
||
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||
|
// for the documentation about the tasks.json format
|
||
|
"version": "2.0.0",
|
||
|
"tasks": [
|
||
|
{
|
||
|
"label": "config",
|
||
|
"type": "shell",
|
||
|
"command": "RTT_ROOT=../../.. scons --pyconfig",
|
||
|
"problemMatcher": []
|
||
|
},
|
||
|
{
|
||
|
"label": "build",
|
||
|
"type": "shell",
|
||
|
"command": "scons",
|
||
|
"problemMatcher": [],
|
||
|
"group": {
|
||
|
"kind": "build",
|
||
|
"isDefault": true
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"label": "clean",
|
||
|
"type": "shell",
|
||
|
"command": "scons -c",
|
||
|
"problemMatcher": []
|
||
|
},
|
||
|
{
|
||
|
"label": "flash",
|
||
|
"type": "shell",
|
||
|
"command": "nrfjprog -f nrf52 --program rt-thread.hex --sectorerase",
|
||
|
"group": "build",
|
||
|
"problemMatcher": []
|
||
|
},
|
||
|
{
|
||
|
"label": "flash_softdevice",
|
||
|
"type": "shell",
|
||
|
"command": "nrfjprog -f nrf52 --program packages/nrf5x_sdk-latest/components/softdevice/s132/hex/s132_nrf52_7.0.1_softdevice.hex --sectorerase",
|
||
|
"problemMatcher": []
|
||
|
},
|
||
|
{
|
||
|
"label": "erase",
|
||
|
"type": "shell",
|
||
|
"command": "nrfjprog -f nrf52 --eraseall",
|
||
|
"problemMatcher": []
|
||
|
},
|
||
|
{
|
||
|
"label": "reset",
|
||
|
"type": "shell",
|
||
|
"command": "nrfjprog -f nrf52 --reset",
|
||
|
"problemMatcher": []
|
||
|
}
|
||
|
]
|
||
|
}
|