{ "version": "2.0.0", "tasks": [ { "label": "Start pyOCD Server", "type": "shell", "command": "powershell", "args": ["-ExecutionPolicy", "Bypass", "-File", "${workspaceFolder}/start_pyocd.ps1"], "isBackground": true, "problemMatcher": { "owner": "pyocd", "pattern": { "regexp": "." }, "background": { "activeOnStart": true, "beginsPattern": ".", "endsPattern": "GDB server listening on port" } } }, { "label": "Configure", "type": "process", "command": "cmake", "args": ["-G", "Ninja", "-S", "${workspaceFolder}", "-B", "${workspaceFolder}/build", "-DCMAKE_TOOLCHAIN_FILE=gcc-arm-none-eabi.cmake", "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"], "problemMatcher": [] }, { "label": "Build", "type": "shell", "command": "ninja", "args": ["-C", "build"], "group": { "kind": "build", "isDefault": true }, "dependsOn": ["Configure"], "problemMatcher": [] }, { "label": "Flash", "type": "shell", "command": "python", "args": ["-m", "pyocd", "flash", "-t", "mspm0g3507", "${workspaceFolder}/build/blink.elf"], "problemMatcher": [] }, { "label": "Build & Flash", "dependsOrder": "sequence", "dependsOn": ["Build", "Flash"], "problemMatcher": [] } ] }