mirror of
https://github.com/openocd-org/openocd.git
synced 2025-10-14 11:28:24 +08: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:

committed by
Antonio Borneo

parent
125d4f106d
commit
db8db90333
@@ -98,6 +98,9 @@ proc _proc_pre_enable_$_CHIPNAME.tpiu {_chipname} {
|
|||||||
targets $_chipname.cpu
|
targets $_chipname.cpu
|
||||||
|
|
||||||
if { [$_chipname.tpiu cget -protocol] eq "sync" } {
|
if { [$_chipname.tpiu cget -protocol] eq "sync" } {
|
||||||
|
# Enable the GPIOE clock.
|
||||||
|
mmw 0x40023830 0x00000010 0x00000010
|
||||||
|
|
||||||
switch [$_chipname.tpiu cget -port-width] {
|
switch [$_chipname.tpiu cget -port-width] {
|
||||||
1 {
|
1 {
|
||||||
# Set TRACE_IOEN; TRACE_MODE to sync 1 bit; GPIOE[2-3] to AF0
|
# Set TRACE_IOEN; TRACE_MODE to sync 1 bit; GPIOE[2-3] to AF0
|
||||||
|
Reference in New Issue
Block a user