{ "version": "2.0.0", "tasks": [ { "label": "STM32: Flash via ST-Link(SWD)", "type": "shell", "command": "D:\\Program Files\\ST\\STM32CubeProgrammer\\bin\\STM32_Programmer_CLI.exe", "args": [ "-c port=SWD", "-e all", "-w", "${workspaceFolder}\\build\\Release\\ISKBoard.elf", "0x08000000", "-v", "-rst" ], "group": { "kind": "build", "isDefault": false }, "problemMatcher": [], "presentation": { "reveal": "always", "panel": "shared", "clear": true } }, { "label": "STM32: Flash via stm32flash(UART)", "type": "shell", "command": "${workspaceFolder}/.vscode/stm32flash.bat", "args": [ "${input:comPort}" ], "options": { "env": { "PATH": "${env:PATH}", "SystemRoot": "${env:SystemRoot}", "GCC_BIN": "${env:LOCALAPPDATA}\\stm32cube\\bundles\\gnu-tools-for-stm32\\14.3.1+st.2\\bin", "ELF": "${workspaceFolder}\\build\\Release\\ISKBoard.elf", "BIN": "${workspaceFolder}\\build\\Release\\ISKBoard.bin", "FLASH_EXE": "${workspaceFolder}\\.vscode\\stm32flash.exe" } }, "group": { "kind": "build", "isDefault": false }, "problemMatcher": [], "presentation": { "reveal": "always", "panel": "shared", "clear": true } } ], "inputs": [ { "id": "comPort", "type": "promptString", "description": "!!!请确保开发板进入烧录模式,并输入串口号!!!", "default": "COM22" } ] }