added openocd confiig

This commit is contained in:
2024-02-05 14:21:55 +01:00
parent 4dfe9060fa
commit 160ba38027
2 changed files with 31 additions and 0 deletions

16
.vscode/launch.json vendored
View File

@@ -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}",

15
stm32h7x3i_eval.cfg Normal file
View File

@@ -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