mv_arm/.vscode/tasks.json
2026-01-11 21:18:05 +08:00

92 lines
2.8 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"version": "2.0.0",
"tasks": [
{
"label": "OpenOCD_stlink",
"type": "shell",
"command": "openocd",
"args": [
"-f",
"interface/stlink.cfg",
"-f",
"target/stm32f4x.cfg",
"-c",
// "init; reset halt; flash erase_sector 0 0 last",
"init; reset halt",
"-c",
"program ${workspaceFolder}/build/Debug/DevC.elf verify",
"-c",
"reset run; exit"
],
"group": "build",
"problemMatcher": []
},
{
// 取消reset防止进debug时运行
"label": "OpenOCD_debug",
"type": "shell",
"command": "openocd",
"args": [
"-f",
"interface/stlink.cfg",
"-f",
"target/stm32f4x.cfg",
"-c",
// "init; reset halt; flash erase_sector 0 0 last",
"init; reset halt",
"-c",
"program ${workspaceFolder}/build/Debug/DevC.elf verify exit"
],
"group": "build",
"problemMatcher": []
},
{
"label": "OpenOCD_daplink",
"type": "shell",
"command": "openocd",
"args": [
"-f",
"interface/cmsis-dap.cfg",
"-f",
"target/stm32f4x.cfg",
"-c",
// "init; reset halt; flash erase_sector 0 0 last",
"init; reset halt",
"-c",
"program ${workspaceFolder}/build/Debug/DevC.elf verify",
"-c",
"reset run; exit"
],
"group": "build",
"problemMatcher": []
},
{
// 取消reset防止进debug时运行
"label": "OpenOCD_debug_dap",
"type": "shell",
"command": "openocd",
"args": [
"-f",
"interface/cmsis-dap.cfg",
"-f",
"target/stm32f4x.cfg",
"-c",
// "init; reset halt; flash erase_sector 0 0 last",
"init; reset halt",
"-c",
"program ${workspaceFolder}/build/Debug/DevC.elf verify exit"
],
"group": "build",
"problemMatcher": []
},
{
"type": "shell",
"label": "CMake_Build",
"command": "cmake -B build/Debug -DCMAKE_BUILD_TYPE=Debug && cmake --build build/Debug --config Debug",
"group": {
"kind": "build"
}
}
]
}