C4.5
Programming and reading ETM trace unit registers
You program and read the ETM trace unit registers using the Debug APB interface.
The core does not have to be in debug state when 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 program 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.
Start
Set main enable bit in
TRCPRGCTLR to 0b0
Read TRCSTATR
Is TRCSTATR Idle
0b1?
Program all trace
registers required
Set main enable bit in
TRCPRGCTLR to 0b1
Is TRCSTATR Idle
0b0?
End
Yes
Yes
No
No
Read TRCSTATR
Figure C4-2 Programming ETM trace unit registers
C4 Embedded Trace Macrocell
C4.5 Programming and reading ETM trace unit registers
100798_0300_00_en
Copyright © 2016–2018 Arm Limited or its affiliates. All rights
reserved.
C4-397
Non-Confidential
Summary of Contents for Cortex-A76 Core
Page 4: ......
Page 22: ......
Page 23: ...Part A Functional description ...
Page 24: ......
Page 119: ...Part B Register descriptions ...
Page 120: ......
Page 363: ...Part C Debug descriptions ...
Page 364: ......
Page 401: ...Part D Debug registers ...
Page 402: ......
Page 589: ...Part E Appendices ...
Page 590: ......