stm32_serDes_protobuf_project/.vscode/tasks.json
2024-04-02 12:47:04 +03:00

124 lines
1.8 KiB
JSON

{
"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
}
},
{
"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.hex",
"-c",
"reset",
"-c",
"exit"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
]
},
{
"label": "run OpenOCD",
"type": "shell",
"command": "openocd",
"args": [
"-f",
"interface/stlink-v2.cfg",
"-f",
"target/stm32f4x.cfg"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
],
"isBackground": true
},
{
"label": "gdb",
"type": "shell",
"command": "gdb",
"args": [
"${workspaceFolder}/build/stm32.elf",
"-ex",
"target remote :3333"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"dependsOn": [
"run OpenOCD"
]
},
]
}