37 lines
935 B
INI
37 lines
935 B
INI
# STM32H745ZI Nucleo board OpenOCD ST-LINK V3 configuration
|
|
#
|
|
# Copyright (c) 2020 Alexander Kozhinov <AlexanderKozhinov@yandex.com>
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
source [find interface/stlink-dap.cfg]
|
|
transport select dapdirect_swd
|
|
|
|
set WORKAREASIZE 0x3000
|
|
set CHIPNAME STM32H723ZG
|
|
set BOARDNAME NUCLEO-H723ZG
|
|
|
|
source [find target/stm32h7x.cfg]
|
|
|
|
# Use connect_assert_srst here to be able to program
|
|
# even when core is in sleep mode
|
|
reset_config srst_only srst_nogate connect_assert_srst
|
|
|
|
$_CHIPNAME.cpu0 configure -event gdb-attach {
|
|
echo "Debugger attaching: halting execution"
|
|
gdb_breakpoint_override hard
|
|
}
|
|
|
|
$_CHIPNAME.cpu0 configure -event gdb-detach {
|
|
echo "Debugger detaching: resuming execution"
|
|
resume
|
|
}
|
|
|
|
# Due to the use of connect_assert_srst, running gdb requires
|
|
# to reset halt just after openocd init.
|
|
rename init old_init
|
|
proc init {} {
|
|
old_init
|
|
reset halt
|
|
}
|