50 lines
2.1 KiB
JSON
50 lines
2.1 KiB
JSON
{
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
// for the documentation about the tasks.json format
|
|
"version": "0.1.0",
|
|
"linux" : {
|
|
"command": "bash",
|
|
"suppressTaskName": true,
|
|
"isShellCommand": true,
|
|
"showOutput": "always",
|
|
"args": [
|
|
"-c"
|
|
],
|
|
"tasks": [
|
|
{
|
|
"taskName": "clean",
|
|
"suppressTaskName": true,
|
|
"args": ["source ${workspaceRoot}/include/zephyr-RC/zephyr-env.sh && make clean && echo DONE"]
|
|
},
|
|
{
|
|
"taskName": "build",
|
|
"suppressTaskName": true,
|
|
"isBuildCommand": true,
|
|
"args": ["source ${workspaceRoot}/include/zephyr-RC/zephyr-env.sh && make BOARD=nucleo_f411re && echo DONE"],
|
|
"problemMatcher": {
|
|
"owner": "cpp",
|
|
"fileLocation": ["relative", "${workspaceRoot}"],
|
|
"pattern": {
|
|
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
|
|
"file": 1,
|
|
"line": 2,
|
|
"column": 3,
|
|
"severity": 4,
|
|
"message": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"taskName": "deploy",
|
|
"suppressTaskName": true,
|
|
"args": ["source ${workspaceRoot}/include/zephyr-RC/zephyr-env.sh && make BOARD=nucleo_f411re flash"]
|
|
},
|
|
{
|
|
"taskName": "debug_server",
|
|
"suppressTaskName": true,
|
|
//"args": ["source ${workspaceRoot}/include/zephyr-RC/zephyr-env.sh && openocd -s /usr/local/share/openocd/scripts -f ${ZEPHYR_BASE}/boards/arm/nucleo_f411re/support/openocd.cfg -c 'init' -c 'targets' -c 'reset halt'"]
|
|
"args": ["source ${workspaceRoot}/include/zephyr-RC/zephyr-env.sh && openocd -s /usr/local/share/openocd/scripts -f ${ZEPHYR_BASE}/boards/arm/nucleo_f411re/support/openocd.cfg -c 'init' -c 'targets' -c 'reset init'"]
|
|
}
|
|
]
|
|
}
|
|
} |