1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
| {
| "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"
| }
| ]
| }
|
|