Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "Build Project (Debug)",
"command": "make debug REV=${input:board_revision}",
"options": {
"cwd": "${workspaceFolder}/firmware"
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": {
"base": "$gcc",
"fileLocation": ["relative", "${workspaceFolder}/firmware"]
}
},
{
"type": "shell",
"label": "Build Project (Release)",
"command": "make release REV=${input:board_revision}",
"options": {
"cwd": "${workspaceFolder}/firmware"
},
"group": "build",
"problemMatcher": {
"base": "$gcc",
"fileLocation": ["relative", "${workspaceFolder}/firmware"]
}
},
{
"type": "shell",
"label": "Clean and Build Project (Debug)",
"command": "make clean; make debug REV=${input:board_revision}",
"options": {
"cwd": "${workspaceFolder}/firmware"
},
"group": "build",
"problemMatcher": {
"base": "$gcc",
"fileLocation": ["relative", "${workspaceFolder}/firmware"]
}
},
{
"type": "shell",
"label": "Clean and Build Project (Release)",
"command": "make clean; make release REV=${input:board_revision}",
"options": {
"cwd": "${workspaceFolder}/firmware"
},
"group": "build",
"problemMatcher": {
"base": "$gcc",
"fileLocation": ["relative", "${workspaceFolder}/firmware"]
}
},
{
"type": "shell",
"label": "Clean and Build Project (Upgrade)",
"command": "make clean; make upgrade REV=${input:board_revision}",
"options": {
"cwd": "${workspaceFolder}/firmware"
},
"group": "build",
"problemMatcher": {
"base": "$gcc",
"fileLocation": ["relative", "${workspaceFolder}/firmware"]
}
},
{
"type": "shell",
"label": "Build Docs",
"command": "make html",
"options": {
"cwd": "${workspaceFolder}/docs"
},
"group": "build",
"problemMatcher": {
"base": "$gcc",
"fileLocation": ["relative", "${workspaceFolder}/docs"]
}
},
{
"type": "shell",
"label": "Start PyOCD GDB Server",
"command": "${workspaceFolder}/firmware/scripts/pyocd_run.sh gdbserver -t pac5527 --pack pac55xx_device_pack/",
"windows": {
"command": "${workspaceFolder}\\firmware\\scripts\\pyocd_run.bat gdbserver -t pac5527 --pack pac55xx_device_pack/"
},
"options": {
"cwd": "${workspaceFolder}/firmware"
},
"isBackground": true,
"problemMatcher": {
"pattern": {
"regexp": "^(GDB server listening).*$",
"file": 1,
"line": 2,
"message": 3
},
"background": {
"activeOnStart": true,
"beginsPattern": "^.*Target type is.*$",
"endsPattern": "^.*GDB server listening.*$"
}
}
},
{
"type": "shell",
"label": "ST-Link: Flash",
"command": "${workspaceFolder}/firmware/scripts/pyocd_run.sh flash -t pac5527 --pack pac55xx_device_pack/ build/tinymovr_fw.bin",
"windows": {
"command": "${workspaceFolder}\\firmware\\scripts\\pyocd_run.bat flash -t pac5527 --pack pac55xx_device_pack/ build\\tinymovr_fw.bin"
},
"options": {
"cwd": "${workspaceFolder}/firmware"
},
"problemMatcher": []
},
{
"label": "ST-Link: Build Debug and Start Server",
"dependsOn": ["Clean and Build Project (Debug)", "Start PyOCD GDB Server"],
"dependsOrder": "sequence"
},
{
"label": "ST-Link: Build Release and Flash",
"dependsOn": ["Clean and Build Project (Release)", "ST-Link: Flash"],
"dependsOrder": "sequence"
},
{
"label": "ST-Link: Build Release, Flash and Start Server",
"dependsOn": ["ST-Link: Build Release and Flash", "Start PyOCD GDB Server"],
"dependsOrder": "sequence"
},
{
"label": "ST-Link: Flash and Start Server",
"dependsOn": ["ST-Link: Flash", "Start PyOCD GDB Server"],
"dependsOrder": "sequence"
},
{
"type": "shell",
"label": "ST-Link: Erase Chip",
"command": "make erase-stlink",
"options": {
"cwd": "${workspaceFolder}/firmware"
},
"problemMatcher": []
},
{
"type": "shell",
"label": "J-Link: Erase Chip",
"command": "make erase-jlink",
"options": {
"cwd": "${workspaceFolder}/firmware"
},
"problemMatcher": []
},
{
"label": "Stop PyOCD Server",
"type": "shell",
"command": "pkill -f 'pyocd gdbserver' || true",
"windows": {
"command": "taskkill /F /IM pyocd.exe 2>nul || exit 0"
},
"presentation": {
"reveal": "silent"
},
"problemMatcher": []
}
],
"inputs": [
{
"type": "pickString",
"id": "board_revision",
"description": "The board revision against which firmware is built",
"options": [
"R32",
"R33",
"R50",
"R51",
"R52",
"R53",
"M51"
],
"default": "R53"
}
]
}9bb3dceeaThis file is pinned to the selected release. Download the original to open it in your design tool.