I am using STM3210C EVAL board (stm32f107vc). UlinkPro debugger.
Here is the tutorial I found from keil.com. ULINKpro User's Guide: Enable 4-Pin Trace (ETM)
Here is the snipping.
So, when we need to using ETM trace, we just need to enable the Trace PORTs clock, and configure them as AFIO with highest speed, then set the DBGMCU_CR, that's it?
What I found in the STM32F107 user manual is this!
it looks different!
As I config in the CUBEMX with trace sw (4 bits), the output code doesn't do any thing related to the trace PORTs.
If I don't use trace.ini (as KEIL says) to pre-configure the MCU, ETM also works!
What rules should I follow when ETM tracing STM32 MCU?
Bob Boys Please pay your attention? thanks ^ ^