armv7m: add generic trace support (TPIU, ITM, etc.)
[fw/openocd] / tcl / target / stm32f3x.cfg
index 7ddf7d0435ad4036cdcb4693c600eb2e279f6cc3..f3c22af7ae2a9a570f7bdd938053c6976ac9c81e 100644 (file)
@@ -118,3 +118,10 @@ proc stm32f3x_default_reset_init {} {
 $_TARGETNAME configure -event examine-end { stm32f3x_default_examine_end }
 $_TARGETNAME configure -event reset-start { stm32f3x_default_reset_start }
 $_TARGETNAME configure -event reset-init { stm32f3x_default_reset_init }
+
+$_TARGETNAME configure -event trace-config {
+       # Set TRACE_IOEN; TRACE_MODE is set to async; when using sync
+       # change this value accordingly to configure trace pins
+       # assignment
+       mmw 0xe0042004 0x00000020 0
+}