ETM — Embedded trace macrocell

The ARM embedded trace macrocell implements instruction, data and event tracing.

This document only provides a register-level description of this ARM component. See the Arm® Embedded Trace Macrocell Architecture Specification for more details

Registers

Instances

InstanceDomainBase addressTrustZoneSplit accessDescription
MapAttDMA
ETMAPPLICATION0xE0041000HFNSNANoEmbedded trace macrocell

Register overview

RegisterOffsetTZDescription
TRCPRGCTLR0x004Enables the trace unit.
TRCPROCSELR0x008

Controls which PE to trace.

Might ignore writes when the trace unit is enabled or not idle.

Before writing to this register, ensure that TRCSTATR.IDLE == 1 so that the trace unit can synchronize with the chosen PE.

Implemented if TRCIDR3.NUMPROC is greater than zero.

TRCSTATR0x00CIdle status bit
TRCCONFIGR0x010

Controls the tracing options

This register must always be programmed as part of trace unit initialization.

Might ignore writes when the trace unit is enabled or not idle.

TRCEVENTCTL0R0x20

Controls the tracing of arbitrary events.

If the selected event occurs a trace element is generated in the trace stream according to the settings in TRCEVENTCTL1R.DATAEN and TRCEVENTCTL1R.INSTEN.

TRCEVENTCTL1R0x24

Controls the behavior of the events that TRCEVENTCTL0R selects.

This register must always be programmed as part of trace unit initialization.

Might ignore writes when the trace unit is enabled or not idle.

TRCSTALLCTLR0x2C

Enables trace unit functionality that prevents trace unit buffer overflows.

Might ignore writes when the trace unit is enabled or not idle.

Must be programmed if TRCIDR3.STALLCTL == 1.

TRCTSCTLR0x30

Controls the insertion of global timestamps in the trace streams.

When the selected event is triggered, the trace unit inserts a global timestamp into the trace streams.

Might ignore writes when the trace unit is enabled or not idle.

Must be programmed if TRCCONFIGR.TS == 1.

TRCSYNCPR0x34

Controls how often trace synchronization requests occur.

Might ignore writes when the trace unit is enabled or not idle.

If writes are permitted then the register must be programmed.

TRCCCCTLR0x38

Sets the threshold value for cycle counting.

Might ignore writes when the trace unit is enabled or not idle.

Must be programmed if TRCCONFIGR.CCI==1.

TRCBBCTLR0x3C

Controls which regions in the memory map are enabled to use branch broadcasting.

Might ignore writes when the trace unit is enabled or not idle.

Must be programmed if TRCCONFIGR.BB == 1.

TRCTRACEIDR0x40

Sets the trace ID for instruction trace. If data trace is enabled then it also sets the trace ID for data trace, to (trace ID for instruction trace) + 1.

This register must always be programmed as part of trace unit initialization.

Might ignore writes when the trace unit is enabled or not idle.

TRCQCTLR0x44

Controls when Q elements are enabled.

Might ignore writes when the trace unit is enabled or not idle.

This register must be programmed if it is implemented and TRCCONFIGR.QE is set to any value other than 0b00.

TRCVICTLR0x080

Controls instruction trace filtering.

Might ignore writes when the trace unit is enabled or not idle.

Only returns stable data when TRCSTATR.PMSTABLE == 1.

Must be programmed, particularly to set the value of the SSSTATUS bit, which sets the state of the start/stop logic.

TRCVIIECTLR0x084

ViewInst exclude control.

Might ignore writes when the trace unit is enabled or not idle.

This register must be programmed when one or more address comparators are implemented.

TRCVISSCTLR0x088

Use this to set, or read, the single address comparators that control the ViewInst start/stop logic. The start/stop logic is active for an instruction which causes a start and remains active up to and including an instruction which causes a stop, and then the start/stop logic becomes inactive.

Might ignore writes when the trace unit is enabled or not idle.

If implemented then this register must be programmed.

TRCVIPCSSCTLR0x08C

Use this to set, or read, which PE comparator inputs can control the ViewInst start/stop logic.

Might ignore writes when the trace unit is enabled or not idle.

If implemented then this register must be programmed.

TRCVDCTLR0x0A0

Controls data trace filtering.

Might ignore writes when the trace unit is enabled or not idle.

This register must be programmed when data tracing is enabled, that is, when either TRCCONFIGR.DA == 1 or TRCCONFIGR.DV == 1.

TRCVDSACCTLR0x0A4

ViewData include / exclude control.

Might ignore writes when the trace unit is enabled or not idle.

This register must be programmed when one or more address comparators are implemented.

TRCVDARCCTLR0x0A8

ViewData include / exclude control.

Might ignore writes when the trace unit is enabled or not idle.

This register must be programmed when one or more address comparators are implemented.

TRCSEQEVR[n]0x100

Moves the sequencer state according to programmed events.

Might ignore writes when the trace unit is enabled or not idle.

When the sequencer is used, all sequencer state transitions must be programmed with a valid event.

TRCSEQRSTEVR0x118

Moves the sequencer to state 0 when a programmed event occurs.

Might ignore writes when the trace unit is enabled or not idle.

When the sequencer is used, all sequencer state transitions must be programmed with a valid event.

TRCSEQSTR0x11C

Use this to set, or read, the sequencer state.

Might ignore writes when the trace unit is enabled or not idle.

Only returns stable data when TRCSTATR.PMSTABLE == 1.

When the sequencer is used, all sequencer state transitions must be programmed with a valid event.

TRCEXTINSELR0x120

Use this to set, or read, which external inputs are resources to the trace unit.

Might ignore writes when the trace unit is enabled or not idle.

Only returns stable data when TRCSTATR.PMSTABLE == 1.

When the sequencer is used, all sequencer state transitions must be programmed with a valid event.

TRCCNTRLDVR[n]0x140

This sets or returns the reload count value for counter n.

Might ignore writes when the trace unit is enabled or not idle.

TRCCNTCTLR[n]0x150

Controls the operation of counter n.

Might ignore writes when the trace unit is enabled or not idle.

TRCCNTVR[n]0x160

This sets or returns the value of counter n.

The count value is only stable when TRCSTATR.PMSTABLE == 1.

If software uses counter n then it must write to this register to set the initial counter value.

Might ignore writes when the trace unit is enabled or not idle.

TRCRSCTLR[n]0x200

Controls the selection of the resources in the trace unit.

Might ignore writes when the trace unit is enabled or not idle.

If software selects a non-implemented resource then CONSTRAINED UNPREDICTABLE behavior of the resource selector occurs, so the resource selector might fire unexpectedly or might not fire. Reads of the TRCRSCTLRn might return UNKNOWN.

TRCSSCCR00x280Controls the single-shot comparator.
TRCSSCSR00x2A0Indicates the status of the single-shot comparators. TRCSSCSR0 is sensitive toinstruction addresses.
TRCSSPCICR00x2C0Selects the processor comparator inputs for Single-shot control.
TRCPDCR0x310Controls the single-shot comparator.
TRCPDSR0x314Indicates the power down status of the ETM.
TRCITATBIDR0xEE4Sets the state of output pins.
TRCITIATBINR0xEF4Reads the state of the input pins.
TRCITIATBOUTR0xEFCSets the state of the output pins.
TRCITCTRL0xF00Enables topology detection or integration testing, by putting ETM-M33 into integration mode.
TRCCLAIMSET0xFA0Sets bits in the claim tag and determines the number of claim tag bits implemented.
TRCCLAIMCLR0xFA4Clears bits in the claim tag and determines the current value of the claim tag.
TRCAUTHSTATUS0xFB8Indicates the current level of tracing permitted by the system
TRCDEVARCH0xFBCThe TRCDEVARCH identifies ETM-M33 as an ETMv4.2 component
TRCDEVTYPE0xFCCControls the single-shot comparator.
TRCPIDR[n]0xFD0Coresight peripheral identification registers.
TRCCIDR[n]0xFF0Coresight component identification registers.

TRCPRGCTLR

Address offset: 0x004

Enables the trace unit.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWENTrace unit enable bit
Disabled0The trace unit is disabled. All trace resources are inactive and no trace is generated.
Enabled1The trace unit is enabled.

TRCPROCSELR

Address offset: 0x008

Controls which PE to trace.

Might ignore writes when the trace unit is enabled or not idle.

Before writing to this register, ensure that TRCSTATR.IDLE == 1 so that the trace unit can synchronize with the chosen PE.

Implemented if TRCIDR3.NUMPROC is greater than zero.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPROCSELPE select bits that select the PE to trace.

TRCSTATR

Address offset: 0x00C

Idle status bit

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWIDLETrace unit enable bit
NotIdle0The trace unit is not idle.
Idle1The trace unit is idle.
BRWPMSTABLEProgrammers' model stable bit
NotStable0The programmers' model is not stable.
Stable1The programmers' model is stable.

TRCCONFIGR

Address offset: 0x010

Controls the tracing options

This register must always be programmed as part of trace unit initialization.

Might ignore writes when the trace unit is enabled or not idle.

Bit number313029282726252423222120191817161514131211109876543210
IDMLKJJIHGGGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWLOADASP0INSTInstruction P0 load field. This field controls whether load instructions are traced as P0 instructions.
No0Do not trace load instructions as P0 instructions.
Yes1Trace load instructions as P0 instructions.
BRWSTOREASP0INSTInstruction P0 field. This field controls whether store instructions are traced as P0 instructions.
No0Do not trace store instructions as P0 instructions.
Yes1Trace store instructions as P0 instructions.
CRWBBBranch broadcast mode bit.
Disabled0Branch broadcast mode is disabled.
Enabled1Branch broadcast mode is enabled.
DRWCCICycle counting instruction trace bit.
Disabled0Cycle counting in the instruction trace is disabled.
Enabled1Cycle counting in the instruction trace is enabled.
ERWCIDContext ID tracing bit.
Disabled0Context ID tracing is disabled.
Enabled1Context ID tracing is enabled.
FRWVMIDVirtual context identifier tracing bit.
Disabled0Virtual context identifier tracing is disabled.
Enabled1Virtual context identifier tracing is enabled.
GRWCONDConditional instruction tracing bit.
Disabled0Conditional instruction tracing is disabled.
LoadOnly1Conditional load instructions are traced.
StoreOnly2Conditional store instructions are traced.
LoadAndStore3Conditional load and store instructions are traced.
All7All conditional instructions are traced.
HRWTSGlobal timestamp tracing bit.
Disabled0Global timestamp tracing is disabled.
Enabled1Global timestamp tracing is enabled.
IRWRSReturn stack enable bit.
Disabled0Return stack is disabled.
Enabled1Return stack is enabled.
JRWQEQ element enable field.
Disabled0Q elements are disabled.
OnlyWithoutInstCounts1Q elements with instruction counts are enabled. Q elements without instruction counts are disabled.
Enabled3Q elements with and without instruction counts are enabled.
KRWVMIDOPTControl bit to select the Virtual context identifier value used by the trace unit, both for trace generation and in the Virtual context identifier comparators.
VTTBR_EL20VTTBR_EL2.VMID is used. If the trace unit supports a Virtual context identifier larger than the VTTBR_EL2.VMID, the upper unused bits are always zero. If the trace unit supports a Virtual context identifier larger than 8 bits and if the VTCR_EL2.VS bit forces use of an 8-bit Virtual context identifier, bits [15:8] of the trace unit Virtual context identifier are always zero.
CONTEXTIDR_EL21CONTEXTIDR_EL2 is used.
LRWDAData address tracing bit.
Disabled0Data address tracing is disabled.
Enabled1Data address tracing is enabled.
MRWDVData value tracing bit.
Disabled0Data value tracing is disabled.
Enabled1Data value tracing is enabled.

TRCEVENTCTL0R

Address offset: 0x20

Controls the tracing of arbitrary events.

If the selected event occurs a trace element is generated in the trace stream according to the settings in TRCEVENTCTL1R.DATAEN and TRCEVENTCTL1R.INSTEN.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENT[0:255]Select which event should generate trace elements.

TRCEVENTCTL1R

Address offset: 0x24

Controls the behavior of the events that TRCEVENTCTL0R selects.

This register must always be programmed as part of trace unit initialization.

Might ignore writes when the trace unit is enabled or not idle.

Bit number313029282726252423222120191817161514131211109876543210
IDGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-DRWINSTEN[i] (i=0..3)Instruction event enable field.
Disabled0The trace unit does not generate an Event element.
Enabled1The trace unit generates an Event element for event i, in the instruction trace stream.
ERWDATAENData event enable bit.
Disabled0The trace unit does not generate an Event element if event 0 occurs.
Enabled1The trace unit generates an Event element in the data trace stream if event 0 occurs.
FRWATBAMBA Trace Bus (ATB) trigger enable bit.
Disabled0ATB trigger is disabled.
Enabled1ATB trigger is enabled. If a CoreSight ATB interface is implemented then when event 0 occurs the trace unit generates an ATB event.
GRWLPOVERRIDELow-power state behavior override bit. Controls how a trace unit behaves in low-power state.
Disabled0Trace unit low-power state behavior is not affected. That is, the trace unit is enabled to enter low-power state.
Enabled1Trace unit low-power state behavior is overridden. That is, entry to a low-power state does not affect the trace unit resources or trace generation.

TRCSTALLCTLR

Address offset: 0x2C

Enables trace unit functionality that prevents trace unit buffer overflows.

Might ignore writes when the trace unit is enabled or not idle.

Must be programmed if TRCIDR3.STALLCTL == 1.

Bit number313029282726252423222120191817161514131211109876543210
IDGFEDCBAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWLEVEL[15:0]

Threshold level field.

If LEVEL is nonzero then a trace unit might suppress the generation of:

Global timestamps in the instruction trace stream and the data trace stream.

Cycle counting in the instruction trace stream, although the cumulative cycle count remains correct.

Min0Zero invasion. This setting has a greater risk of a FIFO overflow
Max15Maximum invasion occurs but there is less risk of a FIFO overflow.
BRWISTALLInstruction stall bit. Controls if a trace unit can stall the PE when the instruction trace buffer space is less than LEVEL.
Disabled0The trace unit must not stall the PE.
Enabled1The trace unit can stall the PE.
CRWDSTALLData stall bit. Controls if a trace unit can stall the PE when the data trace buffer space is less than LEVEL.
Disabled0The trace unit must not stall the PE.
Enabled1The trace unit can stall the PE.
DRWINSTPRIORITYPrioritize instruction trace bit. Controls if a trace unit can prioritize instruction trace when the instruction trace buffer space is less than LEVEL.
Disabled0The trace unit must not prioritize instruction trace.
Enabled1The trace unit can prioritize instruction trace. A trace unit might prioritize instruction trace by preventing output of data trace, or other means which ensure that the instruction trace has a higher priority than the data trace.
ERWDATADISCARDLOADData discard field. Controls if a trace unit can discard data trace elements on a load when the data trace buffer space is less than LEVEL.
Disabled0The trace unit must not discard any data trace elements.
Enabled1The trace unit can discard P1 and P2 elements associated with data loads.
FRWDATADISCARDSTOREData discard field. Controls if a trace unit can discard data trace elements on a store when the data trace buffer space is less than LEVEL.
Disabled0The trace unit must not discard any data trace elements.
Enabled1The trace unit can discard P1 and P2 elements associated with data stores.
GRWNOOVERFLOWTrace overflow prevention bit.
Disabled0Trace overflow prevention is disabled.
Enabled1Trace overflow prevention is enabled. This might cause a significant performance impact.

TRCTSCTLR

Address offset: 0x30

Controls the insertion of global timestamps in the trace streams.

When the selected event is triggered, the trace unit inserts a global timestamp into the trace streams.

Might ignore writes when the trace unit is enabled or not idle.

Must be programmed if TRCCONFIGR.TS == 1.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENT[0:255]Select which event should generate time stamps.

TRCSYNCPR

Address offset: 0x34

Controls how often trace synchronization requests occur.

Might ignore writes when the trace unit is enabled or not idle.

If writes are permitted then the register must be programmed.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPERIOD[31:0]Controls how many bytes of trace, the sum of instruction and data, that a trace unit can generate before a trace synchronization request occurs. The number of bytes is always a power of two, calculated by 2^PERIOD
Disabled0Trace synchronization requests are disabled. This setting does not disable other types of trace synchronization request.

TRCCCCTLR

Address offset: 0x38

Sets the threshold value for cycle counting.

Might ignore writes when the trace unit is enabled or not idle.

Must be programmed if TRCCONFIGR.CCI==1.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWTHRESHOLD[2047:0]Sets the threshold value for instruction trace cycle counting.

TRCBBCTLR

Address offset: 0x3C

Controls which regions in the memory map are enabled to use branch broadcasting.

Might ignore writes when the trace unit is enabled or not idle.

Must be programmed if TRCCONFIGR.BB == 1.

Bit number313029282726252423222120191817161514131211109876543210
IDHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWRANGE[i] (i=0..7)Address range field. Selects which address range comparator pairs are in use with branch broadcasting. Each field represents an address range comparator pair, so field[i] controls the selection of address range comparator pair i.
Disabled0The address range that address range comparator pair i defines, is not selected.
Enabled1The address range that address range comparator pair n defines, is selected.

TRCTRACEIDR

Address offset: 0x40

Sets the trace ID for instruction trace. If data trace is enabled then it also sets the trace ID for data trace, to (trace ID for instruction trace) + 1.

This register must always be programmed as part of trace unit initialization.

Might ignore writes when the trace unit is enabled or not idle.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWTRACEID

Trace ID field. Sets the trace ID value for instruction trace.

Bit[0] must be zero if data trace is enabled. If data trace is enabled then a trace unit sets the trace ID for data trace, to TRACEID+1.

TRCQCTLR

Address offset: 0x44

Controls when Q elements are enabled.

Might ignore writes when the trace unit is enabled or not idle.

This register must be programmed if it is implemented and TRCCONFIGR.QE is set to any value other than 0b00.

Bit number313029282726252423222120191817161514131211109876543210
IDIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWRANGE[i] (i=0..7)Specifies the address range comparators to be used for controlling Q elements.
Disabled0Address range comparator i is disabled.
Enabled1Address range comparator i is selected for use.
IRWMODESelects whether the address range comparators selected by the RANGE field indicate address ranges where the trace unit is permitted to generate Q elements or address ranges where the trace unit is not permitted to generate Q elements:
Exclude0Exclude mode. The address range comparators selected by the RANGE field indicate address ranges where the trace unit cannot generate Q elements. If no ranges are selected, Q elements are permitted across the entire memory map.
Include1Include mode. The address range comparators selected by the RANGE field indicate address ranges where the trace unit can generate Q elements. If all the implemented bits in RANGE are set to 0 then Q elements are disabled.

TRCVICTLR

Address offset: 0x080

Controls instruction trace filtering.

Might ignore writes when the trace unit is enabled or not idle.

Only returns stable data when TRCSTATR.PMSTABLE == 1.

Must be programmed, particularly to set the value of the SSSTATUS bit, which sets the state of the start/stop logic.

Bit number313029282726252423222120191817161514131211109876543210
IDLKJIHGFEDCBAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENT_SELSelect which resource number should be filtered.
Disabled0This event is not filtered.
Enabled1This event is filtered.
BRWSSSTATUSWhen TRCIDR4.NUMACPAIRS > 0 or TRCIDR4.NUMPC > 0, this bit returns the status of the start/stop logic.
Stopped0The start/stop logic is in the stopped state.
Started1The start/stop logic is in the started state.
CRWTRCRESETControls whether a trace unit must trace a Reset exception.
Disabled0The trace unit does not trace a Reset exception unless it traces the exception or instruction immediately prior to the Reset exception.
Enabled1The trace unit always traces a Reset exception.
DRWTRCERRWhen TRCIDR3.TRCERR==1, this bit controls whether a trace unit must trace a System error exception.
Disabled0The trace unit does not trace a System error exception unless it traces the exception or instruction immediately prior to the System error exception.
Enabled1The trace unit always traces a System error exception, regardless of the value of ViewInst.
E-HRWEXLEVEL[i]_S (i=0..3)In Secure state, each bit controls whether instruction tracing is enabled for the corresponding Exception level i.
Disabled1The trace unit does not generate instruction trace, in Secure state, for Exception level i.
Enabled0The trace unit generates instruction trace, in Secure state, for Exception level i.
I-LRWEXLEVEL[i]_NS (i=0..3)In Non-secure state, each bit controls whether instruction tracing is enabled for the corresponding Exception level i.
Disabled1The trace unit does not generate instruction trace, in Non-secure state, for Exception level i.
Enabled0The trace unit generates instruction trace, in Non-secure state, for Exception level i.

TRCVIIECTLR

Address offset: 0x084

ViewInst exclude control.

Might ignore writes when the trace unit is enabled or not idle.

This register must be programmed when one or more address comparators are implemented.

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWINCLUDE[i] (i=0..7)Include range field. Selects which address range comparator pairs are in use with ViewInst include control.
Disabled0The address range that address range comparator pair i defines, is not selected for ViewInst include control.
Enabled1The address range that address range comparator pair i defines, is selected for ViewInst include control.
I-PRWEXCLUDE[i] (i=0..7)Exclude range field. Selects which address range comparator pairs are in use with ViewInst exclude control.
Disabled0The address range that address range comparator pair i defines, is not selected for ViewInst exclude control.
Enabled1The address range that address range comparator pair i defines, is selected for ViewInst exclude control.

TRCVISSCTLR

Address offset: 0x088

Use this to set, or read, the single address comparators that control the ViewInst start/stop logic. The start/stop logic is active for an instruction which causes a start and remains active up to and including an instruction which causes a stop, and then the start/stop logic becomes inactive.

Might ignore writes when the trace unit is enabled or not idle.

If implemented then this register must be programmed.

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWSTART[i] (i=0..7)Selects which single address comparators are in use with ViewInst start/stop control, for the purpose of starting trace.
Disabled0The single address comparator i, is not selected as a start resource.
Enabled1The single address comparator i, is selected as a start resource.
I-PRWSTOP[i] (i=0..7)Selects which single address comparators are in use with ViewInst start/stop control, for the purpose of stopping trace
Disabled0The single address comparator i, is not selected as a stop resource.
Enabled1The single address comparator i, is selected as a stop resource.

TRCVIPCSSCTLR

Address offset: 0x08C

Use this to set, or read, which PE comparator inputs can control the ViewInst start/stop logic.

Might ignore writes when the trace unit is enabled or not idle.

If implemented then this register must be programmed.

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWSTART[i] (i=0..7)Selects which PE comparator inputs are in use with ViewInst start/stop control, for the purpose of starting trace
Disabled0The single PE comparator input i, is not selected as a start resource.
Enabled1The single PE comparator input i, is selected as a start resource.
I-PRWSTOP[i] (i=0..7)Selects which PE comparator inputs are in use with ViewInst start/stop control, for the purpose of stopping trace.
Disabled0The single PE comparator input i, is not selected as a stop resource.
Enabled1The single PE comparator input i, is selected as a stop resource.

TRCVDCTLR

Address offset: 0x0A0

Controls data trace filtering.

Might ignore writes when the trace unit is enabled or not idle.

This register must be programmed when data tracing is enabled, that is, when either TRCCONFIGR.DA == 1 or TRCCONFIGR.DV == 1.

Bit number313029282726252423222120191817161514131211109876543210
IDLKJIIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWEVENT[i] (i=0..7)Event unit enable bit.
Disabled0The trace event is not selected for trace filtering.
Enabled1The trace event is selected for trace filtering.
IRWSPRELControls whether a trace unit traces data for transfers that are relative to the Stack Pointer (SP).
Enabled0The trace unit does not affect the tracing of SP-relative transfers.
DataOnly2The trace unit does not trace the address portion of SP-relative transfers. If data value tracing is enabled then the trace unit generates a P1 data address element.
Disabled3The trace unit does not trace the address or value portions of SP-relative transfers.
JRWPCRELControls whether a trace unit traces data for transfers that are relative to the Program Counter (PC).
Enabled0The trace unit does not affect the tracing of PC-relative transfers.
Disabled1The trace unit does not trace the address or value portions of PC-relative transfers.
KRWTBIControls which information a trace unit populates in bits[63:56] of the data address.
SignExtend0The trace unit assigns bits[63:56] to have the same value as bit[55] of the data address, that is, it sign-extends the value.
Copy1The trace unit assigns bits[63:56] to have the same value as bits[63:56] of the data address.
LRWTRCEXDATAControls the tracing of data transfers for exceptions and exception returns on Armv6-M, Armv7-M, and Armv8-M PEs.
Disabled0Exception and exception return data transfers are not traced.
Enabled1Exception and exception return data transfers are traced if the other aspects of ViewData indicate that the data transfers must be traced.

TRCVDSACCTLR

Address offset: 0x0A4

ViewData include / exclude control.

Might ignore writes when the trace unit is enabled or not idle.

This register must be programmed when one or more address comparators are implemented.

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWINCLUDE[i] (i=0..7)Selects which single address comparators are in use with ViewData include control.
Disabled0The single address comparator i, is not selected for ViewData include control.
Enabled1The single address comparator i, is selected for ViewData include control.
I-PRWEXCLUDE[i] (i=0..7)Selects which single address comparators are in use with ViewData exclude control.
Disabled0The single address comparator i, is not selected for ViewData exclude control.
Enabled1The single address comparator i, s selected for ViewData exclude control.

TRCVDARCCTLR

Address offset: 0x0A8

ViewData include / exclude control.

Might ignore writes when the trace unit is enabled or not idle.

This register must be programmed when one or more address comparators are implemented.

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWINCLUDE[i] (i=0..7)Include range field. Selects which address range comparator pairs are in use with ViewData include control.
Disabled0The address range that address range comparator i defines, is not selected for ViewData include control.
Enabled1The address range that address range comparator i defines, is selected for ViewData include control.
I-PRWEXCLUDE[i] (i=0..7)Exclude range field. Selects which address range comparator pairs are in use with ViewData exclude control.
Disabled0The address range that address range comparator i defines, is not selected for ViewData exclude control.
Enabled1The address range that address range comparator i defines, s selected for ViewData exclude control.

TRCSEQEVR[n]

Address offset: 0x100 + (n × 0x4)

Moves the sequencer state according to programmed events.

Might ignore writes when the trace unit is enabled or not idle.

When the sequencer is used, all sequencer state transitions must be programmed with a valid event.

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWF[i] (i=0..7)Forward field.
Disabled0The trace event does not affect the sequencer.
Enabled1When the event occurs then the sequencer state moves from state n to state n+1.
I-PRWB[i] (i=0..7)Backward field.
Disabled0The trace event does not affect the sequencer.
Enabled1When the event occurs then the sequencer state moves from state n+1 to state n.

TRCSEQRSTEVR

Address offset: 0x118

Moves the sequencer to state 0 when a programmed event occurs.

Might ignore writes when the trace unit is enabled or not idle.

When the sequencer is used, all sequencer state transitions must be programmed with a valid event.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENT[0:255]Select which event should reset the sequencer.

TRCSEQSTR

Address offset: 0x11C

Use this to set, or read, the sequencer state.

Might ignore writes when the trace unit is enabled or not idle.

Only returns stable data when TRCSTATR.PMSTABLE == 1.

When the sequencer is used, all sequencer state transitions must be programmed with a valid event.

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWSTATESets or returns the state of the sequencer.
State00The sequencer is in state 0.
State11The sequencer is in state 1.
State22The sequencer is in state 2.
State33The sequencer is in state 3.

TRCEXTINSELR

Address offset: 0x120

Use this to set, or read, which external inputs are resources to the trace unit.

Might ignore writes when the trace unit is enabled or not idle.

Only returns stable data when TRCSTATR.PMSTABLE == 1.

When the sequencer is used, all sequencer state transitions must be programmed with a valid event.

Bit number313029282726252423222120191817161514131211109876543210
IDDDDDDDDDCCCCCCCCBBBBBBBBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-DRWSEL[i] (i=0..3)[0:255]Each field in this collection selects an external input as a resource for the trace unit.

TRCCNTRLDVR[n]

Address offset: 0x140 + (n × 0x4)

This sets or returns the reload count value for counter n.

Might ignore writes when the trace unit is enabled or not idle.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALUE[0:65535]Contains the reload value for counter n. When a reload event occurs for counter n then the trace unit copies the VALUEn field into counter n.

TRCCNTCTLR[n]

Address offset: 0x150 + (n × 0x4)

Controls the operation of counter n.

Might ignore writes when the trace unit is enabled or not idle.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBBBBBBBBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCNTEVENT[0:255]Selects an event, that when it occurs causes counter n to decrement.
BRWRLDEVENT[0:255]Selects an event, that when it occurs causes a reload event for counter n.
CRWRLDSELFControls whether a reload event occurs for counter n, when counter n reaches zero.
Disabled0The counter is in Normal mode.
Enabled1The counter is in Self-reload mode.
DRWCNTCHAINFor TRCCNTCTLR3 and TRCCNTCTLR1, this bit controls whether counter n decrements when a reload event occurs for counter n-1.
Disabled0Counter n does not decrement when a reload event for counter n-1 occurs.
Enabled1Counter n decrements when a reload event for counter n-1 occurs. This concatenates counter n and counter n-1, to provide a larger count value.

TRCCNTVR[n]

Address offset: 0x160 + (n × 0x4)

This sets or returns the value of counter n.

The count value is only stable when TRCSTATR.PMSTABLE == 1.

If software uses counter n then it must write to this register to set the initial counter value.

Might ignore writes when the trace unit is enabled or not idle.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALUE[0:65535]Contains the count value of counter n.

TRCRSCTLR[n]

Address offset: 0x200 + (n × 0x4)

Controls the selection of the resources in the trace unit.

Might ignore writes when the trace unit is enabled or not idle.

If software selects a non-implemented resource then CONSTRAINED UNPREDICTABLE behavior of the resource selector occurs, so the resource selector might fire unexpectedly or might not fire. Reads of the TRCRSCTLRn might return UNKNOWN.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWENTrace unit enable bit
Disabled0The trace unit is disabled. All trace resources are inactive and no trace is generated.
Enabled1The trace unit is enabled.

TRCSSCCR0

Address offset: 0x280

Controls the single-shot comparator.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWRSTEnables the single-shot comparator resource to be reset when it occurs, to enable another comparator match to be detected
Disabled0Multiple matches can not be detected.
Enabled1Multiple matches can occur.

TRCSSCSR0

Address offset: 0x2A0

Indicates the status of the single-shot comparators. TRCSSCSR0 is sensitive toinstruction addresses.

Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWINSTInstruction address comparator support
False0Single-shot instruction address comparisons not supported.
True1Single-shot instruction address comparisons supported.
BRWDAData address comparator support
False0Data address comparisons not supported.
True1Data address comparisons supported.
CRWDVData value comparator support
False0Data value comparisons not supported.
True1Data value comparisons supported.
DRWPCProcess counter value comparator support
False0Process counter value comparisons not supported.
True1Process counter value comparisons supported.
ERWSTATUSSingle-shot status. This indicates whether any of the selected comparators have matched.
NoMatch0Match has not occurred.
Match1Match has occurred at least once.

TRCSSPCICR0

Address offset: 0x2C0

Selects the processor comparator inputs for Single-shot control.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-DRWPC[i] (i=0..3)Selects processor comparator i inputs for Single-shot control
Disabled0Processor comparator i is not selected for Single-shot control.
Enabled1Processor comparator i is selected for Single-shot control.

TRCPDCR

Address offset: 0x310

Controls the single-shot comparator.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPUPower up request, to request that power to ETM and access to the trace registers is maintained.
Disabled0Power not requested.
Enabled1Power requested.

TRCPDSR

Address offset: 0x314

Indicates the power down status of the ETM.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPOWERIndicates ETM is powered up
NotPoweredUp0ETM is not powered up. All registers are not accessible.
PoweredUp1ETM is powered up. All registers are accessible.
BRWSTICKYPD

Sticky power down state.

This bit is set to 1 when power to the ETM registers is removed, to indicate that programming state has been lost. It is cleared after a read of the TRCPDSR

NotPoweredDown0Trace register power has not been removed since the TRCPDSR was last read.
PoweredDown1Trace register power has been removed since the TRCPDSR was last read.

TRCITATBIDR

Address offset: 0xEE4

Sets the state of output pins.

Bit number313029282726252423222120191817161514131211109876543210
IDGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-GRWID[i] (i=0..6)Drives the ATIDMI[i] output pin.

TRCITIATBINR

Address offset: 0xEF4

Reads the state of the input pins.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWATVALIDReturns the value of the ATVALIDMI input pin.
BRWAFREADYReturns the value of the AFREADYMI input pin.

TRCITIATBOUTR

Address offset: 0xEFC

Sets the state of the output pins.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWATVALIDDrives the ATVALIDMI output pin.
BRWAFREADYDrives the AFREADYMI output pin.

TRCITCTRL

Address offset: 0xF00

Enables topology detection or integration testing, by putting ETM-M33 into integration mode.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWIMEIntegration mode enable
Disabled0ETM is not in integration mode.
Enabled1ETM is in integration mode.

TRCCLAIMSET

Address offset: 0xFA0

Sets bits in the claim tag and determines the number of claim tag bits implemented.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-DRWSET[i] (i=0..3)Claim tag set register
NotSet0Claim tag i is not set.
Set1Claim tag i is set.
Claim1Set claim tag i.

TRCCLAIMCLR

Address offset: 0xFA4

Clears bits in the claim tag and determines the current value of the claim tag.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-DRWCLR[i] (i=0..3)Claim tag clear register
NotSet0Claim tag i is not set.
Set1Claim tag i is set.
Clear1Clear claim tag i.

TRCAUTHSTATUS

Address offset: 0xFB8

Indicates the current level of tracing permitted by the system

Bit number313029282726252423222120191817161514131211109876543210
IDDDCCBBAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWNSIDNon-secure Invasive Debug
NotImplemented0The feature is not implemented.
Implemented1The feature is implemented.
BRWNSNIDNon-secure Non-Invasive Debug
NotImplemented0The feature is not implemented.
Implemented1The feature is implemented.
CRWSIDSecure Invasive Debug
NotImplemented0The feature is not implemented.
Implemented1The feature is implemented.
DRWSNIDSecure Non-Invasive Debug
NotImplemented0The feature is not implemented.
Implemented1The feature is implemented.

TRCDEVARCH

Address offset: 0xFBC

The TRCDEVARCH identifies ETM-M33 as an ETMv4.2 component

Bit number313029282726252423222120191817161514131211109876543210
IDDDDDDDDDDDDCBBBBAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARARCHIDArchitecture ID
ETMv420x4A13Component is an ETMv4 component
BRREVISIONArchitecture revision
v22Component is part of architecture 4.2
CRPRESENTThis register is implemented
Absent0The register is not implemented.
Present1The register is implemented.
DRARCHITECTDefines the architect of the component
Arm0x23BThis peripheral was architected by Arm.

TRCDEVTYPE

Address offset: 0xFCC

Controls the single-shot comparator.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARMAJORThe main type of the component
TraceSource3Peripheral is a trace source.
BRSUBThe sub-type of the component
ProcessorTrace1Peripheral is a processor trace source.

TRCPIDR[n]

Address offset: 0xFD0 + (n × 0x4)

Coresight peripheral identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

TRCCIDR[n]

Address offset: 0xFF0 + (n × 0x4)

Coresight component identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription