1source [find board/st_nucleo_h743zi.cfg]
2
3reset_config srst_only srst_nogate connect_assert_srst
4
5$_CHIPNAME.cpu0 configure -event gdb-attach {
6        echo "Debugger attaching: halting execution"
7        gdb_breakpoint_override hard
8}
9
10$_CHIPNAME.cpu0 configure -event gdb-detach {
11        echo "Debugger detaching: resuming execution"
12        resume
13}
14
15# Due to the use of connect_assert_srst, running gdb requires
16# to reset halt just after openocd init.
17rename init old_init
18proc init {} {
19        old_init
20       reset halt
21}
22