diff --git a/.vscode/launch.json b/.vscode/launch.json index 4c0588f..3681231 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,6 +4,22 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ + { + + "cwd": "${workspaceRoot}", + "executable": "${command:cmake.launchTargetPath}", //or fixed file path: build/stm32h735g-dk-led.elf + "name": "Debug with OpenOCD", + "request": "launch", + "type": "cortex-debug", + "servertype": "openocd", + "configFiles": ["stm32h7x3i_eval.cfg"], + "searchDir": [], + "runToEntryPoint": "main", + "showDevDebugOutput": "both", + "svdFile": "STM32H723.svd", //Path to SVD file to see registers + "rtos" : "FreeRTOS" + + }, { "name": "Debug Microcontroller - ST-Link", "cwd": "${workspaceFolder}", diff --git a/stm32h7x3i_eval.cfg b/stm32h7x3i_eval.cfg new file mode 100644 index 0000000..14f4bc5 --- /dev/null +++ b/stm32h7x3i_eval.cfg @@ -0,0 +1,15 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +# STM32H7[4|5]3I-EVAL: this is for the H7 eval boards. +# This is an ST EVAL-H743XI board with single STM32H743XI chip. +# http://www.st.com/en/evaluation-tools/stm32h743i-eval.html +# This is an ST EVAL-H753XI board with single STM32H753XI chip. +# http://www.st.com/en/evaluation-tools/stm32h753i-eval.html + +source [find interface/stlink.cfg] + +transport select hla_swd + +source [find target/stm32h7x.cfg] + +reset_config none