SumProject/.vscode/tasks.json
2025-03-22 22:38:52 +08:00

185 lines
5.7 KiB
JSON

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"windows": {
"options": {
"shell": {
"executable": "cmd.exe",
"args": [
"/d",
"/c",
"d:\\DevTools\\env2\\tools\\bin\\env-init.bat && "
]
}
},
},
"tasks": [
// {
// "label": "更新软件包",
// "type": "shell",
// "command": "call ${workspaceFolder}\\tools\\pkgs_update.bat",
// "problemMatcher": []
// },
// {
// "label": "MenuConfig",
// "type": "shell",
// "command": "start",
// "args": [
// "cmd.exe",
// "/d",
// "/c call ${workspaceFolder}\\tools\\mc.bat "
// ],
// "problemMatcher": []
// },
// {
// "label": "MenuConfig -s",
// "type": "shell",
// "command": "start",
// "args": [
// "cmd.exe",
// "/d /c call menuconfig -s"
// ],
// "problemMatcher": []
// },
{
"label": "PyConfig",
"type": "shell",
"command": "tools\\mc_py.bat",
"problemMatcher": []
},
{
"label": "编译(j8)",
"type": "shell",
"command": "scons",
"args": [
"-j8"
],
"options": {
"env": {
"MCU": "STM32F407ZG"
}
},
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
},
{
"label": "编译(j1)",
"type": "shell",
"command": "${workspaceFolder}\\tools\\build-stm32.bat",
"args": [
"-j1"
],
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
},
{
"label": "清理",
"type": "shell",
"command": "scons -c && cd ${workspaceFolder} && rm -fv *.elf *.hex *.bin *.map",
"args": [],
"problemMatcher": []
},
{
"label": "更新 C/C++ 路径",
"type": "shell",
"command": "scons --target=vsc -s",
"args": [],
"problemMatcher": []
},
{
"label": "编译(j1)下载",
"type": "shell",
"command": "scons -j1 &&pyocd load -M under-reset -t stm32f407zg ${workspaceFolder}/rt-thread.elf",
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
},
{
"label": "编译(j8)下载",
"type": "shell",
"command": "scons -j8 &&pyocd load -M under-reset -t stm32f407zg ${workspaceFolder}/rt-thread.elf",
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
},
{
"label": "汉字转Unicode",
"type": "shell",
"command": "C:/Users/19433/AppData/Local/Microsoft/WindowsApps/python3.11.exe d:/Develop/SumProject/my_error/ZHtoUnicode.py",
"args": [],
"problemMatcher": []
},
{
"label": "汉字转UnicodePro(图形版)",
"type": "shell",
"command": "C:/Users/19433/AppData/Local/Microsoft/WindowsApps/python3.11.exe d:/Develop/SumProject/my_error/ZHUnicodePro.py",
"args": [],
"problemMatcher": []
},
{
"label": "下载固件(pyocd)",
"type": "shell",
"command": "pyocd load -M under-reset -t stm32f407zg ${workspaceFolder}/rt-thread.elf",
"args": [],
"problemMatcher": []
},
{
"label": "重启(pyocd)",
"type": "shell",
"command": "pyocd reset -t stm32f407zg",
"args": [],
"problemMatcher": []
},
]
}