{ "version": "2.0.0", "tasks": [ { "label": "STM32: Flash via ST-Link (SWD)", "type": "shell", "command": "cube", "args": [ "programmer", "-c", "port=SWD", "freq=4000", "reset=HWrst", "-w", "${workspaceFolder}\\build\\Release\\ISKBoard.elf", "-rst" ], "group": "build", "problemMatcher": [], "presentation": { "reveal": "always", "panel": "shared", "clear": true } }, { "label": "STM32: Flash via Serial (UART)", "type": "shell", "command": "cube", "args": [ "programmer", "--connect", "port=${input:comPort}", "-w", "${workspaceFolder}\\build\\Release\\ISKBoard.elf" ], "group": "build", "problemMatcher": [], "presentation": { "reveal": "always", "panel": "shared", "clear": true } } ], "inputs": [ { "id": "comPort", "type": "promptString", "description": "!!!请确保开发板进入烧录模式,并输入串口号!!!", "default": "COM22" } ] }