stm32f103-template/.vscode/tasks.json

92 lines
2.7 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build",
"type": "shell",
"command": "scons -j8",
"detail":"scons -j8",
"group": "build",
},
{
"label": "Rebuild",
"type": "shell",
"command": "scons -c && scons -j8",
"detail":"scons -c && scons -j8",
"group": "build"
},
{
"label": "Clean",
"type": "shell",
"command": "scons -c",
"detail":"scons -c",
"group": "build"
},
{
"label": "Download",//通过openocd下载
"type": "shell",
"detail":"openocd",
"group": "build",
"command": "openocd",
"args": [
//"-d", //输出openocd的运行日志
"-f",
"interface/stlink.cfg", //默认目录: /usr/share/openocd/scripts/
"-f",
"target/stm32f1x.cfg", //默认目录: /usr/share/openocd/scripts/
"-c",
"reset_config none",
"-c",
"init",
"-c",
"reset init",
"-c",
"halt",
"-c",
"sleep 10",
"-c",
"flash write_image erase rt-thread.elf", // 下载固件
"-c",
"sleep 10",
"-c",
"shutdown",
"-c",
"exit"
]
},
{
"label": "Menuconfig",//配置rtthread
"type": "shell",
"command": "scons --menuconfig",
"detail":"scons --menuconfig",
"group": "build"
},
{
"label": "Update",//更新 packagertthread
"type": "shell",
"command": "pkgs --update",
"detail":"pkgs --update",
"group": "build"
},
{
"label": "Package",//打包vscode
"type": "shell",
"command": "scons --target=vsc -s",
"detail":"scons --target=vsc -s",
"group": "build"
},
{
"label": "tty", //串口终端
"type": "shell",
"command": "picocom -b 115200 /dev/ttyUSB0",
"detail":"picocom -b 115200 /dev/ttyUSB0",
"group": "build",
"runOptions": {
"instanceLimit": 1
}
}
]
}