2024-04-01 15:29:08 +03:00
|
|
|
{
|
|
|
|
"version": "2.0.0",
|
|
|
|
"tasks": [
|
|
|
|
{
|
|
|
|
"label": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "cmake",
|
|
|
|
"args": [
|
|
|
|
"--build",
|
|
|
|
"${workspaceFolder}/build"
|
|
|
|
],
|
|
|
|
"problemMatcher": [
|
|
|
|
"$gcc"
|
|
|
|
],
|
|
|
|
"group": {
|
|
|
|
"kind": "build",
|
|
|
|
"isDefault": true
|
|
|
|
},
|
|
|
|
"dependsOn": [
|
|
|
|
"generate"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "generate",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "cmake",
|
|
|
|
"args": [
|
|
|
|
"-S",
|
|
|
|
".",
|
|
|
|
"-B",
|
|
|
|
"build"
|
|
|
|
],
|
|
|
|
"problemMatcher": [
|
|
|
|
"$gcc"
|
|
|
|
],
|
|
|
|
"group": {
|
|
|
|
"kind": "build",
|
|
|
|
"isDefault": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "clean",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "rm",
|
|
|
|
"args": [
|
|
|
|
"-rf",
|
|
|
|
"${workspaceFolder}/build"
|
|
|
|
],
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
},
|
|
|
|
"group": {
|
|
|
|
"kind": "build",
|
|
|
|
"isDefault": true
|
|
|
|
}
|
2024-04-01 15:39:24 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "flash",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "openocd",
|
|
|
|
"args": [
|
|
|
|
"-f",
|
|
|
|
"interface/stlink-v2.cfg",
|
|
|
|
"-f",
|
|
|
|
"target/stm32f4x.cfg",
|
|
|
|
"-c",
|
|
|
|
"init",
|
|
|
|
"-c",
|
|
|
|
"reset halt",
|
|
|
|
"-c",
|
|
|
|
"flash write_image erase ${workspaceFolder}/build/stm32.elf",
|
|
|
|
"-c",
|
|
|
|
"reset",
|
|
|
|
"-c",
|
|
|
|
"exit"
|
|
|
|
],
|
|
|
|
"group": {
|
|
|
|
"kind": "build",
|
|
|
|
"isDefault": true
|
|
|
|
},
|
|
|
|
"problemMatcher": [
|
|
|
|
"$gcc"
|
|
|
|
]
|
2024-04-01 15:29:08 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|