{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "Build & Debug Microcontroller - ST-Link", "cwd": "${workspaceFolder}", "type": "cortex-debug", "executable": "${command:cmake.launchTargetPath}", // Let CMake extension decide executable: "${command:cmake.launchTargetPath}" // Or fixed file path: "${workspaceFolder}/path/to/filename.elf" "request": "launch", "servertype": "stlink", "device": "STM32H735IGKx", //MCU used "interface": "swd", "serialNumber": "", //Set ST-Link ID if you use multiple at the same time "runToEntryPoint": "main", "svdFile": "/opt/st/stm32cubeclt_1.18.0/STMicroelectronics_CMSIS_SVD/STM32H735.svd", // TODO: csere "v1": false, //Change it depending on ST Link version "serverpath": "/opt/st/stm32cubeclt_1.18.0/STLink-gdb-server/bin/ST-LINK_gdbserver", // TODO: csere "stm32cubeprogrammer": "/opt/st/stm32cubeclt_1.18.0/STM32CubeProgrammer/bin", // TODO: csere "stlinkPath": "/opt/st/stm32cubeclt_1.18.0/STLink-gdb-server/bin/ST-LINK_gdbserver", // TODO: csere "armToolchainPath": "/opt/st/stm32cubeclt_1.18.0/GNU-tools-for-STM32/bin", // TODO: csere "gdbPath": "/opt/st/stm32cubeclt_1.18.0/GNU-tools-for-STM32/bin/arm-none-eabi-gdb", // TODO: csere "serverArgs": [ "-m", "0", ], //"preLaunchTask": "Build + Flash" /* If you use external loader, add additional arguments */ //"serverArgs": ["--extload", "path/to/ext/loader.stldr"], }, { "name": "Attach to Microcontroller - ST-Link", "cwd": "${workspaceFolder}", "type": "cortex-debug", "executable": "${command:cmake.launchTargetPath}", // Let CMake extension decide executable: "${command:cmake.launchTargetPath}" // Or fixed file path: "${workspaceFolder}/path/to/filename.elf" "request": "attach", "servertype": "stlink", "device": "STM32H735IGKx", //MCU used "interface": "swd", "serialNumber": "", //Set ST-Link ID if you use multiple at the same time "runToEntryPoint": "main", "svdFile": "${env:CubeCLTRoot}/STMicroelectronics_CMSIS_SVD/STM32H735.svd", "v1": false, //Change it depending on ST Link version "serverpath": "${env:CubeCLTRoot}/STLink-gdb-server/bin/ST-LINK_gdbserver", "stm32cubeprogrammer": "${env:CubeCLTRoot}/STM32CubeProgrammer/bin", "stlinkPath": "${env:CubeCLTRoot}/STLink-gdb-server/bin/ST-LINK_gdbserver", "armToolchainPath": "${env:CubeCLTRoot}/GNU-tools-for-STM32/bin", "gdbPath": "gdb-multiarch", "serverArgs": [ "-m", "0", ], /* If you use external loader, add additional arguments */ //"serverArgs": ["--extload", "path/to/ext/loader.stldr"], }, { "name": "OpenOCD Launch (STLink)", "cwd": "${workspaceFolder}", "type": "cortex-debug", "request": "launch", "executable": "${command:cmake.launchTargetPath}", "servertype": "openocd", "device": "STM32H735IGKx", "runToEntryPoint": "main", "svdFile": "${env:CubeCLTRoot}/STMicroelectronics_CMSIS_SVD/STM32H735.svd", "gdbPath": "gdb-multiarch", "configFiles": [ "board/stm32h735g-disco.cfg" ], "openOCDLaunchCommands": [ "init", "reset halt", "$_CHIPNAME.cpu0 configure -rtos FreeRTOS" ], "showDevDebugOutput": "raw" }, { "name": "OpenOCD Attach (STLink)", "cwd": "${workspaceFolder}", "type": "cortex-debug", "request": "attach", "executable": "${command:cmake.launchTargetPath}", "servertype": "openocd", "device": "STM32H735IGKx", "runToEntryPoint": "main", "svdFile": "${env:CubeCLTRoot}/STMicroelectronics_CMSIS_SVD/STM32F735.svd", "gdbPath": "gdb-multiarch", "configFiles": [ "board/stm32h735g-disco.cfg" ], "openOCDLaunchCommands": [ "$_CHIPNAME.cpu0 configure -rtos FreeRTOS" ], "showDevDebugOutput": "raw" }, ] }