mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/cmake-demo.git
synced 2025-06-10 02:25:59 +00:00
63 lines
1.9 KiB
JSON
63 lines
1.9 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"windows": {
|
|
"options": {
|
|
"shell": {
|
|
"executable": "cmd.exe",
|
|
"args": ["/d", "/c"]
|
|
}
|
|
}
|
|
},
|
|
"tasks": [
|
|
{
|
|
"type": "shell",
|
|
"label": "CubeProg: Flash project (SWD)",
|
|
"command": "STM32_Programmer_CLI",
|
|
"args": [
|
|
"--connect",
|
|
"port=swd",
|
|
"--download",
|
|
"${command:cmake.launchTargetPath}",
|
|
// Let CMake extension decide executable: "${command:cmake.launchTargetPath}",
|
|
"-hardRst", // Hardware reset - if rst pin is connected
|
|
"-rst", // Software reset (backup)
|
|
"--start" // Start execution
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Build + Flash",
|
|
"dependsOrder": "sequence",
|
|
"dependsOn": [
|
|
"CMake: clean rebuild",
|
|
"CubeProg: Flash project (SWD)",
|
|
]
|
|
},
|
|
{
|
|
"type": "cmake",
|
|
"label": "CMake: clean rebuild",
|
|
"command": "cleanRebuild",
|
|
"targets": [
|
|
"all"
|
|
],
|
|
"preset": "${command:cmake.activeBuildPresetName}",
|
|
"group": "build",
|
|
"problemMatcher": [],
|
|
"detail": "CMake template clean rebuild task"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"label": "CubeProg: List all available communication interfaces",
|
|
"command": "STM32_Programmer_CLI",
|
|
"args": ["--list"],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": []
|
|
}
|
|
]
|
|
}
|