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 board/st_nucleo_h745zi.cfg] 8 9# Use connect_assert_srst here to be able to program 10# even when core is in sleep mode 11reset_config srst_only srst_nogate connect_assert_srst 12 13$_CHIPNAME.cpu0 configure -event gdb-attach { 14 echo "Debugger attaching: halting execution" 15 gdb_breakpoint_override hard 16} 17 18$_CHIPNAME.cpu0 configure -event gdb-detach { 19 echo "Debugger detaching: resuming execution" 20 resume 21} 22 23# Due to the use of connect_assert_srst, running gdb requires 24# to reset halt just after openocd init. 25rename init old_init 26proc init {} { 27 old_init 28 reset halt 29} 30