{ // 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", "command": "make", "args": [], "problemMatcher": [ "$gcc" ], "group": { "kind": "build", "isDefault": true } }, { "type": "shell", "label": "pyocd download", "command": "pyocd", "args": [ "load", "Project/Project.elf", "--target=PY32F030x8", "--frequency=1000000", "--pack=${env:PYSDEPATH}\\packs\\PY32F0xx_DFP.pack" ], "problemMatcher": [ "$gcc" ], "group": "build", "dependsOn": "build" }, { "type": "shell", "label": "openocd download", "command": "openocd", "args": [ "-f", "interface/cmsis-dap.cfg", "-f", "target/py32f030.cfg", "-c", "program Project/Project.elf verify reset exit" ], "problemMatcher": [ "$gcc" ], "group": "build", "dependsOn": "build" }, { "type": "shell", "label": "jlink download", "command": "JLink.exe", "args": [ "-device", "PY32F030x8", "-if", "SWD", "-speed", "4000", "-autoconnect", "1", "-CommanderScript", "commands.jlink" ], "problemMatcher": [ "$gcc" ], "group": "build", "dependsOn": "build" } ] }