2
0
mirror of git://git.code.sf.net/p/openocd/code synced 2025-08-15 17:37:50 +10:00

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 <dev@zapb.de>
Reviewed-on: https://review.openocd.org/c/openocd/+/8823
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
This commit is contained in:
Marc Schink 2025-04-01 04:34:27 +00:00 committed by Antonio Borneo
parent 125d4f106d
commit db8db90333

View File

@ -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