1source [find interface/stlink-dap.cfg]
2
3source [find target/stm32h5x.cfg]
4
5transport select "dapdirect_swd"
6
7set CHIPNAME STM32H563ZITX
8set BOARDNAME NUCLEO-STM32H563ZI
9
10# Reset configuration
11# use hardware reset, connect under reset
12# connect_assert_srst needed if low power mode application running (WFI...)
13reset_config srst_only srst_nogate connect_assert_srst
14set CONNECT_UNDER_RESET 1
15set CORE_RESET 0
16
17# Due to the use of connect_assert_srst, running gdb requires
18# to reset halt just after openocd init.
19rename init old_init
20proc init {} {
21        old_init
22        reset halt
23}
24