guowenxue
2026-07-06 d97ecd3a2976ff4541bc8d4af9cbadfb245dbcef
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
    "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",
                "-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"
        }
    ]
}