From 1afb3e75f003d3b2a1bf76fde8797a1ea8312189 Mon Sep 17 00:00:00 2001 From: HAOUES Ahmed Date: Thu, 30 Oct 2025 10:40:58 +0100 Subject: [PATCH] tcl/target/stm32h7x: modify speed at OpenOCD initialization and drop unneeded reset-init event The speed is set to 1800 kHz at initialization, but increases to 4000 kHz before flash programming, with debugging continuing at this higher speed. So, setting 4000 kHz from the start makes sense. Change-Id: I6bccb5837c624943212b727368b40153e42ccebb Signed-off-by: HAOUES Ahmed Reviewed-on: https://review.openocd.org/c/openocd/+/9027 Reviewed-by: Tomas Vanek Tested-by: jenkins --- tcl/target/stm32h7x.cfg | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tcl/target/stm32h7x.cfg b/tcl/target/stm32h7x.cfg index 5aae93861..a364e0682 100644 --- a/tcl/target/stm32h7x.cfg +++ b/tcl/target/stm32h7x.cfg @@ -126,7 +126,7 @@ if { [info exists QUADSPI] && $QUADSPI } { } # Clock after reset is HSI at 64 MHz, no need of PLL -adapter speed 1800 +adapter speed 4000 adapter srst delay 100 if {[using_jtag]} { @@ -198,11 +198,6 @@ $_CHIPNAME.cpu0 configure -event examine-end { stm32h7x_dbgmcu_mmw 0x3000 0x00000003 0 } -$_CHIPNAME.cpu0 configure -event reset-init { - # Clock after reset is HSI at 64 MHz, no need of PLL - adapter speed 4000 -} - # get _CHIPNAME from current target proc stm32h7x_get_chipname {} { set t [target current]