flash openocd task

This commit is contained in:
Vasily Markov 2024-04-01 15:39:24 +03:00
parent dd2c218f7e
commit cdd61312bf

28
.vscode/tasks.json vendored
View File

@ -53,6 +53,34 @@
"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.elf",
"-c",
"reset",
"-c",
"exit"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
]
}
]
}