Trace

The nRF9151 supports ETM and ITM trace.

Available trace sinks:

Trace data from the ETM and the ITM can be sent to an internal embedded trace buffer (ETB) or an external debugger via a 4-bit wide parallel trace port (TPIU), see TRACEDATA[0] through TRACEDATA[3], and TRACECLK in Debug and trace overview.

The following diagram shows the trace components architecture of the device's embedded Arm® CoreSight™ subsystem.

Figure 1. Trace components architecture
Trace components architecture

The standard Arm® components are documented in Arm CoreSight SoC-400 Technical Reference Manual, revision r3p2. For details on how to use the trace capabilities, please read the debug documentation of your IDE.

TPIU's trace pins are multiplexed with GPIOs, see Pin assignments for more information.

Note: To configure the trace data delivery to the device trace port, use the MDK system start-up file included as of MDK version 8.26.0.

Trace speed is configured in the TRACEPORTSPEED (Retained) register. The speed of the trace pins depends on the DRIVE setting of the GPIOs that the trace pins are multiplexed with. See GPIO — General purpose input/output for information about how to set drive settings. Only S0S1 and H0H1 drives are suitable for debugging. S0S1 is the default DRIVE at reset. If parallel or serial trace port signals are not fast enough in the debugging conditions, all GPIOs in use for tracing should be set to high drive (H0H1). The user shall make sure that DRIVE setting for these GPIOs is not overwritten by software during the debugging session.

ATB Funnel

The ARM® ATB Funnel funnels trace bus mesages from several sources into one output bus.

This document only provides a register-level description of this ARM component. See the ARM® CoreSight™ SoC-400 Technical Reference Manual for more details

Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
ATBFUNNEL10xE005A000HFNSNANoATBFUNNEL unit 1
ATBFUNNEL20xE005B000HFNSNANoATBFUNNEL unit 2

Register overview

RegisterOffsetTZDescription
CTRLREG0x000The IDFILTER0 register enables the programming of ID filtering for master port 0.
PRIORITYCTRLREG0x004The Priority_Ctrl_Reg register defines the order in which inputs are selected. Each 3-bit field is a priority for each particular slave interface.
ITATBDATA00xEECThe ITATBDATA0 register performs different functions depending on whether the access is a read or a write.
ITATBCTR20xEF0The ITATBCTR2 register performs different functions depending on whether the access is a read or a write.
ITATBCTR10xEF4The ITATBCTR1 register performs different functions depending on whether the access is a read or a write.
ITATBCTR00xEF8The ITATBCTR0 register performs different functions depending on whether the access is a read or a write.
ITCTRL0xF00The ITCTRL register enables the component to switch from a functional mode, which is the default behavior, to integration mode where the inputs and outputs of the component can be directly controlled for the purposes of integration testing and topology detection.
CLAIMSET0xFA0Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMSET register sets bits in the claim tag, and determines the number of claim bits implemented.
CLAIMCLR0xFA4Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMCLR register sets the bits in the claim tag to 0 and determines the current value of the claim tag.
LAR0xFB0This is used to enable write access to device registers.
LSR0xFB4This indicates the status of the lock control mechanism. This lock prevents accidental writes by code under debug. Accesses to the extended stimulus port registers are not affected by the lock mechanism. This register must always be present although there might not be any lock access control mechanism. The lock mechanism, where present and locked, must block write accesses to any control register, except the Lock Access Register. For most components this covers all registers except for the Lock Access Register.
AUTHSTATUS0xFB8Indicates the current level of tracing permitted by the system
DEVID0xFC8Indicates the capabilities of the component.
DEVTYPE0xFCCThe DEVTYPE register provides a debugger with information about the component when the Part Number field is not recognized. The debugger can then report this information.
PIDR40xFD0Coresight peripheral identification registers.
PIDR[0]0xFE0Coresight peripheral identification registers.
PIDR[1]0xFE4Coresight peripheral identification registers.
PIDR[2]0xFE8Coresight peripheral identification registers.
PIDR[3]0xFECCoresight peripheral identification registers.
CIDR[0]0xFF0Coresight component identification registers.
CIDR[1]0xFF4Coresight component identification registers.
CIDR[2]0xFF8Coresight component identification registers.
CIDR[3]0xFFCCoresight component identification registers.

CTRLREG

Address offset: 0x000

The IDFILTER0 register enables the programming of ID filtering for master port 0.

Bit number313029282726252423222120191817161514131211109876543210
IDIIIIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWENS[i] (i=0..7)Enable slave port i.
Disabled0Slave port disabled. This excludes the port from the priority selection scheme.
Enabled1Slave port enabled.
IRWHT[0:14]Hold Time. The formatting scheme can become inefficient when fast switching occurs, and you can use this setting to minimize switching. When a source has nothing to transmit, then another source is selected irrespective of the minimum number of transactions. The ATB funnel holds for the minimum hold time and one additional transaction. The actual hold time is the register value plus 1. The maximum value that can be entered is 0b1110 and this equates to 15 transactions. 0b1111 is reserved.

PRIORITYCTRLREG

Address offset: 0x004

The Priority_Ctrl_Reg register defines the order in which inputs are selected. Each 3-bit field is a priority for each particular slave interface.

Bit number313029282726252423222120191817161514131211109876543210
IDHHHGGGFFFEEEDDDCCCBBBAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWPRIPORT[i] (i=0..7)[0:7]Priority value of port number i.

ITATBDATA0

Address offset: 0xEEC

The ITATBDATA0 register performs different functions depending on whether the access is a read or a write.

Bit number313029282726252423222120191817161514131211109876543210
IDQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-QRWATDATA[i] (i=0..16)A read access returns the value of a pin on atdatas_x of the enabled port. A write access writes to the corresponding atdatam pin of the enabled port.
Low0Pin is logic 0.
High1Pin is logic 1.

ITATBCTR2

Address offset: 0xEF0

The ITATBCTR2 register performs different functions depending on whether the access is a read or a write.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWATREADYA read access returns the value of atreadym. A write access outputs the data to afvalids[n], where the value of the CTRLREG at 0x000 defines n.
Low0Pin is logic 0.
High1Pin is logic 1.
BRWAFVALIDA read access returns the value of afvalidm. A write access outputs the data to atreadys[n], where the value of the CTRLREG at 0x000 defines n.
Low0Pin is logic 0.
High1Pin is logic 1.

ITATBCTR1

Address offset: 0xEF4

The ITATBCTR1 register performs different functions depending on whether the access is a read or a write.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWATVALIDM0A read returns the value of the atids[n] signals, where the value of the Control Register at 0x000 defines n. A write outputs the value to the atidm port.
Low0Pin is logic 0.
High1Pin is logic 1.

ITATBCTR0

Address offset: 0xEF8

The ITATBCTR0 register performs different functions depending on whether the access is a read or a write.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWATVALIDA read returns the value of the atvalids[n] signal, where the value of the CTRLREG at 0x000 defines n. A write outputs the value to atvalidm.
Low0Pin is logic 0.
High1Pin is logic 1.
BRWAFREADYA read returns the value of the afreadys[n] signal, where the value of the Ctrl_Reg at 0x000 defines n. A write outputs the value to afreadym.
Low0Pin is logic 0.
High1Pin is logic 1.
CRWATBYTESA read returns the value of the atbytess[n] signal, where the value of the Ctrl_Reg at 0x000 defines n. A write outputs the value to atbytesm.
Low0Pin is logic 0.
High1Pin is logic 1.

ITCTRL

Address offset: 0xF00

The ITCTRL register enables the component to switch from a functional mode, which is the default behavior, to integration mode where the inputs and outputs of the component can be directly controlled for the purposes of integration testing and topology detection.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWIMEIntegration Mode Enable.
Disabled0Integration mode disabled.
Enabled1Integration mode enabled.

CLAIMSET

Address offset: 0xFA0

Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMSET register sets bits in the claim tag, and determines the number of claim bits implemented.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-DRWBIT[i] (i=0..3)Set claim bit i and check if bit is implemented or not.
NotImplemented0Claim bit i is not implemented.
Implemented1Claim bit i is implemented.
Set1Set claim bit i.

CLAIMCLR

Address offset: 0xFA4

Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMCLR register sets the bits in the claim tag to 0 and determines the current value of the claim tag.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-DRWBIT[i] (i=0..3)Read or clear claim bit i.
Cleared0Claim bit i is not set.
Set1Claim bit i is set.
Clear1Clear claim bit i.

LAR

Address offset: 0xFB0

This is used to enable write access to device registers.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWACCESSA write of 0xC5ACCE55 enables further write access to this device. Any other write removes write access.
UnLock0xC5ACCE55Unlock register interface.

LSR

Address offset: 0xFB4

This indicates the status of the lock control mechanism. This lock prevents accidental writes by code under debug. Accesses to the extended stimulus port registers are not affected by the lock mechanism. This register must always be present although there might not be any lock access control mechanism. The lock mechanism, where present and locked, must block write accesses to any control register, except the Lock Access Register. For most components this covers all registers except for the Lock Access Register.

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPRESENTIndicates that a lock control mechanism exists for this device.
NotImplemented0No lock control mechanism exists, writes to the Lock Access Register are ignored.
Implemented1Lock control mechanism is present.
BRWLOCKEDReturns the current status of the Lock.
UnLocked0Write access is allowed to this device.
Locked1Write access to the component is blocked. All writes to control registers are ignored. Reads are permitted.
CRWTYPEIndicates if the Lock Access Register is implemented as 8-bit or 32-bit.
Bits320This component implements a 32-bit Lock Access Register.
Bits81This component implements an 8-bit Lock Access Register.

AUTHSTATUS

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.

DEVID

Address offset: 0xFC8

Indicates the capabilities of the component.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARPORTCOUNT[2:8]Indicates the number of input ports connected. 0x0 and 0x1 are illegal values.

DEVTYPE

Address offset: 0xFCC

The DEVTYPE register provides a debugger with information about the component when the Part Number field is not recognized. The debugger can then report this information.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARMAJORThe main type of the component
InputOutputDevice2Indicates that this component has ATB inputs and outputs.
BRSUBThe sub-type of the component
Replicator1This component arbitrates ATB inputs mapping to ATB outputs.

PIDR4

Address offset: 0xFD0

Coresight peripheral identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

PIDR[0]

Address offset: 0xFE0

Coresight peripheral identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

PIDR[1]

Address offset: 0xFE4

Coresight peripheral identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

PIDR[2]

Address offset: 0xFE8

Coresight peripheral identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

PIDR[3]

Address offset: 0xFEC

Coresight peripheral identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

CIDR[0]

Address offset: 0xFF0

Coresight component identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

CIDR[1]

Address offset: 0xFF4

Coresight component identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

CIDR[2]

Address offset: 0xFF8

Coresight component identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

CIDR[3]

Address offset: 0xFFC

Coresight component identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

ATB Replicator

The ARM® ATB Replicator replicates incoming trace bus mesages across its outputs.

This document only provides a register-level description of this ARM component. See the ARM® CoreSight™ SoC-400 Technical Reference Manual for more details

Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
ATBREPLICATOR0xE0058000HFNSNANoATBREPLICATOR

Register overview

RegisterOffsetTZDescription
IDFILTER00x000The IDFILTER0 register enables the programming of ID filtering for master port 0.
IDFILTER10x004The IDFILTER1 register enables the programming of ID filtering for master port 1.
ITATBCTR10xEF8The ITATBCTR1 register returns the value of the atreadym0, atreadym1, and atvalids inputs in integration mode.
ITATBCTR00xEFCThe ITATBCTR0 register controls the value of the atvalidm0, atvalidm1, and atreadys outputs in integration mode.
ITCTRL0xF00The ITCTRL register enables the component to switch from a functional mode, which is the default behavior, to integration mode where the inputs and outputs of the component can be directly controlled for the purposes of integration testing and topology detection.
CLAIMSET0xFA0Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMSET register sets bits in the claim tag, and determines the number of claim bits implemented.
CLAIMCLR0xFA4Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMCLR register sets the bits in the claim tag to 0 and determines the current value of the claim tag.
LAR0xFB0This is used to enable write access to device registers.
LSR0xFB4This indicates the status of the lock control mechanism. This lock prevents accidental writes by code under debug. Accesses to the extended stimulus port registers are not affected by the lock mechanism. This register must always be present although there might not be any lock access control mechanism. The lock mechanism, where present and locked, must block write accesses to any control register, except the Lock Access Register. For most components this covers all registers except for the Lock Access Register.
AUTHSTATUS0xFB8Indicates the current level of tracing permitted by the system
DEVID0xFC8Indicates the capabilities of the component.
DEVTYPE0xFCCThe DEVTYPE register provides a debugger with information about the component when the Part Number field is not recognized. The debugger can then report this information.
PIDR40xFD0Coresight peripheral identification registers.
PIDR[0]0xFE0Coresight peripheral identification registers.
PIDR[1]0xFE4Coresight peripheral identification registers.
PIDR[2]0xFE8Coresight peripheral identification registers.
PIDR[3]0xFECCoresight peripheral identification registers.
CIDR[0]0xFF0Coresight component identification registers.
CIDR[1]0xFF4Coresight component identification registers.
CIDR[2]0xFF8Coresight component identification registers.
CIDR[3]0xFFCCoresight component identification registers.

IDFILTER0

Address offset: 0x000

The IDFILTER0 register enables the programming of ID filtering for master port 0.

Bit number313029282726252423222120191817161514131211109876543210
IDHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWID0_[i]0_[i]F (i=0..7)Enable or disable ID filtering for IDs 0xi0_0xiF.
NotFiltered0Transactions with these IDs are passed on to ATB master port 0.
Selected1Transactions with these IDs are discarded by the replicator.

IDFILTER1

Address offset: 0x004

The IDFILTER1 register enables the programming of ID filtering for master port 1.

Bit number313029282726252423222120191817161514131211109876543210
IDHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWID1_[i]0_[i]F (i=0..7)Enable or disable ID filtering for IDs 0xi0_0xiF.
NotFiltered0Transactions with these IDs are passed on to ATB master port 1.
Selected1Transactions with these IDs are discarded by the replicator.

ITATBCTR1

Address offset: 0xEF8

The ITATBCTR1 register returns the value of the atreadym0, atreadym1, and atvalids inputs in integration mode.

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWATREADYM0Reads the value of the atreadym0 input.
Low0Pin is logic 0.
High1Pin is logic 1.
BRWATREADYM1Reads the value of the atreadym1 input.
Low0Pin is logic 0.
High1Pin is logic 1.
CRWATVALIDSReads the value of the atvalids input.
Low0Pin is logic 0.
High1Pin is logic 1.

ITATBCTR0

Address offset: 0xEFC

The ITATBCTR0 register controls the value of the atvalidm0, atvalidm1, and atreadys outputs in integration mode.

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWATVALIDM0Sets the value of the atvalidm0 output.
Low0Pin is logic 0.
High1Pin is logic 1.
BRWATVALIDM1Sets the value of the atvalidm1 output.
Low0Pin is logic 0.
High1Pin is logic 1.
CRWATREADYSSets the value of the atreadys output.
Low0Pin is logic 0.
High1Pin is logic 1.

ITCTRL

Address offset: 0xF00

The ITCTRL register enables the component to switch from a functional mode, which is the default behavior, to integration mode where the inputs and outputs of the component can be directly controlled for the purposes of integration testing and topology detection.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWIMEIntegration Mode Enable.
Disabled0Integration mode disabled.
Enabled1Integration mode enabled.

CLAIMSET

Address offset: 0xFA0

Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMSET register sets bits in the claim tag, and determines the number of claim bits implemented.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-DRWBIT[i] (i=0..3)Set claim bit i and check if bit is implemented or not.
NotImplemented0Claim bit i is not implemented.
Implemented1Claim bit i is implemented.
Set1Set claim bit i.

CLAIMCLR

Address offset: 0xFA4

Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMCLR register sets the bits in the claim tag to 0 and determines the current value of the claim tag.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-DRWBIT[i] (i=0..3)Read or clear claim bit i.
Cleared0Claim bit i is not set.
Set1Claim bit i is set.
Clear1Clear claim bit i.

LAR

Address offset: 0xFB0

This is used to enable write access to device registers.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWACCESSA write of 0xC5ACCE55 enables further write access to this device. Any other write removes write access.
UnLock0xC5ACCE55Unlock register interface.

LSR

Address offset: 0xFB4

This indicates the status of the lock control mechanism. This lock prevents accidental writes by code under debug. Accesses to the extended stimulus port registers are not affected by the lock mechanism. This register must always be present although there might not be any lock access control mechanism. The lock mechanism, where present and locked, must block write accesses to any control register, except the Lock Access Register. For most components this covers all registers except for the Lock Access Register.

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPRESENTIndicates that a lock control mechanism exists for this device.
NotImplemented0No lock control mechanism exists, writes to the Lock Access Register are ignored.
Implemented1Lock control mechanism is present.
BRWLOCKEDReturns the current status of the Lock.
UnLocked0Write access is allowed to this device.
Locked1Write access to the component is blocked. All writes to control registers are ignored. Reads are permitted.
CRWTYPEIndicates if the Lock Access Register is implemented as 8-bit or 32-bit.
Bits320This component implements a 32-bit Lock Access Register.
Bits81This component implements an 8-bit Lock Access Register.

AUTHSTATUS

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.

DEVID

Address offset: 0xFC8

Indicates the capabilities of the component.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARPORTNUM[0:15]Indicates the number of master ports implemented.

DEVTYPE

Address offset: 0xFCC

The DEVTYPE register provides a debugger with information about the component when the Part Number field is not recognized. The debugger can then report this information.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARMAJORThe main type of the component
InputOutputDevice2Indicates that this component has ATB inputs and outputs.
BRSUBThe sub-type of the component
Replicator2Indicates that this component replicates trace from a single source to multiple targets.

PIDR4

Address offset: 0xFD0

Coresight peripheral identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

PIDR[0]

Address offset: 0xFE0

Coresight peripheral identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

PIDR[1]

Address offset: 0xFE4

Coresight peripheral identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

PIDR[2]

Address offset: 0xFE8

Coresight peripheral identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

PIDR[3]

Address offset: 0xFEC

Coresight peripheral identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

CIDR[0]

Address offset: 0xFF0

Coresight component identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

CIDR[1]

Address offset: 0xFF4

Coresight component identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

CIDR[2]

Address offset: 0xFF8

Coresight component identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

CIDR[3]

Address offset: 0xFFC

Coresight component identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

ETB — Embedded trace buffer

The ARM embedded trace buffer captures trace and stores it in an on-chip RAM for later inspection.

This document only provides a register-level description of this ARM component. See the Arm® CoreSight SoC-400 Technical Reference Manual for more details.

Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
ETB0xE0051000HFNSNANoETB

Register overview

RegisterOffsetTZDescription
RDP0x4ETB RAM Depth Register
STS0xCETB Status Register
RRD0x10ETB RAM Read Data Register
RRP0x14ETB RAM Read Pointer Register
RWP0x18ETB RAM Write Pointer Register
TRG0x1CETB Trigger Counter Register
CTL0x20ETB Control Register
RWD0x24ETB RAM Write Data Register
FFSR0x300ETB Formatter and Flush Status Register
FFCR0x304ETB Formatter and Flush Control Register
ITMISCOP00xEE0Integration Test Miscellaneous Output Register 0
ITTRFLINACK0xEE4Integration Test Trigger In and Flush In Acknowledge Register
ITTRFLIN0xEE8Integration Test Trigger In and Flush In Register
ITATBDATA00xEECIntegration Test ATB Data Register 0
ITATBCTR20xEF0Integration Test ATB Control Register 2
ITATBCTR10xEF4Integration Test ATB Control Register 1
ITATBCTR00xEF8Integration Test ATB Control Register 0
ITCTRL0xF00Integration Mode Control Register
CLAIMSET0xFA0Claim Tag Set Register
CLAIMCLR0xFA4Claim Tag Clear Register
LAR0xFB0Lock Access Register
LSR0xFB4Lock Status Register
AUTHSTATUS0xFB8Authentication Status Register
DEVID0xFC8Device Configuration Register
DEVTYPE0xFCCDevice Type Identifier Register
PERIPHID40xFD0Peripheral ID4 Register
PERIPHID00xFE0Peripheral ID0 Register
PERIPHID10xFE4Peripheral ID1 Register
PERIPHID20xFE8Peripheral ID2 Register
PERIPHID30xFECPeripheral ID3 Register
COMPID00xFF0Component ID0 Register
COMPID10xFF4Component ID1 Register
COMPID20xFF8Component ID2 Register
COMPID30xFFCComponent ID3 Register

RDP

Address offset: 0x4

ETB RAM Depth Register

Defines the depth, in words, of the trace RAM. This value is configurable in the RTL, but fixed at synthesis. Supported depth in powers of 2 only.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARETB_RAM_DEPTHDefines the depth, in words, of the trace RAM.

STS

Address offset: 0xC

ETB Status Register

This register indicates the status of the ETB.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x0000000800000000000000000000000000001000
IDR/WFieldValue IDValueDescription
ARFULLRAM Full. The flag indicates when the RAM write pointer has wrapped around.
BRTRIGGEREDThe Triggered bit is set when a trigger has been observed. This does not indicate that a trigger has been embedded in the trace data by the formatter, but is determined by the programming of the Formatter and Flush Control Register.
CRACQCOMPThe acquisition complete flag indicates that capture has been completed when the formatter stops because of any of the methods defined in the Formatter and Flush Control Register, or TraceCaptEn = 0. This also results in FtStopped in the Formatter and Flush Status Register going HIGH.
DRFTEMPTYFormatter pipeline empty. All data stored to RAM.

RRD

Address offset: 0x10

ETB RAM Read Data Register

When trace capture is disabled, the contents of the ETB Trace RAM at the location addressed by the RAM Read Pointer Registers are placed in this register. Reading this register increments the RAM Read Pointer Register and triggers a RAM access cycle. If trace capture is enabled (FtStopped=0, TraceCaptEn=1), and ETB RAM reading is attempted, a read from this register outputs 0xFFFFFFFF and the RAM Read Pointer Register does not auto-increment. A constant stream of 1s being output corresponds to a synchronization output in the formatter protocol, which is not applicable to the ETB, and so can be used to signify a read error, when formatting is enabled.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARRAM_READ_DATAData read from the ETB Trace RAM.

RRP

Address offset: 0x14

ETB RAM Read Pointer Register

The RAM Read Pointer Register sets the read pointer used to read entries from the Trace RAM over the APB interface. When this register is written to, a RAM access is initiated. The RAM Read Data Register is then updated. The register can also be read to determine the current memory location being referenced. This register must not be written to when trace capture is enabled (FtStopped=0, TraceCaptEn=1). If access is attempted, the register is not updated.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWRAM_READ_POINTERSets the read pointer used to read entries from the Trace RAM over the APB interface.

RWP

Address offset: 0x18

ETB RAM Write Pointer Register

The RAM Write Pointer Register sets the write pointer used to write entries from the CoreSight bus into Trace RAM. During trace capture the pointer increments when the DataValid flag is asserted by the Formatter. When this register increments from its maximum value back to zero, the Full flag is set. This register can also be written to over APB to set the pointer for write accesses carried out through the APB interface. This register must not be written to when trace capture is enabled (FtStopped=0, TraceCaptEn=1). If access is attempted, the register is not updated. The register can also be read to determine the current memory location being referenced. It is recommended that addresses are 128-bit aligned when the formatter is used in normal or continuous modes.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWRAM_WRITE_POINTERSets the write pointer used to write entries from the CoreSight bus into the Trace RAM.

TRG

Address offset: 0x1C

ETB Trigger Counter Register

The Trigger Counter Register disables write access to the Trace RAM by stopping the Formatter after a defined number of words have been stored following the trigger event. The number of 32-bit words written into the Trace RAM following the trigger event is equal to the value stored in this register+1.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWTRIGGER_COUNTERThe counter is used as follows:Trace after - The counter is set to a large value, slightly less than the number of entries in the RAM. Trace before - The counter is set to a small value. Trace about - The counter is set to half the depth of the Trace RAM. This register must not be written to when trace capture is enabled (FtStopped=0, TraceCaptEn=1). If a write is attempted, the register is not updated. A read access is permitted with trace capture enabled.

CTL

Address offset: 0x20

ETB Control Register

This register controls trace capture by the ETB.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWTRACECAPTENETB Trace Capture Enable. This is the master enable bit forcing FtStopped HIGH when TraceCaptEn is LOW. When capture is disabled, any remaining data in the ATB formatter is stored to RAM. When all data is stored the formatter outputs FtStopped. Capture is fully disabled, or complete, when FtStopped goes HIGH. See ETB Formatter and Flush Status Register, FFSR, 0x300.

RWD

Address offset: 0x24

ETB RAM Write Data Register

Data written to the ETB Trace RAM.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWRAM_WRITE_DATAData written to the ETB Trace RAM. When trace capture is disabled, the contents of this register are placed into the ETB Trace RAM when this register is written to. Writing to this register increments the RAM Write Pointer Register. If trace capture is enabled, and this register is accessed, then a read from this register outputs 0xFFFFFFFF. Reads of this register never increment the RAM Write Pointer Register. A constant stream of 1s being output corresponds to a synchronization output from the ETB. If a write access is attempted, the data is not written into Trace RAM.

FFSR

Address offset: 0x300

ETB Formatter and Flush Status Register

This register indicates the implemented Trigger Counter multipliers and other supported features of the trigger system.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000200000000000000000000000000000010
IDR/WFieldValue IDValueDescription
ARFLINPROGFlush In Progress. This is an indication of the current state of afvalids.
BRFTSTOPPEDFormatter stopped. The formatter has received a stop request signal and all trace data and post-amble has been output. Any more trace data on the ATB interface is ignored and atreadys goes HIGH.

FFCR

Address offset: 0x304

ETB Formatter and Flush Control Register

This register controls the generation of stop, trigger, and flush events. To disable formatting and put the formatter into bypass mode, bits 1 and 0 must be clear. If both bits are set, then the formatter inserts triggers into the formatted stream. All three flush generating conditions can be enabled together. However, if a second or third flush event is generated then the current flush completes before the next flush is serviced. Flush from flushin takes priority over flush from Trigger, which in turn completes before a manually activated flush. All Trigger indication conditions can be enabled simultaneously although this can cause the appearance of multiple triggers if flush using trigger is also enabled. Both 'Stop On' settings can be enabled, although if flush on trigger, FOnTrig, is set up then none of the flushed data is stored. When the system stops, it returns ATREADY and does not store the accepted data packets. This is to avoid stalling of any other connected devices using a Trace Replicator. If an event in the Formatter and Flush Control Register is required, it must be enabled before the originating event starts. Because requests from flushes and triggers can originate in an asynchronous clock domain, the exact time the component acts on the request cannot be determined with respect to configuring the control. Note - To perform a stop on flush completion through a manually-generated flush request, two write operations to the register are required: one to enable the stop event, if it is not already enabled; one to generate the manual flush.

Bit number313029282726252423222120191817161514131211109876543210
IDJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWENFTCDo not embed Triggers into the formatted stream. Trace disable cycles and triggers are indicated by TRACECTL, where fitted. Can only be changed when FtStopped is HIGH. This bit is clear on reset.
BRWENFCONTContinuous mode in the ETB corresponds to normal mode with the embedding of triggers. Can only be changed when FtStopped is HIGH. This bit is clear on reset.
CRWFONFLINSet this bit to enable use of the flushin connection. This is clear on reset.
DRWFONTRIGGenerate flush using Trigger event. Set this bit to cause a flush of data in the system when a Trigger Event occurs. This bit is clear on reset. A Trigger Event is defined as when the Trigger counter reaches zero (where fitted) or, in the case of the trigger counter being zero (or not fitted), when trigin is HIGH.
ERWFONMANSetting this bit causes a flush to be generated. This is cleared when this flush has been serviced. This bit is clear on reset.
FRWTRIGINIndicate a trigger on trigin being asserted.
GRWTRIGEVTIndicate a trigger on a Trigger Event.
HRWTRIGFLIndicates a trigger on Flush completion (afreadys being returned).
IRWSTOPFLThis forces the FIFO to drain off any part-completed packets. Setting this bit enables this function but this is clear on reset (disabled).
JRWSTOPTRIGStop the formatter after a Trigger Event is observed. Reset to disabled (zero).

ITMISCOP0

Address offset: 0xEE0

Integration Test Miscellaneous Output Register 0

The Integration Test Miscellaneous Output Register 0 controls the values of some outputs from the ETB.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWACQCOMPSet the value of acqcomp.
BWFULLSet the value of full output port.

ITTRFLINACK

Address offset: 0xEE4

Integration Test Trigger In and Flush In Acknowledge Register

The Integration Test Trigger In and Flush In Acknowledge Register enables control of the triginack and flushinack outputs from the ETB.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTRIGINACKSet the value of triginack.
BWFLUSHINACKSet the value of flushinack.

ITTRFLIN

Address offset: 0xEE8

Integration Test Trigger In and Flush In Register

The Integration Test Trigger In and Flush In Register contains the values of the flushin and trigin inputs to the ETB.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARTRIGINRead the value of trigin.
BRFLUSHINRead the value of flushin.

ITATBDATA0

Address offset: 0xEEC

Integration Test ATB Data Register 0

The Integration Test ATB Data Register 0 contains the value of the atdatas inputs to the ETB. The values are only valid when atvalids is HIGH.

Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARATDATA_0Read the value of atdatas[0].
BRATDATA_7Read the value of atdatas[7].
CRATDATA_15Read the value of atdatas[15].
DRATDATA_23Read the value of atdatas[23].
ERATDATA_31Read the value of atdatas[31].

ITATBCTR2

Address offset: 0xEF0

Integration Test ATB Control Register 2

The Integration Test ATB Control Register 2 enables control of the atreadys and afvalids outputs of the ETB.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWATREADYSSet the value of atreadys.
BWAFVALIDSSet the value of afvalids.

ITATBCTR1

Address offset: 0xEF4

Integration Test ATB Control Register 1

The Integration Test ATB Control Register 1 contains the value of the atids input to the ETB. This is only valid when atvalids is HIGH.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARATIDRead the value of atids.

ITATBCTR0

Address offset: 0xEF8

Integration Test ATB Control Register 0

The Integration Test ATB Control Register 0 captures the values of the atvalids, afreadys, and atbytess inputs to the ETB. To ensure the integration registers work correctly in a system, the value of atbytess is only valid when atvalids, bit [0], is HIGH.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARATVALIDRead the value of atvalids.
BRAFREADYRead the value of afreadys.
CRATBYTESRead the value of atbytess.

ITCTRL

Address offset: 0xF00

Integration Mode Control Register

This register is used to enable topology detection. For more information see the CoreSight Architecture Specification. This register enables the component to switch from a functional mode, the default behavior, to integration mode where the inputs and outputs of the component can be directly controlled for the purpose of integration testing and topology solving. Note: When a device has been in integration mode, it might not function with the original behavior. After performing integration or topology detection, you must reset the system to ensure correct behavior of CoreSight and other connected system components that are affected by the integration or topology detection.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWINTEGRATION_MODEAllows the component to switch from functional mode to integration mode or back.

CLAIMSET

Address offset: 0xFA0

Claim Tag Set Register

This is used in conjunction with Claim Tag Clear Register, CLAIMCLR. This register forms one half of the Claim Tag value. This location allows individual bits to be set, write, and returns the number of bits that can be set, read.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAA
Reset 0x0000000F00000000000000000000000000001111
IDR/WFieldValue IDValueDescription
ARWCLAIMSETThis claim tag bit is implemented

CLAIMCLR

Address offset: 0xFA4

Claim Tag Clear Register

This register is used in conjunction with Claim Tag Set Register, CLAIMSET. This register forms one half of the Claim Tag value. This location enables individual bits to be cleared, write, and returns the current Claim Tag value, read.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCLAIMCLRThe value present reflects the current setting of the Claim Tag.

LAR

Address offset: 0xFB0

Lock Access Register

This is used to enable write access to device registers. External accesses from a debugger (paddrdbg31 = 1) are not subject to the Lock Registers. A debugger does not have to unlock the component in order to write and modify the registers in the component.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWACCESS_WA write of 0xC5ACCE55 enables further write access to this device. A write of any value other than 0xC5ACCE55 will have the affect of removing write access.

LSR

Address offset: 0xFB4

Lock Status Register

This indicates the status of the Lock control mechanism. This lock prevents accidental writes by code under debug. When locked, write access is blocked to all registers, except the Lock Access Register. External accesses from a debugger (paddrdbg31 = 1) are not subject to the Lock Registers. This register reads as 0 when read from an external debugger (paddrdbg31 = 1).

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x0000000300000000000000000000000000000011
IDR/WFieldValue IDValueDescription
ARLOCKEXISTIndicates that a lock control mechanism exists for this device. This bit reads as 0 when read from an external debugger (paddrdbg31 = 1) since external debugger accesses are not subject to Lock Registers.
BRLOCKGRANTReturns the current status of the Lock. This bit reads as 0 when read from an external debugger (paddrdbg31 = 1) since external debugger accesses are not subject to Lock Registers.
CRLOCKTYPEIndicates if the Lock Access Register (0xFB0) is implemented as 8-bit or 32-bit

AUTHSTATUS

Address offset: 0xFB8

Authentication Status Register

Reports what functionality is currently permitted by the authentication interface.

Bit number313029282726252423222120191817161514131211109876543210
IDDDCCBBAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARNSIDIndicates the security level for non-secure invasive debug
BRNSNIDIndicates the security level for non-secure non-invasive debug
CRSIDIndicates the security level for secure invasive debug
DRSNIDIndicates the security level for secure non-invasive debug

DEVID

Address offset: 0xFC8

Device Configuration Register

This register indicates the capabilities of the ETB.

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AREXTMUXNUMWhen non-zero this value indicates the type/number of ATB multiplexing present on the input to the ATB.
BRRAMCLKThis bit returns 0 on reads indicating that the ETB RAM operates synchronously to atclk.

DEVTYPE

Address offset: 0xFCC

Device Type Identifier Register

It provides a debugger with information about the component when the Part Number field is not recognized. The debugger can then report this information.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBAAAA
Reset 0x0000002100000000000000000000000000100001
IDR/WFieldValue IDValueDescription
ARMAJOR_TYPEMajor classification grouping for this debug/trace component
BRSUB_TYPESub-classification within the major category

PERIPHID4

Address offset: 0xFD0

Peripheral ID4 Register

Part of the set of Peripheral Identification registers. Contains part of the designer identity and the memory footprint indicator.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBAAAA
Reset 0x0000000400000000000000000000000000000100
IDR/WFieldValue IDValueDescription
ARDES_2JEDEC continuation code indicating the designer of the component (along with the identity code)
BRSIZEThis is a 4-bit value that indicates the total contiguous size of the memory window used by this component in powers of 2 from the standard 4KB. If a component only requires the standard 4KB then this should read as 0x0, 4KB only, for 8KB set to 0x1, 16KB == 0x2, 32KB == 0x3, and so on.

PERIPHID0

Address offset: 0xFE0

Peripheral ID0 Register

Part of the set of Peripheral Identification registers. Contains part of the designer specific part number.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x0000000700000000000000000000000000000111
IDR/WFieldValue IDValueDescription
ARPART_0Bits [7:0] of the component's part number. This is selected by the designer of the component.

PERIPHID1

Address offset: 0xFE4

Peripheral ID1 Register

Part of the set of Peripheral Identification registers. Contains part of the designer specific part number and part of the designer identity.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBAAAA
Reset 0x000000B900000000000000000000000010111001
IDR/WFieldValue IDValueDescription
ARPART_1Bits [11:8] of the component's part number. This is selected by the designer of the component.
BRDES_0Bits 3:0 of the JEDEC identity code indicating the designer of the component (along with the continuation code)

PERIPHID2

Address offset: 0xFE8

Peripheral ID2 Register

Part of the set of Peripheral Identification registers. Contains part of the designer identity and the product revision.

Bit number313029282726252423222120191817161514131211109876543210
IDCCCCBAAA
Reset 0x0000004B00000000000000000000000001001011
IDR/WFieldValue IDValueDescription
ARDES_1Bits 6:4 of the JEDEC identity code indicating the designer of the component (along with the continuation code)
BRJEDECAlways set. Indicates that a JEDEC assigned value is used
CRREVISIONThe Revision field is an incremental value starting at 0x0 for the first design of this component. This only increases by 1 for both major and minor revisions and is simply used as a look-up to establish the exact major/minor revision.

PERIPHID3

Address offset: 0xFEC

Peripheral ID3 Register

Part of the set of Peripheral Identification registers. Contains the RevAnd and Customer Modified fields.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARCMODWhere the component is reusable IP, this value indicates if the customer has modified the behavior of the component. In most cases this field is zero.
BRREVANDThis field indicates minor errata fixes specific to this design, for example metal fixes after implementation. In most cases this field is zero. It is recommended that component designers ensure this field can be changed by a metal fix if required, for example by driving it from registers that reset to zero.

COMPID0

Address offset: 0xFF0

Component ID0 Register

A component identification register, that indicates that the identification registers are present.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x0000000D00000000000000000000000000001101
IDR/WFieldValue IDValueDescription
ARPRMBL_0Contains bits [7:0] of the component identification

COMPID1

Address offset: 0xFF4

Component ID1 Register

A component identification register, that indicates that the identification registers are present. This register also indicates the component class.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBAAAA
Reset 0x0000009000000000000000000000000010010000
IDR/WFieldValue IDValueDescription
ARPRMBL_1Contains bits [11:8] of the component identification
BRCLASSClass of the component. E. g. ROM table, CoreSight component etc. Constitutes bits [15:12] of the component identification.

COMPID2

Address offset: 0xFF8

Component ID2 Register

A component identification register, that indicates that the identification registers are present.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x0000000500000000000000000000000000000101
IDR/WFieldValue IDValueDescription
ARPRMBL_2Contains bits [23:16] of the component identification

COMPID3

Address offset: 0xFFC

Component ID3 Register

A component identification register, that indicates that the identification registers are present.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x000000B100000000000000000000000010110001
IDR/WFieldValue IDValueDescription
ARPRMBL_3Contains bits [31:24] of the component identification

ETM — Embedded trace macrocell

The ARM embedded trace macorcell 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

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
ETM0xE0041000HFNSNANoETM

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] (n=0..2)

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] (n=0..3)

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] (n=0..3)

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] (n=0..3)

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] (n=2..31)

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] (n=0..7)

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

Coresight peripheral identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

TRCCIDR[n] (n=0..3)

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

Coresight component identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

TPIU — Trace port interface unit

The ARM® CoreSight™ TPIU connects an ATB to an external trace port.

This document only provides a register-level description of this ARM component. See the ARM® CoreSight™ SoC-400 Technical Reference Manual for more details

Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
TPIU0xE0054000HFNSNANoTPIU

Register overview

RegisterOffsetTZDescription
SUPPORTEDPORTSIZES0x000Each bit location is a single port size that is supported on the device.
CURRENTPORTSIZE0x004Each bit location is a single port size. One bit can be set, and indicates the current port size.
SUPPORTEDTRIGGERMODES0x100The Supported_trigger_modes register indicates the implemented trigger counter multipliers and other supported features of the trigger system.
TRIGGERCOUNTERVALUE0x104The Trigger_counter_value register enables delaying the indication of triggers to any external connected trace capture or storage devices.
TRIGGERMULTIPLIER0x108The Trigger_multiplier register contains the selectors for the trigger counter multiplier.
SUPPPORTEDTESTPATTERNMODES0x200The Supported_test_pattern_modes register provides a set of known bit sequences or patterns that can be output over the trace port and can be detected by the TPA or other associated trace capture device.
CURRENTTESTPATTERNMODES0x204Current_test_pattern_mode indicates the current test pattern or mode selected.
TPRCR0x208The TPRCR register is an 8-bit counter start value that is decremented. A write sets the initial counter value and a read returns the programmed value.
FFSR0x300The FFSR register indicates the current status of the formatter and flush features available in the TPIU.
FFCR0x304The FFCR register controls the generation of stop, trigger, and flush events.
FSCR0x308The FSCR register enables the frequency of synchronization information to be optimized to suit the Trace Port Analyzer (TPA) capture buffer size.
EXTCTLINPORT0x400Two ports can be used as a control and feedback mechanism for any serializers, pin sharing multiplexers, or other solutions that might be added to the trace output pins either for pin control or a high-speed trace port solution.
EXTCTLOUTPORT0x404Two ports can be used as a control and feedback mechanism for any serializers, pin sharing multiplexers, or other solutions that might be added to the trace output pins either for pin control or a high speed trace port solution. These ports are raw register banks that sample or export the corresponding external pins.
ITTRFLINACK0xEE4The ITTRFLINACK register enables control of the triginack and flushinack outputs from the TPIU.
ITTRFLIN0xEE8The ITTRFLIN register contains the values of the flushin and trigin inputs to the TPIU.
ITATBDATA00xEECThe ITATBDATA0 register contains the value of the atdatas inputs to the TPIU. The values are valid only when atvalids is HIGH.
ITATBCTR20xEF0Enables control of the atreadys and afvalids outputs of the TPIU.
ITATBCTR10xEF4The ITATBCTR1 register contains the value of the atids input to the TPIU. This is only valid when atvalids is HIGH.
ITATBCTR00xEF8The ITATBCTR0 register captures the values of the atvalids, afreadys, and atbytess inputs to the TPIU. To ensure the integration registers work correctly in a system, the value of atbytess is only valid when atvalids, bit[0], is HIGH.
ITCTRL0xF00Used to enable topology detection. This register enables the component to switch from a functional mode, the default behavior, to integration mode where the inputs and outputs of the component can be directly controlled for integration testing and topology solving.
CLAIMSET0xFA0Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMSET register sets bits in the claim tag, and determines the number of claim bits implemented.
CLAIMCLR0xFA4Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMCLR register sets the bits in the claim tag to 0 and determines the current value of the claim tag.
LAR0xFB0This is used to enable write access to device registers.
LSR0xFB4This indicates the status of the lock control mechanism. This lock prevents accidental writes by code under debug. Accesses to the extended stimulus port registers are not affected by the lock mechanism. This register must always be present although there might not be any lock access control mechanism. The lock mechanism, where present and locked, must block write accesses to any control register, except the Lock Access Register. For most components this covers all registers except for the Lock Access Register.
AUTHSTATUS0xFB8Indicates the current level of tracing permitted by the system
DEVID0xFC8Indicates the capabilities of the component.
DEVTYPE0xFCCThe DEVTYPE register provides a debugger with information about the component when the Part Number field is not recognized. The debugger can then report this information.
PIDR40xFD0Coresight peripheral identification registers.
PIDR[0]0xFE0Coresight peripheral identification registers.
PIDR[1]0xFE4Coresight peripheral identification registers.
PIDR[2]0xFE8Coresight peripheral identification registers.
PIDR[3]0xFECCoresight peripheral identification registers.
CIDR[0]0xFF0Coresight component identification registers.
CIDR[1]0xFF4Coresight component identification registers.
CIDR[2]0xFF8Coresight component identification registers.
CIDR[3]0xFFCCoresight component identification registers.

SUPPORTEDPORTSIZES

Address offset: 0x000

Each bit location is a single port size that is supported on the device.

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-fRWPORT_SIZE_[i+1] (i=0..31)Indicates whether the TPIU supports port size of i+1-bit.
NotSupported0Port size i+1 is not supported.
Supported1Port size i+1 is supported.

CURRENTPORTSIZE

Address offset: 0x004

Each bit location is a single port size. One bit can be set, and indicates the current port size.

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-fRWPORT_SIZE_[i+1] (i=0..31)Indicates which port size is currently selected.
NotSelected0Port size i+1 is not selected.
Selected1Port size i+1 is selected.

SUPPORTEDTRIGGERMODES

Address offset: 0x100

The Supported_trigger_modes register indicates the implemented trigger counter multipliers and other supported features of the trigger system.

Bit number313029282726252423222120191817161514131211109876543210
IDHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-ERWMULT[i] (i=0..4)Indicates whether multiplying the trigger counter by 2^(i+1) is supported.
NotSelected0Multiplying the trigger counter by 2^(i+1) is supported.
Selected1Multiplying the trigger counter by 2^(i+1) is supported.
FRWTCOUNT8Indicates whether an 8-bit wide counter register is implemented.
NotImplemented0An 8-bit wide counter register is implemented.
Implemented1An 8-bit wide counter register is implemented.
GRWTRIGGEREDA trigger has occurred and the counter has reached 0.
NotOccured0Trigger has not occurred.
Occured1Trigger has occurred.
HRWTRGRUNA trigger has occurred but the counter is not at 0.
NotOccured0Either a trigger has not occurred or the counter is at 0.
Occured1A trigger has occurred but the counter is not at 0.

TRIGGERCOUNTERVALUE

Address offset: 0x104

The Trigger_counter_value register enables delaying the indication of triggers to any external connected trace capture or storage devices.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWTrigCount[0:255]8-bit counter value for the number of words to be output from the formatter before a trigger is inserted.

TRIGGERMULTIPLIER

Address offset: 0x108

The Trigger_multiplier register contains the selectors for the trigger counter multiplier.

Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-ERWMULT[i] (i=0..4)Multiply the Trigger Counter by 2^n.
Disabled0Multiplier disabled.
Enabled1Multiplier enabled.

SUPPPORTEDTESTPATTERNMODES

Address offset: 0x200

The Supported_test_pattern_modes register provides a set of known bit sequences or patterns that can be output over the trace port and can be detected by the TPA or other associated trace capture device.

Bit number313029282726252423222120191817161514131211109876543210
IDFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPATW1Indicates whether the walking 1s pattern is supported as output over the trace port.
NotSupported0Test pattern is not supported.
Supported1Test pattern is supported.
BRWPATW0Indicates whether the walking 0s pattern is supported as output over the trace port.
NotSupported0Test pattern is not supported.
Supported1Test pattern is supported.
CRWPATA5Indicates whether the AA/55 pattern is supported as output over the trace port.
NotSupported0Test pattern is not supported.
Supported1Test pattern is supported.
DRWPATF0Indicates whether the FF/00 pattern is supported as output over the trace port.
NotSupported0Test pattern is not supported.
Supported1Test pattern is supported.
ERWPTIMEENIndicates whether timed mode is supported.
NotSupported0Mode is not supported.
Supported1Mode is supported.
FRWPCONTENIndicates whether continuous mode is supported.
NotSupported0Mode is not supported.
Supported1Mode is supported.

CURRENTTESTPATTERNMODES

Address offset: 0x204

Current_test_pattern_mode indicates the current test pattern or mode selected.

Bit number313029282726252423222120191817161514131211109876543210
IDFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPATW1Indicates whether the walking 1s pattern is supported as output over the trace port.
Disabled0Test pattern is disabled.
Enabled1Test pattern is enabled.
BRWPATW0Indicates whether the walking 0s pattern is supported as output over the trace port.
Disabled0Test pattern is disabled.
Enabled1Test pattern is enabled.
CRWPATA5Indicates whether the AA/55 pattern is supported as output over the trace port.
Disabled0Test pattern is disabled.
Enabled1Test pattern is enabled.
DRWPATF0Indicates whether the FF/00 pattern is supported as output over the trace port.
Disabled0Test pattern is disabled.
Enabled1Test pattern is enabled.
ERWPTIMEENIndicates whether timed mode is supported.
Disabled0Mode is disabled.
Enabled1Mode is enabled.
FRWPCONTENIndicates whether continuous mode is supported.
Disabled0Mode is disabled.
Enabled1Mode is enabled.

TPRCR

Address offset: 0x208

The TPRCR register is an 8-bit counter start value that is decremented. A write sets the initial counter value and a read returns the programmed value.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPATTCOUNT[0:255]8-bit counter value to indicate the number of traceclkin cycles for which a pattern runs before it switches to the next pattern.

FFSR

Address offset: 0x300

The FFSR register indicates the current status of the formatter and flush features available in the TPIU.

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWFLINPROGFlush in progress.
NotInProgress0A flush is not in progress.
InProgress1A flush is in progress.
BRWFTSTOPPEDThe formatter has received a stop request signal and all trace data and post-amble is sent. Any additional trace data on the ATB interface is ignored and atreadys goes HIGH.
Running0Formatter has not stopped.
Stopped1Formatter has stopped.
CRWTCPRESENTIndicates whether the TRACECTL pin is available for use.
NotPresent0TRACECTL pin is not present.
Present1TRACECTL pin is present.

FFCR

Address offset: 0x304

The FFCR register controls the generation of stop, trigger, and flush events.

Bit number313029282726252423222120191817161514131211109876543210
IDKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWENFTCDo not embed triggers into the formatted stream. Trace disable cycles and triggers are indicated by tracectl, where present.
Disabled0The formatting feature is disabled.
Enabled1The formatting feature is enabled.
BRWENFCONTIs embedded in trigger packets and indicates that no cycle is using sync packets.
Disabled0The formatting feature is disabled.
Enabled1The formatting feature is enabled.
CRWFONFLINEnables the use of the flushin connection.
Disabled0The formatting feature is disabled.
Enabled1The formatting feature is enabled.
DRWFONTRIGInitiates a manual flush of data in the system when a trigger event occurs.
Disabled0The formatting feature is disabled.
Enabled1The formatting feature is enabled.
ERWFONMANRGenerates a flush. This bit is set to 0 when this flush is serviced.
Disabled0The formatting feature is disabled.
Enabled1The formatting feature is enabled.
FRWFONMANWGenerates a flush. This bit is set to 1 when this flush is serviced.
Disabled0The formatting feature is disabled.
Enabled1The formatting feature is enabled.
GRWTRIGINIndicates a trigger when trigin is asserted.
Disabled0The formatting feature is disabled.
Enabled1The formatting feature is enabled.
HRWTRIGEVTIndicates a trigger on a trigger event.
Disabled0The formatting feature is disabled.
Enabled1The formatting feature is enabled.
IRWTRIGFLIndicates a trigger when flush completion on afreadys is returned.
Disabled0The formatting feature is disabled.
Enabled1The formatting feature is enabled.
JRWSTOPFLForces the FIFO to drain off any part-completed packets.
Disabled0The formatting feature is disabled.
Enabled1The formatting feature is enabled.
KRWSTOPTRIGStops the formatter after a trigger event is observed. Reset to disabled or 0.
Disabled0The formatting feature is disabled.
Enabled1The formatting feature is enabled.

FSCR

Address offset: 0x308

The FSCR register enables the frequency of synchronization information to be optimized to suit the Trace Port Analyzer (TPA) capture buffer size.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCYCCOUNT[0:1024]12-bit counter reload value. Indicates the number of complete frames between full synchronization packets.

EXTCTLINPORT

Address offset: 0x400

Two ports can be used as a control and feedback mechanism for any serializers, pin sharing multiplexers, or other solutions that might be added to the trace output pins either for pin control or a high-speed trace port solution.

Bit number313029282726252423222120191817161514131211109876543210
IDHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWEXTCTLIN[i] (i=0..7)EXTCTL inputs.
Low0Input EXTCTLi is low.
High1Input EXTCTLi is high.

EXTCTLOUTPORT

Address offset: 0x404

Two ports can be used as a control and feedback mechanism for any serializers, pin sharing multiplexers, or other solutions that might be added to the trace output pins either for pin control or a high speed trace port solution. These ports are raw register banks that sample or export the corresponding external pins.

Bit number313029282726252423222120191817161514131211109876543210
IDHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-HRWEXTCTLOUT[i] (i=0..7)EXTCTL outputs.
Low0Output EXTCTLi is low.
High1Output EXTCTLi is high.

ITTRFLINACK

Address offset: 0xEE4

The ITTRFLINACK register enables control of the triginack and flushinack outputs from the TPIU.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWTRIGINACKSets the value of triginack.
Low0Pin is logic 0.
High1Pin is logic 1.
BRWFLUSHINACKSets the value of flushinack.
Low0Pin is logic 0.
High1Pin is logic 1.

ITTRFLIN

Address offset: 0xEE8

The ITTRFLIN register contains the values of the flushin and trigin inputs to the TPIU.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWTRIGINReads the value of trigin.
Low0Pin is logic 0.
High1Pin is logic 1.
BRWFLUSHINReads the value of flushin.
Low0Pin is logic 0.
High1Pin is logic 1.

ITATBDATA0

Address offset: 0xEEC

The ITATBDATA0 register contains the value of the atdatas inputs to the TPIU. The values are valid only when atvalids is HIGH.

Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-ERWATDATA[i] (i=0..4)A read access returns the value of a pin on atdatas_x of the enabled port. A write access writes to the corresponding atdatam pin of the enabled port.
Low0Pin is logic 0.
High1Pin is logic 1.

ITATBCTR2

Address offset: 0xEF0

Enables control of the atreadys and afvalids outputs of the TPIU.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWATREADYSets the value of afvalid.
Low0Pin is logic 0.
High1Pin is logic 1.
BRWAFVALIDSets the value of atready.
Low0Pin is logic 0.
High1Pin is logic 1.

ITATBCTR1

Address offset: 0xEF4

The ITATBCTR1 register contains the value of the atids input to the TPIU. This is only valid when atvalids is HIGH.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWATIDReads the value of atids.
Low0Pin is logic 0.
High1Pin is logic 1.

ITATBCTR0

Address offset: 0xEF8

The ITATBCTR0 register captures the values of the atvalids, afreadys, and atbytess inputs to the TPIU. To ensure the integration registers work correctly in a system, the value of atbytess is only valid when atvalids, bit[0], is HIGH.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWATVALIDReads the value of atvalids.
Low0Pin is logic 0.
High1Pin is logic 1.
BRWAFREADYReads the value of afreadys.
Low0Pin is logic 0.
High1Pin is logic 1.
CRWATBYTESReads the value of atbytess.
Low0Pin is logic 0.
High1Pin is logic 1.

ITCTRL

Address offset: 0xF00

Used to enable topology detection. This register enables the component to switch from a functional mode, the default behavior, to integration mode where the inputs and outputs of the component can be directly controlled for integration testing and topology solving.

Note: When a device has been in integration mode, it might not function with the original behavior. After performing integration or topology detection, you must reset the system to ensure correct behavior of CoreSight and other connected system components that are affected by the integration or topology detection.
Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWINTEGRATIONMODEEnables the component to switch from functional mode to integration mode and back. If no integration functionality is implemented, this register must read as zero.
Disabled0Integration mode is disabled.
Enabled1Integration mode is Enabled.

CLAIMSET

Address offset: 0xFA0

Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMSET register sets bits in the claim tag, and determines the number of claim bits implemented.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-DRWBIT[i] (i=0..3)Set claim bit i and check if bit is implemented or not.
NotImplemented0Claim bit i is not implemented.
Implemented1Claim bit i is implemented.
Set1Set claim bit i.

CLAIMCLR

Address offset: 0xFA4

Software can use the claim tag to coordinate application and debugger access to trace unit functionality. The claim tags have no effect on the operation of the component. The CLAIMCLR register sets the bits in the claim tag to 0 and determines the current value of the claim tag.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-DRWBIT[i] (i=0..3)Read or clear claim bit i.
Cleared0Claim bit i is not set.
Set1Claim bit i is set.
Clear1Clear claim bit i.

LAR

Address offset: 0xFB0

This is used to enable write access to device registers.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWACCESSA write of 0xC5ACCE55 enables further write access to this device. Any other write removes write access.
UnLock0xC5ACCE55Unlock register interface.

LSR

Address offset: 0xFB4

This indicates the status of the lock control mechanism. This lock prevents accidental writes by code under debug. Accesses to the extended stimulus port registers are not affected by the lock mechanism. This register must always be present although there might not be any lock access control mechanism. The lock mechanism, where present and locked, must block write accesses to any control register, except the Lock Access Register. For most components this covers all registers except for the Lock Access Register.

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPRESENTIndicates that a lock control mechanism exists for this device.
NotImplemented0No lock control mechanism exists, writes to the Lock Access Register are ignored.
Implemented1Lock control mechanism is present.
BRWLOCKEDReturns the current status of the Lock.
UnLocked0Write access is allowed to this device.
Locked1Write access to the component is blocked. All writes to control registers are ignored. Reads are permitted.
CRWTYPEIndicates if the Lock Access Register is implemented as 8-bit or 32-bit.
Bits320This component implements a 32-bit Lock Access Register.
Bits81This component implements an 8-bit Lock Access Register.

AUTHSTATUS

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.

DEVID

Address offset: 0xFC8

Indicates the capabilities of the component.

Bit number313029282726252423222120191817161514131211109876543210
IDFEDCCCBAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARMUXNUMIndicates the hidden level of input multiplexing. When non-zero, this value indicates the type of multiplexing on the input to the ATB. Currently only 0x00 is supported, that is, no multiplexing is present. This value helps detect the ATB structure.
BRCLKRELATIndicates the relationship between atclk and traceclkin.
Synchronous0atclk and traceclkin are synchronous.
ASynchronous1atclk and traceclkin are asynchronous.
CRFIFOSIZEFIFO size in powers of 2.
Entries42FIFO size of 4 entries, that is, 16 bytes.
DRTCLKDATAIndicates whether trace clock plus data is supported.
Supported0Trace clock and data is supported.
NotSupported1Trace clock and data is not supported.
ERSWOMANIndicates whether Serial Wire Output, Manchester encoded format, is supported.
NotSupported0Serial Wire Output, Manchester encoded format, is not supported.
Supported1Serial Wire Output, Manchester encoded format, is supported.
FRSWOUARTNRZIndicates whether Serial Wire Output, UART or NRZ, is supported.
NotSupported0Serial Wire Output, UART or NRZ, is not supported.
Supported1Serial Wire Output, UART or NRZ, is supported.

DEVTYPE

Address offset: 0xFCC

The DEVTYPE register provides a debugger with information about the component when the Part Number field is not recognized. The debugger can then report this information.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARMAJORThe main type of the component
TraceSource1Peripheral is a trace sink.
BRSUBThe sub-type of the component
TracePort1Indicates that this component is a trace port component.

PIDR4

Address offset: 0xFD0

Coresight peripheral identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

PIDR[0]

Address offset: 0xFE0

Coresight peripheral identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

PIDR[1]

Address offset: 0xFE4

Coresight peripheral identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

PIDR[2]

Address offset: 0xFE8

Coresight peripheral identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

PIDR[3]

Address offset: 0xFEC

Coresight peripheral identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

CIDR[0]

Address offset: 0xFF0

Coresight component identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

CIDR[1]

Address offset: 0xFF4

Coresight component identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

CIDR[2]

Address offset: 0xFF8

Coresight component identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

CIDR[3]

Address offset: 0xFFC

Coresight component identification registers.

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription