1# STM32H745ZI Nucleo board OpenOCD ST-LINK V3 configuration 2# 3# Copyright (c) 2020 Alexander Kozhinov <AlexanderKozhinov@yandex.com> 4# SPDX-License-Identifier: Apache-2.0 5# 6 7source [find interface/stlink-dap.cfg] 8transport select dapdirect_swd 9 10set WORKAREASIZE 0x3000 11set CHIPNAME STM32H723ZG 12set BOARDNAME NUCLEO-H723ZG 13 14source [find target/stm32h7x.cfg] 15 16# Use connect_assert_srst here to be able to program 17# even when core is in sleep mode 18reset_config srst_only srst_nogate connect_assert_srst 19 20$_CHIPNAME.cpu0 configure -event gdb-attach { 21 echo "Debugger attaching: halting execution" 22 gdb_breakpoint_override hard 23} 24 25$_CHIPNAME.cpu0 configure -event gdb-detach { 26 echo "Debugger detaching: resuming execution" 27 resume 28} 29 30# Due to the use of connect_assert_srst, running gdb requires 31# to reset halt just after openocd init. 32rename init old_init 33proc init {} { 34 old_init 35 reset halt 36} 37