{ "version": "2.0.0", "tasks": [ { "type": "shell", "label": "CubeProg: Flash project (SWD)", "command": "cube", "args": [ "programmer", "--connect", "port=swd", "--download", "${command:cmake.launchTargetPath}", "-hardRst", "-rst", "--start" ], "options": { "cwd": "${workspaceFolder}" }, "problemMatcher": [], "presentation": { "showReuseMessage": false } }, { "label": "Build + Flash", "dependsOrder": "sequence", "dependsOn": [ "CMake: clean rebuild", "CubeProg: Flash project (SWD)" ], "problemMatcher": [ "$gcc" ], "presentation": { "showReuseMessage": false } }, { "type": "cmake", "label": "CMake: clean rebuild", "command": "cleanRebuild", "targets": [ "all" ], "preset": "Debug", "group": "build", "problemMatcher": [], "detail": "CMake template clean rebuild task" }, { "type": "cmake", "label": "CMake: configure", "command": "configure", "preset": "Debug", "problemMatcher": [], "detail": "CMake template configure task" }, { "label": "Configure and Build", "dependsOn": ["CMake: configure", "${command:st-stm32-ide-debug-launch.build}"], "dependsOrder": "sequence"} ] }