92 lines
3.2 KiB
JSON
92 lines
3.2 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Build (Boot + Appli)",
|
|
"type": "shell",
|
|
"command": "/usr/local/opt/make/libexec/gnubin/make",
|
|
"args": ["-j8"],
|
|
"options": { "cwd": "${workspaceFolder}/gcc" },
|
|
"group": { "kind": "build", "isDefault": true },
|
|
"problemMatcher": ["$gcc"],
|
|
"presentation": { "reveal": "always", "panel": "shared", "clear": true }
|
|
},
|
|
{
|
|
"label": "Clean",
|
|
"type": "shell",
|
|
"command": "/usr/local/opt/make/libexec/gnubin/make",
|
|
"args": ["clean"],
|
|
"options": { "cwd": "${workspaceFolder}/gcc" },
|
|
"group": "build",
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Flash Boot",
|
|
"type": "shell",
|
|
"command": "/Applications/STMicroelectronics/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.macos64_2.2.500.202603051304/tools/bin/STM32_Programmer_CLI",
|
|
"args": [
|
|
"-c", "port=SWD",
|
|
"-el", "${workspaceFolder}/gcc/MX66UW1G45G_STM32H7S78-DK.stldr",
|
|
"-w", "${workspaceFolder}/Boot/TouchGFX/build/bin/target.hex",
|
|
"-v",
|
|
"-rst"
|
|
],
|
|
"group": "none",
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Flash Appli",
|
|
"type": "shell",
|
|
"command": "/Applications/STMicroelectronics/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.macos64_2.2.500.202603051304/tools/bin/STM32_Programmer_CLI",
|
|
"args": [
|
|
"-c", "port=SWD",
|
|
"-el", "${workspaceFolder}/gcc/MX66UW1G45G_STM32H7S78-DK.stldr",
|
|
"-w", "${workspaceFolder}/Appli/TouchGFX/build/bin/target.hex",
|
|
"-v",
|
|
"-rst"
|
|
],
|
|
"group": "none",
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Flash All (Boot + Appli)",
|
|
"dependsOrder": "sequence",
|
|
"dependsOn": ["Flash Boot", "Flash Appli"],
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Start ST-LINK GDB Server",
|
|
"type": "shell",
|
|
"command": "/Applications/STMicroelectronics/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.macos64_2.2.500.202604010938/tools/bin/ST-LINK_gdbserver",
|
|
"args": [
|
|
"-p", "61234",
|
|
"-l", "1",
|
|
"-d",
|
|
"-cp", "/Applications/STMicroelectronics/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.macos64_2.2.500.202603051304/tools/bin",
|
|
"-el", "${workspaceFolder}/gcc/MX66UW1G45G_STM32H7S78-DK.stldr",
|
|
"-m", "1",
|
|
"-k"
|
|
],
|
|
"isBackground": true,
|
|
"problemMatcher": {
|
|
"pattern": {
|
|
"regexp": "^(x)(x)$"
|
|
},
|
|
"background": {
|
|
"activeOnStart": true,
|
|
"beginsPattern": "^STMicroelectronics ST-LINK GDB server",
|
|
"endsPattern": "Waiting for debugger connection|Error in initializing ST-LINK device"
|
|
}
|
|
},
|
|
"presentation": { "reveal": "always", "panel": "dedicated" }
|
|
},
|
|
{
|
|
"label": "Stop ST-LINK GDB Server",
|
|
"type": "shell",
|
|
"command": "pkill -f ST-LINK_gdbserver || true",
|
|
"problemMatcher": [],
|
|
"presentation": { "reveal": "silent" }
|
|
}
|
|
]
|
|
}
|