User guide
Embedded Trace Macrocell
ARM DDI 0337I Copyright © 2005-2008, 2010 ARM Limited. All rights reserved. 10-5
ID072410 Non-Confidential
Resource identification encoding
You configure the trace enable event and trigger event using the same mechanism. For each
event, a 17-bit register is used to define the event. This register provides:
• Resource A, bits [6:0]
• Resource B, bits [13:7]
• a Boolean function, bits [16:14].
Table 10-2 shows the encodings used for the Boolean function.
Table 10-3 shows the encodings used for Resource identification.
Load PC first No
Fetch comparisons No
Load data traced No
Table 10-2 Boolean function encoding for events
Encoding Function
0b000
A
0b001
NOT(A)
0b010
A AND B
0b011
NOT(A) AND B
0b100
NOT(A) AND NOT (B)
0b101
A OR B
0b110
NOT (A) OR B
0b111
NOT (A) OR NOT (B)
Table 10-3 Resource identification encoding
Resource type
a
a. For Resource A, bits [6:4]. For Resource B, bits [13:11]
Index range
b
b. For Resource A, bits [3:0]. For Resource B, bits [10:7].
Description of resource type
0b010
0-3 DWT Comparator inputs (0-3)
0b100
0 Counter 1 at zero
0b101
15 Trace Start/Stop resource
0b110
0-1 ExtIn (0-1)
0b110
15 HardWired (always True)
Table 10-1 Cortex-M3 resources (continued)
Feature Present on ETM-M3