From db8db903338d1f99eda6ad533168885c9e21178f Mon Sep 17 00:00:00 2001 From: Marc Schink Date: Tue, 1 Apr 2025 04:34:27 +0000 Subject: [PATCH] tcl/target/stm32f4x: Enable the trace port clock Enable the trace port (GPIOE) clock, otherwise the following pin configurations have no effect. Change-Id: I3942d2527c64340463c3b6c607addb4214f83081 Signed-off-by: Marc Schink Reviewed-on: https://review.openocd.org/c/openocd/+/8823 Reviewed-by: Antonio Borneo Tested-by: jenkins --- tcl/target/stm32f4x.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tcl/target/stm32f4x.cfg b/tcl/target/stm32f4x.cfg index 35d8275b5..a77527c46 100644 --- a/tcl/target/stm32f4x.cfg +++ b/tcl/target/stm32f4x.cfg @@ -98,6 +98,9 @@ proc _proc_pre_enable_$_CHIPNAME.tpiu {_chipname} { targets $_chipname.cpu if { [$_chipname.tpiu cget -protocol] eq "sync" } { + # Enable the GPIOE clock. + mmw 0x40023830 0x00000010 0x00000010 + switch [$_chipname.tpiu cget -port-width] { 1 { # Set TRACE_IOEN; TRACE_MODE to sync 1 bit; GPIOE[2-3] to AF0 -- 2.50.1