1# STM32H745XI DISCOVERY board OpenOCD ST-LINK V3 configuration 2# 3# Copyright (c) 2020 Alexander Kozhinov <ak.alexander.kozhinov@gmail.com> 4# Copyright (c) 2024 Tomas Jurena <jurena@utb.cz> 5# SPDX-License-Identifier: Apache-2.0 6# 7 8source [find board/stm32h745i-disco.cfg] 9 10# Use connect_assert_srst here to be able to program 11# even when core is in sleep mode 12reset_config srst_only srst_nogate connect_assert_srst 13 14$_CHIPNAME.cpu0 configure -event gdb-attach { 15 echo "Debugger attaching: halting execution" 16 gdb_breakpoint_override hard 17} 18 19$_CHIPNAME.cpu0 configure -event gdb-detach { 20 echo "Debugger detaching: resuming execution" 21 resume 22} 23 24# Due to the use of connect_assert_srst, running gdb requires 25# to reset halt just after openocd init. 26rename init old_init 27proc init {} { 28 old_init 29 reset halt 30} 31