{ "version": "2.0.0", "windows": { "options": { "shell": { "executable": "cmd.exe", "args": ["/d", "/c"] } } }, "tasks": [ { "type": "shell", "label": "CubeProg: Flash project (SWD)", "command": "STM32_Programmer_CLI", "args": [ "--connect", "port=swd", "--download", "${command:cmake.launchTargetPath}", "-hardRst", "-rst", "--start" ], "options": { "cwd": "${workspaceFolder}" }, "problemMatcher": [] }, { "label": "Build + Flash", "dependsOrder": "sequence", "dependsOn": [ "CMake: clean rebuild", "CubeProg: Flash project (SWD)" ], "presentation": {"echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true}, "problemMatcher": [] }, { "type": "cmake", "label": "CMake: clean rebuild", "command": "cleanRebuild", "targets": [ "all" ], "preset": "${command:cmake.activeBuildPresetName}", "group": "build", "problemMatcher": [], "detail": "CMake template clean rebuild task" }, { "type": "shell", "label": "CubeProg: List all available communication interfaces", "command": "STM32_Programmer_CLI", "args": [ "--list" ], "options": { "cwd": "${workspaceFolder}" }, "problemMatcher": [] } ] }