| | |
| | | "version": "2.0.0", |
| | | "tasks": [ |
| | | { |
| | | "label": "STM32: Flash via ST-Link(SWD)", |
| | | "label": "STM32: Flash via ST-Link (SWD)", |
| | | "type": "shell", |
| | | "command": "D:\\Program Files\\ST\\STM32CubeProgrammer\\bin\\STM32_Programmer_CLI.exe", |
| | | "command": "cube", |
| | | "args": [ |
| | | "-c", |
| | | "port=SWD", |
| | | "-w", |
| | | "${workspaceFolder}\\build\\Release\\ISKBoard.elf", |
| | | "0x08000000", |
| | | "-v", |
| | | "programmer", |
| | | "-c", "port=SWD", "freq=4000", "reset=HWrst", |
| | | "-w", "${workspaceFolder}\\build\\Release\\ISKBoard.elf", |
| | | "-rst" |
| | | ], |
| | | "group": { |
| | | "kind": "build", |
| | | "isDefault": false |
| | | }, |
| | | "group": "build", |
| | | "problemMatcher": [], |
| | | "presentation": { |
| | | "reveal": "always", |
| | |
| | | } |
| | | }, |
| | | { |
| | | "label": "STM32: Flash via stm32flash(UART)", |
| | | "label": "STM32: Flash via Serial (UART)", |
| | | "type": "shell", |
| | | "command": "${workspaceFolder}/.vscode/stm32flash.bat", |
| | | "command": "cube", |
| | | "args": [ |
| | | "${input:comPort}" |
| | | "programmer", |
| | | "--connect", "port=${input:comPort}", |
| | | "-w", "${workspaceFolder}\\build\\Release\\ISKBoard.elf" |
| | | ], |
| | | "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 |
| | | }, |
| | | "group": "build", |
| | | "problemMatcher": [], |
| | | "presentation": { |
| | | "reveal": "always", |
| | |
| | | "default": "COM22" |
| | | } |
| | | ] |
| | | } |
| | | } |