]> www.infradead.org Git - users/borneoa/openocd-next.git/commitdiff
tcl/target/stm32f4x: Enable the trace port clock
authorMarc Schink <dev@zapb.de>
Tue, 1 Apr 2025 04:34:27 +0000 (04:34 +0000)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 7 Jun 2025 10:02:22 +0000 (10:02 +0000)
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
tcl/target/stm32f4x.cfg

index 35d8275b553be1cc602a6668fb9262a9399b31b8..a77527c46d57df266d43004191cd37559ae8e866 100644 (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