The ARMv7-M architecture reference manual refers to the generation of CMPMATCH[N] events, from the DWT to the ETM (e.g. on matching a PC or data value).
I can't find anywhere how the CMPMATCH event can be used by the ETM; there is no mention in the ETM architecture spec.
How do I enable tracing from a CMPMATCH event? Target is M3, DesignStart Xilinx FPGA.
The DWT compare match events (up to 4 bits) are connected to the ETM as Embedded ICE comparator inputs
https://developer.arm.com/docs/ddi0337/e/embedded-trace-macrocell/etm-resources/data-and-instruction-address-compare-resources
Thanks Joseph, that's what I suspected but wasn't sure because I was looking at the latest version of the ETM spec, which unlike the one you pointed to, doesn't mention DWT at all. But with your confirmation I was able to sort out the issues I was having.