|Non-Confidential||PDF version||ARM 100241_0001_00_en|
|Home > Debug > ETM > Programming and reading ETM trace unit registers|
You program and read the ETM trace unit registers using the Debug APB interface.
The processor does not have to be in the debug state while you program the ETM trace unit registers.
When you are programming the ETM trace unit registers, you must enable all the changes at the same time. Otherwise if you reprogram the counter, it might start to count based on incorrect events before the correct setup is in place for the trigger condition.
To disable the ETM trace unit, use the TRCPRGCTLR.EN bit.