added openocd confiig
This commit is contained in:
16
.vscode/launch.json
vendored
16
.vscode/launch.json
vendored
@@ -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
15
stm32h7x3i_eval.cfg
Normal 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
|
||||
Reference in New Issue
Block a user