59. Debug support (DBG)

59.1 Introduction

A comprehensive set of debug features is provided to support software development and system integration:

The debug features are based on Arm® CoreSight™ components:

These components are described in Section 59.10 and Section 59.11. More information can be found in the Arm® documents referenced in Section 59.12.

59.2 Debug use cases

The trace and debug system has been designed to support a variety of typical use cases:

59.3 DBG block diagram

Figure 758. Block diagram of debug support infrastructure

Block diagram of debug support infrastructure showing Debug subsystem, MPU subsystem, and Trace subsystem.

The diagram illustrates the debug support infrastructure, divided into three main subsystems: Debug subsystem, MPU subsystem, and Trace subsystem. The components include JTAG/Serial-wire port (with JTMS/SWDIO, JTDI, JTDO, JTCK/SWDCLK, NJTRST), SWJ-DP1, DAPBUS, APB-AP1, AXI-AP1, System bus matrix, APB mux, Timestamp generator1, DBG_MCU, CTI1, ROM table1, Cortex-A7 core, ETM1, ETF1/SRAM, and TPIU1 leading to Trace port (TRACECLK, TRACED[15:0]), alongside DBTRGI and DBTRGO trigger pins. A legend indicates APB-D, DAPBUS, ATB, CTM, and Timestamp signals. Reference code: MSv65262V2.

Block diagram of debug support infrastructure showing Debug subsystem, MPU subsystem, and Trace subsystem.

1. Arm® CoreSight™ component

59.4 DBG pins

Table 597. JTAG/Serial-wire debug port pins

Pin nameJTAG debug portSW debug portPin assignment
TypeDescriptionTypeDescription
JTMS/SWDIOIJTAG test mode selectI/OSerial wire data in/outRefer to datasheet
JTCK/SWCLKIJTAG test clockISerial wire clock
JTDIIJTAG test data input--
JTDOOJTAG test data output--
NJTRSTIJTAG test reset--

Table 598. Trace port pins

Pin nameTypeDescriptionPin assignment
TRACED[15:0]OTrace synchronous data out (can be 1, 2, 4, 8 or 16 pins)Refer to datasheet
TRACECLKOTrace clock

Table 599. Trigger pins

Pin nameTypeDescriptionPin assignment
DBTRGIIExternal trigger input to CTIRefer to datasheet
DBTRGOOExternal trigger output from CTI

59.5 DBG power and clocking

59.5.1 DBG power domains

All debug components including the SWJ-DP are in the core power domain. This means that the debugger is not able to wake the device from Standby mode.

59.5.2 DBG clocks

Figure 759. Debug clock domains

Figure 1: Block diagram of the debug subsystem. The diagram shows the interaction between the swclk domain (containing JTAG/Serial-wire port and SWJ-DP¹) and the Debug subsystem. The SWJ-DP¹ connects to the DAPBUS, which in turn connects to the APB-AP¹ and AXL-AP¹. The APB-AP¹ connects to an APB mux, which then connects to the Cortex-A7 core, CTI¹, ROM tables¹, and DBG_MCU. The AXL-AP¹ connects to a System bus matrix, which connects to the CTI¹ and a Timestamp generator¹. The Cortex-A7 core connects to the ETM¹, which connects to the TPIU¹. The ETM¹ also connects to a SRAM. The CTI¹ connects to the DBG_MCU and the TPIU¹. The TPIU¹ connects to the Trace port (TRACECLK and TRACED[15:0]). The Trace port also connects to the APB-D (System Debug Bus) and DAPBUS. The Trace port also connects to the ATB (Trace Bus) and CTM (Cross Trigger Matrix). The Trace port also connects to the Timestamp generator¹. The Trace port also connects to the DBG_MCU. The Trace port also connects to the System bus matrix. The Trace port also connects to the APB-AP¹. The Trace port also connects to the AXL-AP¹. The Trace port also connects to the SWJ-DP¹.

Figure 1 is a block diagram of the debug subsystem. It shows the following components and connections:

Legend:

Trace port:

MSv65257V2

Figure 1: Block diagram of the debug subsystem. The diagram shows the interaction between the swclk domain (containing JTAG/Serial-wire port and SWJ-DP¹) and the Debug subsystem. The SWJ-DP¹ connects to the DAPBUS, which in turn connects to the APB-AP¹ and AXL-AP¹. The APB-AP¹ connects to an APB mux, which then connects to the Cortex-A7 core, CTI¹, ROM tables¹, and DBG_MCU. The AXL-AP¹ connects to a System bus matrix, which connects to the CTI¹ and a Timestamp generator¹. The Cortex-A7 core connects to the ETM¹, which connects to the TPIU¹. The ETM¹ also connects to a SRAM. The CTI¹ connects to the DBG_MCU and the TPIU¹. The TPIU¹ connects to the Trace port (TRACECLK and TRACED[15:0]). The Trace port also connects to the APB-D (System Debug Bus) and DAPBUS. The Trace port also connects to the ATB (Trace Bus) and CTM (Cross Trigger Matrix). The Trace port also connects to the Timestamp generator¹. The Trace port also connects to the DBG_MCU. The Trace port also connects to the System bus matrix. The Trace port also connects to the APB-AP¹. The Trace port also connects to the AXL-AP¹. The Trace port also connects to the SWJ-DP¹.

1. Arm® CoreSight™ component

The debugger supplies the clock for the debug port, SWTCLK, via the debug interface pin, JTCK/SWCLK. This clock is used to register the serial input data in both serial wire and JTAG mode, as well as to operate the state machines and internal logic of the debug port. It must therefore continue to toggle for several cycles after the end of an access, to ensure that the debug port returns to the idle state.

The SWJ-DP contains an asynchronous interface to the system debug clock domain, ck_sys_dbg. The remainder of the debug subsystem, as well as the trace subsystem, is in this domain. ck_sys_dbg is a gated version of the AXI bus clock, aclk.

The clock is enabled by the debugger using the CDBGPWRUPREQ bit in the debug port CTRL/STAT register. It can also be enabled by software writing bit DBGCKEN in RCC debug configuration register (RCC_DBGCFGR). The clock must be enabled before the debugger or software can access any of the debug features on the device. It should be disabled when debug and trace are not used to avoid wasting energy.

The APB-D (debug APB bus) clock (ck_apb_dbg) runs at half of the ck_sys_dbg frequency. Some of the CoreSight™ components on this bus operate at the APB-D frequency, notably the timestamp generator (TSGEN).

The trace port (TPIU) output clock, ck_trace, is generated using TRACEDIV programmable divider in RCC debug configuration register (RCC_DBGCFGR). Its maximum frequency is half that of ck_sys_dbg. The trace_ck signal is output on the TRACECLK GPIO pin when it is configured for trace function.

Note: TRACECLK is enabled by setting TRACECKEN to 1 in RCC debug configuration register (RCC_DBGCFGR). It should be activated whenever tracing is required.

RM0475 Debug support (DBG)

RM0475 Rev 5 3493/3742

The debug and trace components included in the processor (ETM, CTI etc) are clocked with the core clock (mpu_ss_ck).

59.5.3 Debug and low-power modes

The STM32MP13xx device includes power saving features which allow the various domain clocks and even the core power to be switched off when not required. If the core power is switched off (Standby mode), or the system debug domain is not clocked (Stop mode), all debug components will be inaccessible to the debugger. To avoid this, power saving mode emulation has been implemented. If emulation is enabled, the device still enters the programmed low power mode, but its clock and power are maintained. In other words, the domain behaves as if it is in low power mode, but the debugger does not lose the connection.

Emulation mode is programmed in the MCU Debug (DBGMCU) unit. For more information, refer to Section 59.10.6.

If the device is in Stop mode (ie. all clocks off) without emulation and the debugger wishes to wake the system up, it can do so by asserting the CDBGPWRUPREQ bit in the debug port CTRL/STAT register. This restarts the clocks (and switches on the high power regulator if needed) but does not generate any interrupt or event. When the wake-up has completed, the CDBGPWRUPACK bit in the same register will go high. In this state the debugger can access the memories and peripheral registers, and trigger a wakeup of the CPUs if required.

59.5.4 DBG reset

The debug components, except for the debug port, are reset by their respective clock domain resets. The debug port (SWJ-DP) is reset by the nTRST or vcore_rst resets. The access ports can be reset under debugger control, using the CDBGRSTREQ/ACK bits in the CTRL/STAT register of the debug port.

The debugger sets the CDBGRSTREQ bit to request a reset. It then polls the CDBGRSTACK bit until it goes high, indicating that the reset has completed, following which it deasserts the CDBGRSTREQ bit.

59.6 Security

The trace and debug components allow a high degree of access to the processor and system during product development. In order to protect user code and ensure that the debug features can not be used to alter or compromise the normal operation of the finished product, these features can be disabled, or limited in scope. For example, secure software debug and trace can be disabled without preventing the debug of non-secure code.

59.6.1 Authentication signals

There are six authentication signals used by the system to determine what features are enabled or disabled. These signals controlled in the BSEC debug configuration (BSEC_DENABLE) are:

Table 600 lists which signals are connected to which debug and trace components.

Table 600. Authentication signal connectivity

deviceendbgenspidennidenspnidendbgswenable
Debug APB-APX----X
System bus AXI-AP-XX---
Cortex®-A7 MPCore Debug unit-XXXXX
Cortex®-A7 MPCore ETM-X-X--
Cortex®-A7 MPCore CTI-X-X--

For detailed information on the behavior of each component according to the state of the authentication signals, refer to the relevant component chapter, or to the relevant Arm® technical documentation.

The initial state of the signals are set at power-on reset, according to Table 601. The state of the signals can be modified in the BSEC debug configuration (BSEC_DENABLE) register after boot-up by software with secure privileged access rights.

Table 601. Authentication signal initial states

Device state
(set by OTP fuse)
Authentication signal
default state
Description
Development deviceAll onesAll debug and trace is enabled at boot-up.
Production deviceAll zerosAll debug and trace is disabled at boot-up. Secure software should enable debug as required after booting.

59.6.2 JTAG/SWD tamper detection

The JTAG port contains an access detection mechanism which blocks unauthorized access via the debug port if configured as a tamper.

An attempt to access the device via the JTAG port is detected and signaled to the TAMP unit as a tamper (internal tamper 6 – see Section 47.3.2: TAMP pins and internal signals). If this tamper source is configured to erase secret information via the tamp_erase signal, then on detection of a tamper all the authentication bits are set to zero in the BSEC, disabling debug and trace (see Section 3.4.3: BSEC tamper protection).

Note: The access detection is disabled if the SWJ-DP is in serial wire debug (SWD) mode. So if the tamper is enabled while the SWJ-DP is in SWD mode (for example, if a debugger is connected), then a power cycle or a JTAG test reset must be performed to switch the SWJ-DP back to JTAG mode. Any subsequent attempt to access the JTAG port, or switch it to SWD mode, triggers the tamper.

59.7 Chip level TAP controller (CLTAPC)

The JTAG interface is connected to the internal scan chain of the IC. It is used for testing as well as for debug. The first component in the scan chain is the Chip Level TAP Controller which implements a TAP state machine based on IEEE Std 1149.1-1990. It allows access to the built-in manufacturing test features.

The CLTAPC must be bypassed in order to access the debug support functions provided by the SWJ-DP. This is done by prefixing the SWJ-DP instructions with the CLTAPC bypass instruction sequence: 11111.

The CLTAPC also contains three 32-bit registers which can be accessed using the CTRL instruction sequence: 01000, followed by 1111 to bypass the SWJ-DP. Next, the register address is shifted into the DR (LSB first). Finally, the 32-bit register content is shifted into or out of the DR, according to whether the register is read or write.

The CLTAPC registers are listed in Table 602.

Table 602. CLTAPC registers

NameAddressDescriptionRead/Write
SECSTS001Status of the BSEC_ENABLE registerR
DBGCTL010Connected to BSEC_JTAGIN registerW
DBGSTS011Connected to BSEC_JTAGOUT registerR

For details of the BSEC register bits, refer to Section 3: Boot and security and OTP control (BSEC).

59.8 Serial wire and JTAG debug port (SWJ-DP)

The SWJ-DP is a CoreSight™ component that implements an external access port for connecting debugging equipment.

Two types of interface can be configured:

The two modes are mutually exclusive, since they share the same I/O pins.

By default the JTAG-DP is selected after a system or power-on reset. The four I/O pins, JTDI, JTDO, JTMS/SWDIO and JTCK/SWCLK, are configured by hardware in debug alternative function mode (NJTRST is a dedicated pin). The SWJ-DP incorporates pull-up resistors on JTDI, JTDO, JTMS/SWDIO, and NJTRST, as well as a pull-down resistor on JTCK/SWCLK.

A debugger can select the SW-DP by transmitting the following serial data sequence on JTMS/SWDIO:

...(50 or more ones)...,0,1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,...(50 or more ones)...

JTCK/SWCLK must be cycled for each data bit.

In SW-DP mode, the unused JTAG I/Os, JTDI and JTDO, can be used for other functions. It should be noted that all SWJ port I/Os except NJTRST can be reconfigured to other functions by software, but debugging will no longer be possible.

59.8.1 JTAG debug port

Figure 760. JTAG TAP state machine

A state machine diagram for the JTAG TAP state machine. It shows transitions between states based on JTMS=1 and JTMS=0 inputs. States include Test-Logic-Reset, Run-Test/Idle, Select-DR-Scan, Select-IR-Scan, Capture-DR, Capture-IR, Shift-DR, Shift-IR, Exit1-DR, Exit1-IR, Pause-DR, Pause-IR, Exit2-DR, Exit2-IR, Update-DR, and Update-IR. The diagram is labeled MSv46858V1.

The diagram illustrates the JTAG TAP state machine with the following states and transitions:

MSv46858V1

A state machine diagram for the JTAG TAP state machine. It shows transitions between states based on JTMS=1 and JTMS=0 inputs. States include Test-Logic-Reset, Run-Test/Idle, Select-DR-Scan, Select-IR-Scan, Capture-DR, Capture-IR, Shift-DR, Shift-IR, Exit1-DR, Exit1-IR, Pause-DR, Pause-IR, Exit2-DR, Exit2-IR, Update-DR, and Update-IR. The diagram is labeled MSv46858V1.

The JTAG-DP implements a TAP state machine (TAPSM) based on IEEE Std 1149.1-1990. The state machine is shown in Figure 760. The state machine controls two scan chains, one associated with an instruction register (IR) and one with a number of data registers (DR).

The operation of the JTAG-DP is as follows:

When the TAPSM goes through the Capture-IR state, 0001 is transferred onto the Instruction Register (IR) scan chain. The IR scan chain is connected between JTDI and JTDO.

While the TAPSM is in the Shift-IR state, the IR scan chain shifts one bit for each rising edge of JTCK. This means that on the first tick:

When the TAPSM goes through the Update-IR state, the value scanned into the IR scan chain is transferred into the Instruction Register.

When the TAPSM goes through the Capture-DR state, a value is transferred from one of the Data Registers onto one of the DR scan chains, connected between JTDI and JTDO.

The value held in the Instruction Register determines which Data Register, and associated DR scan chain, is selected.

This data is then shifted while the TAPSM is in the Shift-DR state, in the same manner as the IR shift in the Shift-IR state.

When the TAPSM goes through the Update-DR state, the value scanned into the DR scan chain is transferred into the selected Data Register.

When the TAPSM is in the Run-Test/Idle state, no special actions occur. The IDCODE instruction is loaded in IR.

The NJTRST signal when active resets the state machine asynchronously to the Test-Logic-Reset state.

The Data registers corresponding to the 4-bit IR instructions are listed in Table 603.

Table 603. JTAG-DP data registers

IR instructionDR registerScan chain lengthDescription
0000 to 0111(BYPASS)1Not implemented: BYPASS selected
1000ABORT35ABORT register
- Bits 34:3 = APABORT: write 0x0000 0001 to abort an ongoing AP access
- Bits 2:1 = A[3:2]: set to 00
- Bit 0 = RnW: set to 0 (write only)
1001(BYPASS)1Reserved: BYPASS selected

Table 603. JTAG-DP data registers (continued)

IR instructionDR registerScan chain lengthDescription
1010DPACC35Debug port access register
Initiates the debug port and allows access to a debug port register.
– When transferring data IN:
Bits 34:3 = DATA[31:0] = 32-bit data to transfer for a write request
Bits 2:1 = A[3:2] = 2-bit address of a debug port register.
Bit 0 = RnW = Read request (1) or write request (0).
– When transferring data OUT:
Bits 34:3 = DATA[31:0] = 32-bit data which is read following a read request
Bits 2:0 = ACK[2:0] = 3-bit Acknowledge:
010 = OK/FAULT
001 = WAIT
Others = Reserved
1011APACC35Access port access register
Initiates an access port and allows access to an access port register.
– When transferring data IN:
Bits 34:3 = DATA[31:0] = 32-bit data to shift in for a write request
Bits 2:1 = A[3:2] = 2-bit sub-address of an access port register.
Bit 0 = RnW = Read request (1) or write request (0).
– When transferring data OUT:
Bits 34:3 = DATA[31:0] = 32-bit data which is read following a read request
Bits 2:0 = ACK[2:0] = 3-bit Acknowledge:
010 = OK/FAULT
001 = WAIT
Others = Reserved
1100(BYPASS)1Reserved: BYPASS selected
1101(BYPASS)1Reserved: BYPASS selected
1110IDCODE32ID Code
0x6BA0 0477: Arm® JTAG debug port ID code
1111BYPASS1Bypass
A single JTCK cycle delay is inserted between JTDI and JTDO

The DR registers are described in more detail in the Arm® Debug Interface Architecture Specification [1].

59.8.2 Serial Wire debug port

The Serial Wire Debug protocol uses the two pins:

Serial data is transferred LSB first, synchronously with the clock. A transfer comprises three phases:

  1. 1. Packet request (8 bits) transmitted by the host
  2. 2. Acknowledge response (3 bits) transmitted by the target.
  3. 3. Data transfer (33 bits) transmitted by the host (in the case of a write) or target (in the case of a read).

The data transfer only occurs if the acknowledge response is OK.

Between each phase, if the direction of the data is reversed, a single clock cycle turn-around time is inserted.

Table 604. Packet request

Bit fieldNameDescription
0StartMust be 1
1APnDP0: DP register access - see Table 607 for a list of DP registers
1: AP register access - see Section 59.9
2RnW0: write request
1: read request
4:3A(3:2)Address field of the DP or AP register (refer to Table 607)
5ParitySingle bit parity of preceding bits
6Stop0
7ParkNot driven by host. Must be read as 1 by target.

Table 605. ACK response

Bit fieldNameDescription
2:0ACK000: FAULT
010: WAIT
100: OK

Table 606. Data transfer

Bit fieldNameDescription
31:0WDATA or RDATAWrite or read data
32ParitySingle bit parity of 32 data bits

Figure 761 shows examples of successful write and read transfers.

Figure 761. SWD successful data transfer

Timing diagram for SWD successful data transfer showing SWCLK and SWDIO lines for write and read transfers.

The diagram illustrates the SWD protocol for successful data transfer, showing the SWCLK line and the SWDIO line for both write and read transfers. The SWCLK line provides a continuous clock signal. The SWDIO line shows the data transfer phases.

Write transfer:

Read transfer:

Legend:

Bit values:

MSv39777V1

Timing diagram for SWD successful data transfer showing SWCLK and SWDIO lines for write and read transfers.

In the case of a FAULT or WAIT ACK response from the target, the data transfer phase is cancelled, unless overrun detection is enabled, in which case the data will be ignored by the target (in the case of a write), or not driven (in the case of a read).

A line reset must be generated by the host when it is first connected, or following a protocol error. The line reset consists of 50 or more SWCLK cycles with SWDIO high, followed by two SWCLK cycles with SWDIO low.

For more details on the Serial Wire debug protocol, refer to the Arm® Debug Interface Architecture Specification [1].

Note: The SWJ-DP implements SWD protocol version 2

59.8.3 Debug port registers

The SW-DP and JTAG-DP both access the debug port (DP) registers. These are listed in Table 607.

The debugger can access the DP registers as follows:

  1. 1. Program the DPBANKSEL field in the DP_SELECT data port register to select the register bank to be accessed (see Table 607).
  2. 2. Program the A(3:2) field in the DPACC register, if using JTAG, with the register address within the bank.
  3. 3. Program the RnW bit to select a Read or Write.
  4. 4. In the case of a write, program the DATA field with the write data.

If using SWD, the A(3:2) and RnW fields are part of the Packet Request word sent to the SW-DP with the APnDP bit reset (see Table 604). The write data is sent in the data phase.

Table 607. Debug port registers

AddressA(3:2) valueR/WDescription
0x000RDP_DPIDR register. Contains the IDCODE for the debug port
WDP_ABORT register(1). Aborts the current AP transaction. This register is also used to clear the error flags in the DP_CTRLSTAT register.
0x401R/WIf field DPBANKSEL of register DP_SELECT is 0: DP_CTRLSTAT register. Controls the DP and provides status information.
If field DPBANKSEL of register DP_SELECT is 1: DP_DLCR register(2). Controls the operating mode of the SWD data link.
If field DPBANKSEL of register DP_SELECT is 2: DP_TARGETID register. Provides target identification information.
If field DPBANKSEL of register DP_SELECT is 3: DP_DLPIDR register(3). Provides the SWD protocol version.
0x810RDP_RESEND register(4). Returns the value that was returned by the last AP read or DP RDBUFF read. Used in the event of a corrupted read transfer.
WDP_SELECT register. Selects the access port, access port register bank, and DP register at address 0x4.
0xC11RDP_RDBUFF register:
Via JTAG-DP - Used to allow the debugger to get the final result after a sequence of operations (without requesting new JTAG-DP operation)
Via SW-DP - Contains the result of the preceding AP read access, allowing a new AP access to be avoided.
WDP_TARGETSEL register(5). On a write to DP_TARGETSEL immediately following a line reset sequence, the target is selected if both the following conditions are met:
Bits [31:28] match bits [31:28] in the DP_DLPIDR.
Bits [27:0] match bits [27:0] in the DP_TARGETID register.
Writing any other value de-selects the target. Debug tools must write 0xFFFF FFFF to de-select all targets. This is an invalid TARGETID value. All other invalid TARGETID values are reserved.
  1. 1. Access to the AP DP_ABORT register from the JTAG-DP is done using the ABORT instruction.
  2. 2. Only accessible via SW-DP. Register is “Reserved” via JTAG-DP.
  3. 3. Only accessible via SW-DP. Register is “Reserved” via JTAG-DP.
  4. 4. Only accessible via SW-DP. Register is “Reserved” via JTAG-DP.
  5. 5. Only accessible via SW-DP. Register is “Reserved” via JTAG-DP.

DP debug port identification register (DP_DPIDR)

Address offset: 0x0

Reset value: 0x6BA0 2477

31302928272625242322212019181716
REVISION[3:0]PARTNO[7:0]Res.Res.Res.MIN
rrrrrrrrrrrrr
1514131211109876543210
VERSION[3:0]DESIGNER[10:0]Res.
rrrrrrrrrrrrrrr

DP abort register (DP_ABORT)

Address offset: 0x0

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ORUNERRCLRWDERRCLRSTKERRCLRSTKCMPLRDAPABORT
wwwww
ST logo
ST logo

Bits 31:5 Reserved, must be kept at reset value.

Bit 4 ORUNERRCLR: overrun error clear

0: no effect

1: clears bit STICKYORUN of register DP_CTRLSTAT

Bit 3 WDERRCLR: write data error clear

0: no effect

1: clears bit WDATAERR of register DP_CTRLSTAT

Bit 2 STKERRCLR: sticky error clear

0: no effect

1: clears bit STICKYERR of register DP_CTRLSTAT

Bit 1 STKCMPCLR: sticky compare clear

0: no effect

1: clears bit STICKYCMP of register DP_CTRLSTAT

Bit 0 DAPABORT: current AP transaction abort

If an excessive number of WAIT responses are returned, indicating that the transaction has stalled, the current AP transaction is aborted.

0: no effect

1: aborts transaction

Debug port control/status register (DP_CTRLSTAT)

Address offset: 0x4

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.CDBGWRUPACKCDBGWRUPREQCDBGRSTACKCDBGRSTREQRes.Res.TRNCNT[11:4]
rrwrrwrwrwrwrwrwrwrwrw
1514131211109876543210
TRNCNT[3:0]MASKLANE[3:0]WDATAERRREADOKSTICKYERRSTICKYCMPTRNMODE[1:0]STICKYORUNORUNDETECT
rwrwrwrwrwrwrwrwrrrwrwrwrwrwrw

Bits 31:30 Reserved, must be kept at reset value.

Bit 29 CDBGPWRUPACK: debug power up acknowledge
Status of the debug domain power up acknowledge signal from the power controller.
0: domain powered down
1: domain powered up

Bit 28 CDBGPWRUPREQ: debug power up request
Controls the debug domain power up request signal to the power controller.
0: request power down
1: request power up

Bit 27 CDBGRSTACK: debug reset acknowledge
Status of the debug domain reset acknowledge signal from the reset controller.
0: domain reset inactive/pending
1: domain reset complete

Bit 26 CDBGRSTREQ: debug reset request
Controls the debug domain reset request signal to the reset controller.
0: de-assert reset request/request inactive
1: assert reset request/request active

Bits 25:24 Reserved, must be kept at reset value.

Bits 23:12 TRNCNT[11:0]: transaction counter
To program a sequence of transactions to incremental addresses via an AP, TRNCNT is loaded with the number of transactions to perform. It is decremented at the successful completion of each transaction.

Bits 11:8 MASKLANE[3:0]: lane comparison mask
Indicates the bytes to be masked in pushed-compare and pushed-verify operations (when bit TRNMODE of register DP_CTRLSTAT is 1 or 2). In the pushed operations, the word supplied in an AP write transaction is compared with the current value at the target AP address.
1XXX: includes byte lane 3 in comparisons
X1XX: includes byte lane 2 in comparisons
XX1X: includes byte lane 1 in comparisons
XXX1: includes byte lane 0 in comparisons

Bit 7 WDATAERR: write data error in SW-DP
Indicates any of the following cases:
– there is a parity or framing error on the data phase of a write
– a write that has been accepted by the DP is then discarded without being submitted to the AP
This bit is reset by writing 1 to the WDERRCLR bit of the DP_ABORT register.
0: no error
1: error has occurred
Note: This bit is reserved in JTAG-DP.

Bit 6 READOK: AP read response in SW-DP
Indicates the response to the last AP read access.
0: read not OK
1: read OK
Note: This bit is reserved in JTAG-DP.

Bit 5 STICKYERR: transaction error(1)

Indicates that an error occurred in an AP transaction.

0: no error

1: error has occurred

In the SW-DP, this bit is reset by writing 1 to the STKERRCLR bit of the DP_ABORT register.

In the JTAG-DP, this bit is reset by writing a 1 to it.

Bit 4 STICKYCMP: compare match(1)

Indicates that a match occurred in a pushed operation.

0: match if TRNMODE = 0x1; no match if TRNMODE = 0x2

1: no match if TRNMODE = 0x1; match if TRNMODE = 0x2

In the SW-DP, this bit is reset by writing 1 to the STKCMPCLR bit of the DP_ABORT register.

In the JTAG-DP, this bit is reset by writing a 1 to it.

Bits 3:2 TRNMODE[1:0]: transfer mode for AP write operations

For read operations, this field must be set to 0.

0: normal operation. AP transactions are passed directly to the AP.

1: pushed-verify operation. The DP stores the write data and performs a read transaction at the target AP address. The result of the read is compared with the stored data and if they do not match, the STICKYCMP bit is set.

2: pushed-compare operation. The DP stores the write data and performs a read transaction at the target AP address. The result of the read is compared with the stored data and if they match, the STICKYCMP bit is set.

3: reserved

In pushed operation, only the data bytes indicated by the MASKLANE field are included in the compare.

Bit 1 STICKYORUN: overrun(1)

Indicates that an overrun occurred (new transaction received before previous transaction completed). This bit is only set if the ORUNDETECT bit is set.

0: no overrun

1: overrun occurred

In the SW-DP, this bit is reset by writing 1 to the ORUNERRCLR bit of the DP_ABORT register. In the JTAG-DP, this bit is reset by writing a 1 to it.

Bit 0 ORUNDETECT: overrun detection mode enable

0: overrun detection disabled

1: overrun detection enabled. In the event of an overrun, the STICKYORUN bit will be set and subsequent transactions will be blocked until the STICKYORUN bit is cleared.

1. Access type is 'r' in SW-DP and 'rw' in JTAG-DP.

Address offset: 0x4

Reset value: 0x0000 0040

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.TURNROUND[1:0]Res.Res.Res.Res.Res.Res.Res.Res.
rwrw

Bits 31:10 Reserved, must be kept at reset value.

Bits 9:8 TURNROUND[1:0]: tristate period for SWDIO

0x0: 1 data bit period

0x1: 2 data bit periods

0x2: 3 data bit periods

0x3: 4 data bit periods

Bit 7 Reserved, must be kept at reset value.

Bit 6 Reserved, must be kept at reset value.

Bits 5:0 Reserved, must be kept at reset value.

DP target identification register (DP_TARGETID)

Address offset: 0x4

Reset value: 0x1501 0041

31302928272625242322212019181716
TREVISION[3:0]TPARTNO[15:4]
rrrrrrrrrrrrrrrr
1514131211109876543210
TPARTNO[3:0]TDESIGNER[10:0]Res.
rrrrrrrrrrrrrrr

Bits 31:28 TREVISION[3:0]: target revision

0x1: Rev. A

Bits 27:12 TPARTNO[15:0]: target part number

0x5010: STM32MP13x

Bits 11:1 TDESIGNER[10:0]: target designer JEDEC code

0x020: STMicroelectronics

Bit 0 Reserved, must be kept at reset value.

Address offset: 0x4

Reset value: 0x0000 0001

31302928272625242322212019181716
TINSTANCE[3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rrrr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PROTSVN[3:0]
rrrr

Bits 31:28 TINSTANCE[3:0]: target instance number
Defines the instance number for this device in a multi-drop system.
0x0: instance 0

Bits 27:4 Reserved, must be kept at reset value.

Bits 3:0 PROTSVN[3:0]: Serial Wire Debug protocol version
0x1: version 2

DP resend register (DP_RESEND)

Address offset: 0x8

Reset value: 0x0000 0000

31302928272625242322212019181716
RESEND[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
RESEND[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 RESEND[31:0]: last AP read or DP_RDBUFF read value
Returns the value that was returned by the last AP read or DP_RDBUFF read. Used in the event of a corrupted read transfer.

DP access port select register (DP_SELECT)

Address offset: 0x8

Reset value: 0xXXXX XXXX

31302928272625242322212019181716
APSEL[7:0]Res.Res.Res.Res.Res.Res.Res.Res.
wwwwwwww
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.APBANKSEL[3:0]DPBANKSEL[3:0]
wwwwwwww
ST logo
ST logo

Bits 31:24 APSEL[7:0]: access port select
Selects the access port for the next transaction.
0x0: AP0 - System bus access port (AXI-AP)
0x1: AP1 - Debug bus access port (APB-AP)

Bits 23:8 Reserved, must be kept at reset value.

Bits 7:4 APBANKSEL[3:0]: AP register bank select
Selects the 4-word register bank on the active AP for the next transaction.

Bits 3:0 DPBANKSEL[3:0]: DP register bank select
Selects the register at address 0x4 of the debug port.
0x0: DP_CTRLSTAT register
0x1: DP_DLCR register
0x2: DP_TARGETID register
0x3: DP_DLPIDR register
Others: reserved

DP read buffer register (DP_RDBUFF)

Address offset: 0xC
Reset value: 0x0000 0000

31302928272625242322212019181716
RDBUFF[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
RDBUFF[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 RDBUFF[31:0]: last AP read access value
Contains the value that was returned by the last AP read access. The value returned by an AP read access can either be obtained using a second read access to the same address, which will initiate a new transaction on the corresponding bus, or else it can be read from this register, in which case no new AP transaction occurs.

DP target identification register (DP_TARGETSEL)

Address offset: 0xC
Reset value: 0XXXXX XXXX

31302928272625242322212019181716
TINSTANCE[3:0]TPARTNO[15:4]
wwwwwwwwwwwwwwww
1514131211109876543210
TPARTNO[3:0]TDESIGNER[10:0]Res.
wwwwwwwwwwwwww
ST logo
ST logo

Bits 31:28 TINSTANCE[3:0]: target instance number

Defines the instance number for the target device in a multi-drop system. These bits must be written with the same value as field TINSTANCE in register DP_DLPIDR in order to select this device.

Bits 27:12 TPARTNO[15:0]: target part number

Defines the part number for the target device. These bits must be written with the same value as field TPARTNO in register DP_TARGETID in order to select this device.

Bits 11:1 TDESIGNER[10:0]: target designer JEDEC code

Defines the JEDEC code for the target device. These bits must be written with the same value as field TDESIGNER in register DP_TARGETID in order to select this device.

Bit 0 Reserved, must be kept at reset value.

59.9 Access ports

Figure 762. Debug and access port connections

Block diagram showing the connections between JTAG / SWD, SW-DP, DAPBUS, AP0 (AXI-AP), AP1 (APB-AP), System interconnect (AXI), and System debug bus (APB-D).
graph LR
    JTAG_SWD[JTAG / SWD] <--> SWDP[SW-DP]
    SWDP <-->|DAPBUS| AP0[AP0
(AXI-AP)] SWDP <-->|DAPBUS| AP1[AP1
(APB-AP)] AP0 <--> AXI[System interconnect (AXI)] AP1 <--> APB_D[System debug bus (APB-D)]
Block diagram showing the connections between JTAG / SWD, SW-DP, DAPBUS, AP0 (AXI-AP), AP1 (APB-AP), System interconnect (AXI), and System debug bus (APB-D).

MSv65258V1

There are two access ports (AP) attached to the DP:

Both access ports are of type MEM-AP, that is to say the debug and trace component registers are mapped in the address space of the associated debug bus. The AP is seen by the debugger as a set of 32-bit registers organised in banks of four registers each. Some of these registers are used to configure or monitor the AP itself, while others are used to perform a transfer on the bus. The AP registers are listed in Table 610.

The address of the AP registers is composed of

The contents of the DP_SELECT register APSEL field in the DP define which MEM-AP is being accessed.

The debugger can access the AP registers as follows:

  1. 1. Program the DP_SELECT register APSEL field in the DP to choose one of the APs, and the APBANKSEL field to select the register bank to be accessed (refer to DP access port select register (DP_SELECT)).
  2. 2. Program the A(3:2) field in the APACC register, if using JTAG, with the register address within the bank. Program the RnW bit to select a Read or Write. In the case of a write, program the DATA field with the write data. If using SWD, the A(3:2) and RnW fields are part of the Packet Request word sent to the SW-DP with the APnDP bit set (see Table 604). The write data is sent in the data phase.

The debugger can access the memory mapped debug component registers through the MEM-AP registers (that is using the above AP register access procedure) as follows:

  1. 1. Program the transaction target address in the TAR register.
  2. 2. Program the CSW register, if necessary, with the transfer parameters (AddrInc for example).
  3. 3. Write to or read from the DRW register to initiate a bus transaction at the address held in the TAR register. Alternatively, a read or write to Banked Data register BDn will trigger an access to address TAR[31:4] + n (this allows up to four consecutive addresses to be accessed without changing the address in the TAR register).

For more detailed information on the MEM-AP, refer to the Arm® Debug Interface Architecture Specification [1].

59.9.1 Authentication

The effect of the authentication signals for each access port is shown in Table 608 to Table 609.

Table 608. AP0 (system interconnect) authentication behavior

dbgenspidenOthersBehavior
0XXAll transfers blocked. Any attempt to perform a transfer will result in an error.
10Secure transfers blocked. Any attempt to perform a secure transfer will result in an error. Non-secure transfers are enabled.
11Both non-secure and secure transfers are enabled.

Table 609. AP1 (Debug APB) authentication behavior

deviceenOthersBehavior
0XAll transfers blocked.
1Transfers enabled. Note: access to certain components may return an error depending on the state of the other authentication signals.

59.9.2 MEM-AP registers

Table 610. MEM-AP registers

AddressAPBANKSELA(3:2)NameDescription
0x000x00CSWControl/Status Word register - Refer to section
AP0 control/status word register (AP0_CSW)
AP1 control/status word register (AP1_CSW)
0x040x01TARTransfer Address register - Refer to section
AP transfer address register (AP_TAR)
0x08---Reserved
0x0C0x03DRWData Read/Write register - Refer to section
AP data read/write register (AP_DRW)
0x100x10BD0Banked Data 0 register - Refer to section
AP banked data register 0 (AP_BD0)
0x140x11BD1Banked Data 1 register - Refer to section
AP banked data register 1 (AP_BD1)
0x180x12BD2Banked Data 2 register - Refer to section
AP banked data register 2 (AP_BD2)
0x1C0x13BD3Banked Data 3 register - Refer to section
AP banked data register 3 (AP_BD3)
0x200x20ACEACE barrier transaction register (AXI-AP only) - Refer to section
AP ACE barrier transaction register (AP_ACE)
0x24-0xEC---Reserved
0xF0---Reserved
0xF40xF1CFGConfiguration register (AXI-AP only) - Refer to section
AP configuration register (AP_CFG)
0xF80xF2BASEDebug Base Address register (RO) - Refer to section
AP x base address register (APx_BASE) (x = 0 to 1)
0xFC0xF3IDRIdentification register (RO) - Refer to section
AP x identification register (APx_IDR) (x = 0 to 1)

AP0 control/status word register (AP0_CSW)

Address offset: 0x0

Reset value: 0x3080 6042

For a detailed description of each field, refer to the Arm AMBA protocol specifications for the corresponding bus [7.,8.,9.].

AP0 (AXI-AP):

31302928272625242322212019181716
Res.PROT[2:0]CACHE[3:0]SPISTATUSRes.Res.Res.Res.Res.Res.Res.
rwrwrwrwrwrwrwr
1514131211109876543210
Res.DOMAIN[1:0]ACEENABLEMODE[3:0]TRINPROGDBGSTATUSADDRINC[1:0]Res.SIZE[2:0]
rwrwrwrwrwrwrwrrrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bits 30:28 PROT[2:0]: bus transaction protection attributes

Bits 27:24 CACHE[3:0]: bus transaction cache attributes

Bit 23 SPISTATUS: status of spiden authentication signal (read only)

Bits 22:15 Reserved, must be kept at reset value.

ST logo
ST logo

AP1 control/status word register (AP1_CSW)

Address offset: 0x0

Reset value: 0x8000 0042

For a detailed description of each field, refer to the Arm AMBA protocol specifications for the corresponding bus [7.,8.,9.] .

AP1 (APB-AP):

31302928272625242322212019181716
DBGSWENABLERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.MODE[3:0]TRINPROGDEVICEENADDRINC[1:0]Res.SIZE[2:0]
rwrwrwrwrrrwrwrrr
Bit 31 DBGSWENABLE: software access enableDefines whether the system debug APB can be accessed by software. This bit is anded with the dbgswenable signal from the BSEC.

0: disable software access

1: enable software access if dbgswenable signal from BSEC is also high

Bits 30:12 Reserved, must be kept at reset value.

Bits 11:8 MODE[3:0]: barrier support enabled

Defines if memory barrier operation is supported.

0x0: not supported

Bit 7 TRINPROG: transfer in progress (read only)

Indicates if a bus transfer is in progress on the AP.

0x0: no transfer in progress

0x1: bus transfer in progress

Bit 6 DEVICEEN: device enabled (read only)Defines whether the system debug APB can be accessed by the debugger. This bit reflects the state of the deviceen signal from the BSEC.

0x0: APB access disabled. Any attempt to initiate a transaction on the AP will return an error.

0x1: APB access enabled

Bits 5:4 ADDRINC[1:0]: auto-increment mode

Defines whether TAR address is automatically incremented after a transaction.

0x0: no auto-increment

0x1: address is incremented by the size in bytes of the transaction (SIZE field)

Others: reserved

Bit 3 Reserved, must be kept at reset value. Bits 2:0 SIZE[2:0]: size of next memory transaction access (read only)

0x2: word (32 bits)

AP transfer address register (AP_TAR)

Address offset: 0x04

Reset value: 0x0000 0000

31302928272625242322212019181716
ADDRESS[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
ADDRESS[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Bits 31:0 ADDRESS[31:0] : address of the current transfer (bits 31:0)

AP data read/write register (AP_DRW)

Address offset: 0x0C

Reset value: 0x0000 0000

31302928272625242322212019181716
DATA[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DATA[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Bits 31:0 DATA[31:0] : read/write data for current transfer

In write mode, this is the write data value. In read mode, this is the read data value.

For 64-bit access (AXI-AP only), multiple accesses must be initiated to DRW to make a single AXI access.

Read: the first read of DRW in a sequence initiates a memory access. The first read returns the lower 32 bits of data. Subsequent read access returns the upper 32 bits of data. If a write to the CSW or TAR is initiated before the sequence completes, then the read access is terminated, and read data is no longer available.

Write: the first write to DRW specifies the least significant 32 bits of data to be written. Subsequent write access specifies the most significant 32 bits to be written. If a write to the CSW is initiated before the sequence completes, then the write access is not initiated on the AXI interface.

Combining partial reads and writes in a sequence terminates the earlier access. Also, the latest access is not recognized.

Any write access to the CSW register, TAR, or to any other register in the AP during a sequence terminates the ongoing access. Also, the current access is not recognized. If a write sequence is terminated, then there is no write on the AXI interface.

AP banked data register 0 (AP_BD0)

Address offset: 0x10

Reset value: 0x0000 0000

31302928272625242322212019181716
DATA[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DATA[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 DATA[31:0]: read/write data for current transfer

The transaction address is TAR[31:4] << 4 + 0x0.

AP banked data register 1 (AP_BD1)

Address offset: 0x14

Reset value: 0x0000 0000

31302928272625242322212019181716
DATA[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DATA[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 DATA[31:0]: read/write data for current transfer

The transaction address is TAR[31:4] << 4 + 0x4.

AP banked data register 2 (AP_BD2)

Address offset: 0x18

Reset value: 0x0000 0000

31302928272625242322212019181716
DATA[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DATA[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 DATA[31:0]: read/write data for current transfer

The transaction address is TAR[31:4] << 4 + 0x8.

AP banked data register 3 (AP_BD3)

Address offset: 0x1C

Reset value: 0x0000 0000

31302928272625242322212019181716
DATA[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DATA[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 DATA[31:0]: read/write data for current transfer
The transaction address is TAR[31:4] << 4 + 0xC.

AP ACE barrier transaction register (AP_ACE)

Address offset: 0x20
Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.BARTRAN[1:0]TRGBARTRAN
rwrwrw

Bits 31:3 Reserved, must be kept at reset value.
Bits 2:1 BARTRAN[1:0]: barrier transactions
0x0: barrier with normal access
0x1: memory barrier
0x2: reserved
0x3: synchronization barrier
Bit 0 TRGBARTRAN: enable barrier transaction
0: disable
1: enable

AP configuration register (AP_CFG)

Address offset: 0xF4
Reset value: 0x0000 0002

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LDRes.LA
rr
ST logo
ST logo

Bits 31:3 Reserved, must be kept at reset value.

AP x base address register (APx_BASE) (x = 0 to 1)

Address offset: 0xF8

Reset value: Block 0: 0x0000 0002

Reset value: Block 1: 0xE008 0003

31302928272625242322212019181716
BASEADDR[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
BASEADDR[15:12]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FORMATENTRYPRESENT
rrrrrr

AP x identification register (APx_IDR) (x = 0 to 1)

Address offset: 0xFC

Reset value: Block 0: 0x3477 0004

Reset value: Block 1: 0x4477 0003

ST logo
ST logo
31302928272625242322212019181716
REVISION[3:0]JEDECBANK[3:0]JEDECCODE[6:0]MEMAP
rrrrrrrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.IDENTITY[7:0]
rrrrrrrr

Bits 31:28 REVISION[3:0]: revision code
0x3: r1p0
0x4: r0p5
0x6: r0p7

Bits 27:24 JEDECBANK[3:0]: JEDEC bank
0x4: Arm®

Bits 23:17 JEDECCODE[6:0]: JEDEC code
0x3B: Arm®

Bit 16 MEMAP: memory access port
0x1: standard register map

Bits 15:8 Reserved, must be kept at reset value.

Bits 7:0 IDENTITY[7:0]: AP type
0x04: AXI-AP
0x03: APB-AP

59.10 System debug features

The system debug features include the following CoreSight™ components:

These components are accessible by the debugger via the system APB-AP and its associated APB debug bus. They are also accessible by the Cortex®-A7 processor.

The MCU debug unit (DBG_MCU) is also accessed via the Debug APB. This non-CoreSight™ component contains registers for configuring the behavior of the device in debug mode.

59.10.1 System ROM tables

There are three ROM tables on the Debug APB bus. The ROM table is a CoreSight™ component that contains the base addresses of the CoreSight™ debug components on the APB bus. These tables allow a debugger to discover the topology of the CoreSight™ system automatically.

ST logo
ST logo

The first table points to the CoreSight™ components located in the debug subsystem: DBGMCU, TSGEN, as well as to the Trace subsystem ROM table and the Cortex-A7 subsystem ROM table. The table occupies a 4-Kbyte, 32-bit wide chunk of APB address space, from 0xE008 0000 to 0xE008 0FFC when accessed by the debugger, and 0x5008 0000 to 0x5008 0FFC when accessed from the system bus.

Table 611. Debug subsystem ROM table
Address offset in ROM tableComponent nameComponent base address (debugger)Component base address (system bus)Component address offsetSizeData
0x000DBGMCU0xE008 10000x5008 10000x0 10004 Kbyte0x0000 1003
0x004Timestamp generator0xE008 20000x5008 20000x0 20004 Kbyte0x0000 2003
0x008Trace Sub-system ROM table0xE009 00000x5009 00000x1 00004 Kbyte0x0001 0003
0x00CCortex-A7 Subsystem ROM table0xE00C 00000x500C 00000x4 00004 Kbyte0x0004 0003
0x010Top of table----0x0000 0000
0x014 to 0xFC8Reserved----0x0000 0000
0xFCC to 0xFFCROM table registers----See Table 614

The second table occupies a 4-Kbyte, 32-bit wide chunk of APB address space, from 0xE009 0000 to 0xE009 0FFC when accessed by the debugger, and 0x5009 0000 to 0x5009 0FFC when accessed from the system bus. It points to the CoreSight™ components located in the trace subsystem.

Table 612. Trace subsystem ROM table
Address offset in ROM tableComponent nameComponent base address (debugger)Component base address (system bus)Component address offsetSizeEntry
0x000ETF0xE009 20000x5009 20000x20004 Kbyte0x0000 2003
0x004TPIU0xE009 30000x5009 30000x30004 Kbyte0x0000 3003
0x008Trace CTI0xE009 40000x5009 40000x40004 Kbyte0x0000 4003
0x00CTop of table----0x0000 0000

Table 612. Trace subsystem ROM table (continued)

Address offset in ROM tableComponent nameComponent base address (debugger)Component base address (system bus)Component address offsetSizeEntry
0x010 to 0xFC8Reserved----0x0000 0000
0xFCC to 0xFFCROM table registers----See Table 614

The third table occupies a 4-Kbyte, 32-bit wide chunk of APB address space, from 0xE00C 0000 to 0xE00C 0FFC when accessed by the debugger, and 0x500C 0000 to 0x500C 0FFC when accessed from the system bus. It points to the CoreSight™ components located in the Cortex-A7 subsystem.

Table 613. Cortex-A7 subsystem ROM table

Address offset in ROM tableComponent nameComponent base address (debugger)Component base address (system bus)Component address offsetSizeData
0x000C-A7 DBG0xE00D 00000x500D 00000x1 00004 Kbyte0x0001 0003
0x004C-A7 PMU0xE00D 10000x500D 10000x1 10004 Kbyte0x0001 1003
0x008Reserved----0x0001 2002
0x00CReserved----0x0001 3002
0x010Reserved----0x0001 4002
0x014Reserved----0x0001 5002
0x018Reserved----0x0001 6002
0x01CReserved----0x0001 7002
0x020C-A7 CTI0xE00D 80000x500D 80000x1 80004 Kbyte0x0001 8003
0x024Reserved----0x0001 9002
0x028Reserved----0x0001 A002
0x02CReserved----0x0001 B002
0x030C-A7 ETM0xE00D C0000x500D C0000x1 C0004 Kbyte0x0001 C003
0x034Reserved----0x0001 D002
0x038Reserved----0x0001 E002
0x03CReserved----0x0001 F002
0x040Top of table----0x0000 0000

Table 613. Cortex-A7 subsystem ROM table (continued)

Address offset in ROM tableComponent nameComponent base address (debugger)Component base address (system bus)Component address offsetSizeData
0x044 to 0xFC8Reserved----0x0000 0000
0xFCC to 0xFFCROM table registers----See Table 614

The top of each ROM table contains a number of read only registers, including the standard CoreSight™ component and peripheral identity registers, refer to Table 614.

Each debug component occupies one or more 4-Kbyte blocks of address space. This block of address space is referred to as the Debug Register File for the component.

The component address offset field of a ROM Table entry points to the start of the last 4-Kbyte block of the address space of the component. This block always contains the Component and Peripheral ID Registers for the component, starting at offset 0xFD0 from the start of the block. The 4-Kbyte count field, bits PIDR4[7:4], specifies the number of 4-Kbyte blocks for the component. Therefore, the process for finding the start of the address space for a component is:

  1. 1. Read the ROM Table entry for the component, and extract the Address offset for the component. The Address offset is bits [31:12] of the ROM Table entry.
  2. 2. Use the Address offset, together with the base address of the ROM Table, to calculate the base address of the component. The component base address is:
    \[\text{Component\_Base\_Address} = \text{ROM\_Base\_Address} + (\text{Address\_Offset} \ll 12)\]
    Component_Base_Address is the start address of the final 4-Kbyte block of the address space for the component.
  3. 3. Read the Peripheral ID4 Register for the component. The address of this register is:
    \[\text{Peripheral\_ID4\_address} = \text{Component\_Base\_Address} + 0xFD0\]
  4. 4. Extract the 4-Kbyte count field, bits [7:4], from the value of the Peripheral ID4 Register.
  5. 5. Use the 4-Kbyte count value to calculate the start address of the address space for the component. If the 4-Kbyte count field is 0000, indicating a count value of 1, the address space for the component starts at the Component_Base_Address obtained at stage 2.

The topology for the CoreSight™ components on the debug APB is shown in Figure 763.

For more information on the use of the ROM table, refer to the Arm® Debug Interface Architecture Specification [1].

Figure 763. Debug APB CoreSight™ topology

Figure 763. Debug APB CoreSight™ topology diagram showing the interconnect between APB-AP BASE register (0xF8) at 0xE0080000, pointing to Debug Subsystem ROM table @0xE0080000, which references DBGMCU @0xE0081000, Timestamp Generator @0xE0082000, Trace Subsystem ROM table @0xE0090000 (which further points to Trace FIFO ETF @0xE0092000, Trace Port Interface TPIU @0xE0093000, System CTI @0xE0094000), and Debug Subsystem ROM table @0xE00C0000 (which points to C-A7 Debug @0xE00D0000, C-A7 PMU @0xE00D1000, C-A7 CTI @0xE00D8000, and C-A7 ETM @0xE00DC000).
Figure 763. Debug APB CoreSight™ topology diagram showing the interconnect between APB-AP BASE register (0xF8) at 0xE0080000, pointing to Debug Subsystem ROM table @0xE0080000, which references DBGMCU @0xE0081000, Timestamp Generator @0xE0082000, Trace Subsystem ROM table @0xE0090000 (which further points to Trace FIFO ETF @0xE0092000, Trace Port Interface TPIU @0xE0093000, System CTI @0xE0094000), and Debug Subsystem ROM table @0xE00C0000 (which points to C-A7 Debug @0xE00D0000, C-A7 PMU @0xE00D1000, C-A7 CTI @0xE00D8000, and C-A7 ETM @0xE00DC000).

MSv65259V1

ROM table registers

SYSROM memory type register (SYSROM_MEMTYPE)

Address offset: 0xFCC

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SYSMEM
r

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 SYSMEM: system memory
0x0: no system memory is present on this bus

SYSROM CoreSight peripheral identity register 4 (SYSROM_PIDR4)

Address offset: 0xFD0

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SIZE[3:0]JEP106CON[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 SIZE[3:0]: register file size
0x0: register file occupies a single 4-Kbyte region

Bits 3:0 JEP106CON[3:0]: JEP106 continuation code
0x0: STMicroelectronics JEDEC continuation code

SYSROM CoreSight peripheral identity register 0 (SYSROM_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 0000

ST logo
ST logo
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PARTNUM[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PARTNUM[7:0]: part number bits [7:0]

0x00: ROM table part number

SYSROM CoreSight peripheral identity register 1 (SYSROM_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 0005

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.JEP106ID[3:0]PARTNUM[11:8]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 JEP106ID[3:0]: JEP106 identity code bits [3:0]

0x0: STMicroelectronics JEDEC code

Bits 3:0 PARTNUM[11:8]: part number bits [11:8]

0x5: ROM table part number

SYSROM CoreSight peripheral identity register 2 (SYSROM_PIDR2)

Address offset: 0xFE8

Reset value: 0x0000 000A

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.REVISION[3:0]JEDECJEP106ID[6:4]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 REVISION[3:0]: component revision number
0x0: r0p0

Bit 3 JEDEC: JEDEC assigned value
0x1: designer ID specified by JEDEC

Bits 2:0 JEP106ID[6:4]: JEP106 identity code bits [6:4]
0x2: STMicroelectronics JEDEC code

SYSROM CoreSight peripheral identity register 3 (SYSROM_PIDR3)

Address offset: 0xFEC

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.REVAND[3:0]CMOD[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 REVAND[3:0]: metal fix version
0x0: no metal fix

Bits 3:0 CMOD[3:0]: customer modified
0x0: no customer modifications

SYSROM CoreSight component identity register 0 (SYSROM_CIDR0)

Address offset: 0xFF0

Reset value: 0x0000 000D

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[7:0]: component ID bits [7:0]
0x0D: common ID value

SYSROM CoreSight peripheral identity register 1 (SYSROM_CIDR1)

Address offset: 0xFF4

Reset value: 0x0000 0010

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CLASS[3:0]PREAMBLE[11:8]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 CLASS[3:0]: component ID bits [15:12] - component class

0x1: ROM table component

Bits 3:0 PREAMBLE[11:8]: component ID bits [11:8]

0x0: common ID value

SYSROM CoreSight component identity register 0 (SYSROM_CIDR2)

Address offset: 0xFF8

Reset value: 0x0000 0005

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[19:12]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[19:12]: component ID bits [23:16]

0x05: common ID value

SYSROM CoreSight component identity register 3 (SYSROM_CIDR3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[27:20]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[27:20]: component ID bits [31:24]

0xB1: common ID value

ROM table registers

Table 614. ROM table register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFCCSYSROM_MEMTYPERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SYSMEM
Reset value0
0xFD0SYSROM_PIDR4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SIZE[3:0]JEP106CON[3:0]
Reset value00000000
0xFD4SYSROM_PIDR5Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0xFD8SYSROM_PIDR6Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0xFDCSYSROM_PIDR7Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0xFE0SYSROM_PIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PARTNUM[7:0]
Reset value00000000
0xFE4SYSROM_PIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.JEP106ID[3:0]PARTNUM[11:8]
Reset value00000101
0xFE8SYSROM_PIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVISION[3:0]JEDECJEP106ID[6:4]
Reset value000110100
0xFECSYSROM_PIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVAND[3:0]CMOD[3:0]
Reset value000000000
0xFF0SYSROM_CIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[7:0]
Reset value00001101
0xFF4SYSROM_CIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLASS[3:0]PREAMBLE[11:8]
Reset value00010000

Table 614. ROM table register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFF8SYSROM_CIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[19:12]
Reset value00000101
0xFFCSYSROM_CIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[27:20]
Reset value10110001

59.10.2 CoreSight™ global timestamp generator (TSGEN)

The CoreSight™ Global Timestamp Generator contains a 64-bit counter that provides a common timing reference for all of the trace sources in the system, namely the ETM. The ETM inserts timestamps in the trace streams that allow the trace analyser to recover the chronological order of trace packets.

The TSG registers are accessible over the Debug APB. This allows the debugger or debug software to:

For more information on the CoreSight™ Timestamp Generator CoreSight™ component, refer to the Arm® CoreSight™ SoC-400 Technical Reference Manual [2].

The timestamp generator is located in the ck_apb_dbg domain, and the timestamp is distributed to the Cortex®-A7. To simplify the distribution over clock domain boundaries, the 64-bit timestamp is encoded in 7 bits, then decoded in the destination power domain. The timestamp distribution is shown in Figure 764.

Whenever the frequency of the TSGEN or Cortex®-A7 changes, the ETM of the processor receives a pulse on the TSCLKCHANGE input.

Figure 764. CoreSight™ timestamp distribution

Block diagram of CoreSight™ timestamp distribution. The diagram shows a flow from the Debug APB to the Timestamp generator (containing a Counter [63:0]), which outputs a 64-bit signal to a Timestamp encoder. The encoder outputs a 7-bit signal that crosses a dashed line representing the clock domain boundary between the SoC domain and the High frequency CPU domain. In the High frequency CPU domain, the 7-bit signal is fed into a Timestamp decoder, which outputs a 64-bit signal to the ETM within the Cortex®-A7 block.
graph LR
    APB[Debug APB] --> TG[Timestamp generator]
    subgraph TG
        Counter[Counter [63:0]]
    end
    TG -- 64 --> Encoder[Timestamp encoder]
    Encoder -- 7 --> Boundary(( ))
    subgraph SoC_domain [SoC domain]
        Boundary
    end
    subgraph HF_CPU_domain [High frequency CPU domain]
        Boundary -- 7 --> Decoder[Timestamp decoder]
        Decoder -- 64 --> ETM[ETM]
        subgraph Cortex_A7
            ETM
        end
    end
    
Block diagram of CoreSight™ timestamp distribution. The diagram shows a flow from the Debug APB to the Timestamp generator (containing a Counter [63:0]), which outputs a 64-bit signal to a Timestamp encoder. The encoder outputs a 7-bit signal that crosses a dashed line representing the clock domain boundary between the SoC domain and the High frequency CPU domain. In the High frequency CPU domain, the 7-bit signal is fed into a Timestamp decoder, which outputs a 64-bit signal to the ETM within the Cortex®-A7 block.

MSv65260V1

Timestamp generator registers

TSG counter control register (TSG_CNTCR)

Address offset: 0x000

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HDBGEN
rwrw

Bits 31:2 Reserved, must be kept at reset value.

Bit 1 HDBG: halt on debug

0: normal operation

1: halts counter when system-wide debug state is detected (via CTI)

Bit 0 EN: enable

0: counter disabled

1: counter enabled and incrementing

TSG counter status register (TSG_CNTSR)

Address offset: 0x004

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBGHRes.
r

Bits 31:2 Reserved, must be kept at reset value.

Bit 1 DBGH: debug halted

0: normal operation

1: counter halted due to system-wide debug state

Bit 0 Reserved, must be kept at reset value.

TSG current counter value lower register (TSG_CNTCVL)

Address offset: 0x008

Reset value: 0x0000 0000

31302928272625242322212019181716
CNTCVU_L_32[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
CNTCVU_L_32[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 CNTCVU_L_32[31:0]: timestamp counter current value (least significant 32 bits)

To change the current timestamp value, write the least significant 32 bits of the new value to this register before writing the most significant 32 bits to TSG_CNTCVU. The timestamp value is not changed until the TSG_CNTCVU register is written to.

Note: Bit EN of register TSG_CNTCR must be cleared before writing to register TSG_CNTCVL.

TSG current counter value upper register (TSG_CNTCVU)

Address offset: 0x00C

Reset value: 0x0000 0000

31302928272625242322212019181716
CNTCVU_U_32[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
CNTCVU_U_32[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 CNTCVU_U_32[31:0]: timestamp counter current value (most significant 32 bits)

To change the current timestamp value, write the least significant 32 bits of the new value to TSG_CNTCVL before writing the most significant 32 bits to this register. The 64-bit timestamp value is updated with the value from both writes when this register is written to.

Note: Bit EN of register TSG_CNTCR must be cleared before writing to register TSG_CNTCVU.

TSG base frequency ID register (TSG_CNTFID0)

Address offset: 0x020

Reset value: 0x0000 0000

31302928272625242322212019181716
FREQ[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
FREQ[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 FREQ[31:0]: increment frequency of TSG counter in Hz

This field must be programmed with the trace generator clock frequency whenever it changes.

TSG CoreSight peripheral identity register 4 (TSG_PIDR4)

Address offset: 0xFD0

Reset value: 0x0000 0004

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SIZE[3:0]JEP106CON[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 SIZE[3:0] : register file size

0x0: register file occupies a single 4-Kbyte region

Bits 3:0 JEP106CON[3:0] : JEP106 continuation code0x4: Arm ® JEDEC code

TSG CoreSight peripheral identity register 0 (TSG_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 0001

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PARTNUM[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PARTNUM[7:0] : part number bits [7:0]

0x01: TSG part number

TSG CoreSight peripheral identity register 1 (TSG_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00B1

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.JEP106ID[3:0]PARTNUM[11:8]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 JEP106ID[3:0]: JEP106 identity code bits [3:0]
0xB: Arm® JEDEC code

Bits 3:0 PARTNUM[11:8]: part number bits [11:8]
0x1: TSG part number

TSG CoreSight peripheral identity register 2 (TSG_PIDR2)

Address offset: 0xFE8

Reset value: 0x0000 001B

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.REVISION[3:0]JEDECJEP106ID[6:4]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 REVISION[3:0]: component revision number
0x1: r0p1

Bit 3 JEDEC: JEDEC assigned value
0x1: designer ID specified by JEDEC

Bits 2:0 JEP106ID[6:4]: JEP106 identity code bits [6:4]
0x3: Arm® JEDEC code

TSG CoreSight peripheral identity register 3 (TSG_PIDR3)

Address offset: 0xFEC

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.REVAND[3:0]CMOD[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 REVAND[3:0]: metal fix version
0x0: no metal fix

Bits 3:0 CMOD[3:0]: customer modified
0x0: no customer modifications

TSG CoreSight component identity register 0 (TSG_CIDR0)

Address offset: 0xFF0

Reset value: 0x0000 000D

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[7:0]: component ID bits [7:0]
0x0D: common ID value

TSG CoreSight peripheral identity register 1 (TSG_CIDR1)

Address offset: 0xFF4

Reset value: 0x0000 00F0

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CLASS[3:0]PREAMBLE[11:8]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 CLASS[3:0]: component ID bits [15:12] - component class
0xF: CoreSight™ Soc-400 component

Bits 3:0 PREAMBLE[11:8]: Component ID bits [11:8]
0x0: common ID value

TSG CoreSight component identity register 2 (TSG_CIDR2)

Address offset: 0xFF8

Reset value: 0x0000 0005

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[19:12]
rrrrrrrr
ST logo
ST logo

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[19:12]: component ID bits [23:16]

0x05: common ID value

TSG CoreSight component identity register 3 (TSG_CIDR3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[27:20]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[27:20]: component ID bits [31:24]

0xB1: common ID value

Timestamp generator registers map

Table 615. TSGEN register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000TSG_CNTCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EN
Reset value00
0x004TSG_CNTSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00
0x008TSG_CNTCVLCNTCVU_L_32[31:0]
Reset value00000000000000000000000000000000
0x00CTSG_CNTCVUCNTCVU_U_32[31:0]
Reset value00000000000000000000000000000000
0x020TSG_CNTFID0FREQ[31:0]
Reset value00000000000000000000000000000000
0xFD0TSG_PIDR4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SIZE[3:0]JEP106CON[3:0]
Reset value000000100
0xFD4TSG_PIDR5Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value

Table 615. TSGEN register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFD8TSG_PIDR6Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0xFDCTSG_PIDR7Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0xFE0TSG_PIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PARTNUM[7:0]
Reset value00000001
0xFE4TSG_PIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.JEP106ID[3:0]PARTNUM[11:8]
Reset value10110001
0xFE8TSG_PIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVISION[3:0]JEDECJEP106ID[6:4]
Reset value00011011
0xFECTSG_PIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVAND[3:0]CMOD[3:0]
Reset value00000000
0xFF0TSG_CIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[7:0]
Reset value00001101
0xFF4TSG_CIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLASS[3:0]PREAMBLE[11:8]
Reset value11110000
0xFF8TSG_CIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[19:12]
Reset value00000101
0xFFCTSG_CIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[27:20]
Reset value10110001

59.10.3 Cross trigger interface (CTI) and matrix (CTM)

The cross trigger interface (CTI) and cross trigger matrix (CTM) together form the CoreSight™ embedded cross trigger feature. There are two CTI components, one in the trace subsystem, and one for the Cortex®-A7. The CTIs are connected to each other via the CTM. The trace subsystem CTI and the Cortex®-A7 CTI are accessible to the debugger via the debug APB.

Figure 765. Embedded cross trigger

Block diagram of the Embedded cross trigger (Figure 765) showing Cortex-A7 CTI interconnected via CTM channels [3:0] with Trace Subsystem CTI, along with APB-Debug interfaces, Cortex-A7 CPU, PMU, ETM, GIC, TSGEN, ETF, and TPIU.
Block diagram of the Embedded cross trigger (Figure 765) showing Cortex-A7 CTI interconnected via CTM channels [3:0] with Trace Subsystem CTI, along with APB-Debug interfaces, Cortex-A7 CPU, PMU, ETM, GIC, TSGEN, ETF, and TPIU.

MSv65261V1

The CTIs allow events from various sources to trigger debug and/or trace activity. For example, a transition detected on an external trigger input can start code trace.

Each CTI has up to 8 trigger inputs and 8 trigger outputs. Any input can be connected to any output, on the same CTI, or on another CTI via the CTM.

The trigger input and output signals for each CTI are listed in Table 616 to Table 619.

Table 616. Trace Subsystem CTI inputs

Source signalSource componentComments
0DBTRIGIGPIOExternal trigger input - allows an external signal to generate a debug event
1ETFACQCOMPETFETF capture finished - allows a debug event to be generated when the trace FIFO is empty
2ETFFULLETFETF full flag - allows a debug event to be generated when the trace FIFO is full
3--Not used
4--Not used
5--Not used
6--Not used
7--Not used
Table 617. Trace Subsystem CTI outputs
Output signalDestination componentComments
0DBTRIGOGPIOExternal I/O trigger output - allows monitoring of events on the external DBTRIGO pin
1TPIUFLUSHTPIUTrace port flush trigger - causes the TPIU FIFO to be flushed
2TPIUTRIGTPIUTrace Port enable trigger - starts trace output on the external trace port
3ETFTRIGETFETF enable trigger - starts filling the Trace FIFO
4ETFFLUSHETFETF flush trigger - causes the Trace FIFO to be flushed
5--Not used
6--Not used
7HLTDBGTSGENHalts timestamp in debug - freezes the TSGEN timestamp counter
Table 618. Cortex®-A7 CTI inputs
Source signalSource componentComments
0DBGTRIGGERCortex®-A7 CPUPulsed high when the core enters in debug state
1nPMUIRQPMUPerformance monitor interrupt
2EXTOUT0ETMETM external trigger output
3EXTOUT1ETMETM external trigger output
4COMMTXCortex®-A7 CPUDebug comm port transmit
5COMMRXCortex®-A7 CPUDebug comm port receive
6ETMTRIGGERETMETM trigger
7--Not used
Table 619. Cortex®-A7 CTI outputs
Output signalDestination componentComments
0EDBGRQCortex®-A7 CPUCPU halt request - puts CPU in debug mode
1EXTIN0ETMETM external input
2EXTIN1ETMETM external input
3EXTIN2ETMETM external input
4EXTIN3ETMETM external input
5--Not used
6nCTIIRQGICCTI interrupt
7DBGRESTARTCortex®-A7 CPUCPU restart request - CPU exits debug mode

There are four event channels in the cross trigger matrix, which allows up to four, parallel, bidirectional connections between trigger inputs and outputs on different CTIs. To connect input number m on CTI x to output number n on CTI y, the input must be connected to an event channel p using the CTI_INENm register of CTI x. The same channel p must be connected to the output using the CTI_OUTENn register of CTI y.

Note: The above connection settings are also valid if the input and output belong to the same CTI.

An input can be connected to more than one channel (up to four). As a result, an input can be routed to several outputs. Similarly, an output can be connected to several inputs. It is also possible to connect several inputs/outputs to the same channel.

Figure 766. Mapping trigger inputs to outputs

Diagram illustrating the mapping of trigger inputs to outputs. It shows three main blocks: CTI x, CTM (Cross Trigger Matrix), and CTI y. Input m enters CTI x and is connected to a register CTI_INENm = p. This register connects to Channel p in the CTM. The CTM also contains Channels q, r, and s. Channel p connects to a register CTI_OUTENn = p in CTI y, which then produces Output n. The diagram is labeled MSv46864V1.
Diagram illustrating the mapping of trigger inputs to outputs. It shows three main blocks: CTI x, CTM (Cross Trigger Matrix), and CTI y. Input m enters CTI x and is connected to a register CTI_INENm = p. This register connects to Channel p in the CTM. The CTM also contains Channels q, r, and s. Channel p connects to a register CTI_OUTENn = p in CTI y, which then produces Output n. The diagram is labeled MSv46864V1.

For more information on the cross trigger interface CoreSight™ component, refer to the Arm® CoreSight™ SoC-400 Technical Reference Manual [2].

Cross trigger interface registers

The register file base address for each CTI is defined by the ROM table for the bus to which it is connected. The registers are the same for each CTI.

CTI control register (CTI_CONTROL)

Address offset: 0x000

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GLBEN
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 GLBEN: global enable

0: cross-triggering disabled

1: cross-triggering enabled

CTI trigger acknowledge register (CTI_INTACK)

Address offset: 0x010

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.INTACK[7:0]
wwwwwwww

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 INTACK[7:0]: trigger acknowledge

There is one bit of the register for each CTITRIGOUT output. When a 1 is written to a bit in this register, the corresponding CTITRIGOUT output is acknowledged, causing it to be cleared.

CTI application trigger set register (CTI_APPSET)

Address offset: 0x014

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.APPSET[3:0]
rwrwrwrw
ST logo
ST logo

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:0 APPSET[3:0]: channel event set

Read:

XXX0: channel 0 event inactive

XXX1: channel 0 event active

XX0X: channel 1 event inactive

XX1X: channel 1 event active

X0XX: channel 2 event inactive

X1XX: channel 2 event active

0XXX: channel 3 event inactive

1XXX: channel 3 event active

Write:

XXX0: no effect

XXX1: sets event on channel 0

XX0X: no effect

XX1X: sets event on channel 1

X0XX: no effect

X1XX: sets event on channel 2

0XXX: no effect

1XXX: sets event on channel 3

CTI application trigger clear register (CTI_APPCLEAR)

Address offset: 0x018

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.APPCLEAR[3:0]
wwww

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:0 APPCLEAR[3:0]: channel event clear

XXX0: no effect

XXX1: clears event on channel 0

XX0X: no effect

XX1X: clears event on channel 1

X0XX: no effect

X1XX: clears event on channel 2

0XXX: no effect

1XXX: clears event on channel 3

CTI application pulse register (CTI_APPPULSE)

Address offset: 0x01C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.APPULSE[3:0]
wwww

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:0 APPULSE[3:0]: pulse channel event

This register clears itself immediately.

XXX0: no effect

XXX1: generates pulse on channel 0

XX0X: no effect

XX1X: generates pulse on channel 1

X0XX: no effect

X1XX: generates pulse on channel 2

0XXX: no effect

1XXX: generates pulse on channel 3

CTI trigger in enable x registers (CTI_INENx)

Address offset: 0x020 + 0x04 * x, (x = 0 to 7)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGINEN[3:0]
rwrwrwrw

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:0 TRIGINEN[3:0]: cross-trigger event enable / disable

Enables or disables a cross-trigger event on each of the four channels when CTITRIGINn is activated (n = 0 to 7).

XXX0: trigger n does not generate events on channel 0

XXX1: trigger n generates events on channel 0

XX0X: trigger n does not generate events on channel 1

XX1X: trigger n generates events on channel 1

X0XX: trigger n does not generate events on channel 2

X1XX: trigger n generates events on channel 2

0XXX: trigger n does not generate events on channel 3

1XXX: trigger n generates events on channel 3

CTI Trigger out enable x registers (CTI_OUTENx)

Address offset: 0x0A0 + 0x04 * x, (x = 0 to 7)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGOUTEN[3:0]
rwrwrwrw

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:0 TRIGOUTEN[3:0]: output trigger enable / disable

For each channel, defines whether an event on that channel generates a trigger on CTITRIGOUTn (n = 0 to 7).

XXX0: channel 0 events does not generate triggers on trigger output n

XXX1: channel 0 events generates triggers on trigger output n

XX0X: channel 1 events does not generate triggers on trigger output n

XX1X: channel 1 events generates triggers on trigger output n

X0XX: channel 2 events does not generate triggers on trigger output n

X1XX: channel 2 events generates triggers on trigger output n

0XXX: channel 3 events does not generate triggers on trigger output n

1XXX: channel 3 events generates triggers on trigger output n

CTI trigger in status register (CTI_TRGISTS)

Address offset: 0x130

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.TRIGINSTATUS[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 TRIGINSTATUS[7:0]: trigger input status

There is one bit of the register for each CTITRIGIN input. When a bit is set to 1, it indicates that the corresponding trigger input is active. When it is set to 0, the corresponding trigger input is inactive.

CTI Trigger out status register (CTI_TRGOSTS)

Address offset: 0x134

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.TRIGOUTSTATUS[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 TRIGOUTSTATUS[7:0]: trigger output status

There is one bit of the register for each CTITRIGOUT output. When a bit is set to 1, it indicates that the corresponding trigger output is active. When it is set to 0, the corresponding trigger output is inactive.

CTI channel in status register (CTI_CHINSTS)

Address offset: 0x138

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CHINSTATUS[3:0]
rrrr

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:0 CHINSTATUS[3:0]: channel input status

There is one bit of the register for each channel input. When a bit is set to 1, it indicates that the corresponding channel input is active. When it is set to 0, the corresponding channel input is inactive.

CTI channel out status register (CTI_CHOUTSTS)

Address offset: 0x13C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CHOUTSTATUS[3:0]
rrrr

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:0 CHOUTSTATUS[3:0]: channel output status

There is one bit of the register for each channel output. When a bit is set to 1, it indicates that the corresponding channel output is active. When it is set to 0, the corresponding channel output is inactive.

CTI channel gate register (CTI_GATE)

Address offset: 0x140

Reset value: 0x0000 000F

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GATEEN[3:0]
rwrwrwrw

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:0 GATEEN[3:0] : channel output enable

For each channel, defines whether an event on that channel can propagate over the CTM to other CTIs.

XXX0: channel 0 events do not propagate

XXX1: channel 0 events propagate

XX0X: channel 1 events do not propagate

XX1X: channel 1 events propagate

X0XX: channel 2 events do not propagate

X1XX: channel 2 events propagate

0XXX: channel 3 events do not propagate

1XXX: channel 3 events propagate

CTI claim tag set register (CTI_CLAIMSET)

Address offset: 0xFA0

Reset value: 0x0000 000F

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLAIMSET[3:0]
rwrwrwrw

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:0 CLAIMSET[3:0] : sets claim tag bits

Write:

– 0000: no effect

– xxx1: sets bit 0

– xx1x: sets bit 1

– x1xx: sets bit 2

– 1xxx: sets bit 3

Read:

– 0xF: indicates there are four bits in claim tag

CTI claim tag clear register (CTI_CLAIMCLR)

Address offset: 0xFA4

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLAIMCLR[3:0]
rwrwrwrw

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:0 CLAIMCLR[3:0]: resets claim tag bits

Write:

Read:

CTI lock access register (CTI_LAR)

Address offset: 0xFB0

Reset value: 0XXXXX XXXX

31302928272625242322212019181716
ACCESS_W[31:16]
wwwwwwwwwwwwwwww
1514131211109876543210
ACCESS_W[15:0]
wwwwwwwwwwwwwwww

Bits 31:0 ACCESS_W[31:0]: CTI register write access enable

CTI lock status register (CTI_LSR)

Address offset: 0xFB4

Reset value: 0x0000 0003

ST logo
ST logo
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LOCKTYPELOCKGRANTLOCKEXIST
rrr

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 LOCKTYPE: CTI_LAR register size
Indicates the size of the CTI_LAR register.
0: 32-bit

Bit 1 LOCKGRANT: current lock status
This bit always reads as zero by an external debugger.
0: write access is permitted
1: write access is blocked. Only reads are permitted.

Bit 0 LOCKEXIST: lock control existence
Indicates whether a lock control mechanism exists. This bit always reads as zero by an external debugger.
0: no lock control mechanism exists
1: lock control mechanism is implemented

CTI authentication status register (CTI_AUTHSTAT)

Address offset: 0xFB8

Reset value: 0x0000 000A

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SNID[1:0]SID[1:0]NSNID[1:0]NSID[1:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:6 SNID[1:0]: security level for secure non-invasive debug
0x0: not implemented

Bits 5:4 SID[1:0]: security level for secure invasive debug
0x0: not implemented

Bits 3:2 NSNID[1:0]: security level for non-secure non-invasive debug
0x2: disabled
0x3: enabled

Bits 1:0 NSID[1:0]: security level for non-secure invasive debug
0x2: disabled
0x3: enabled

CTI device configuration register (CTI_DEVID)

Address offset: 0xFC8

Reset value: 0x0004 0800

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NUMCH[3:0]
rrrr
1514131211109876543210
NUMTRIG[7:0]Res.Res.Res.EXTMUXNUM[4:0]
rrrrrrrrrrrrr

Bits 31:20 Reserved, must be kept at reset value.

Bits 19:16 NUMCH[3:0]: number of ECT channels available
0x4: 4 channels

Bits 15:8 NUMTRIG[7:0]: number of ECT triggers available
0x8: 8 trigger inputs and 8 trigger outputs

Bits 7:5 Reserved, must be kept at reset value.

Bits 4:0 EXTMUXNUM[4:0]: number of trigger input/output multiplexers
0x0: none

CTI device type identifier register (CTI_DEVTYPE)

Address offset: 0xFCC

Reset value: 0x0000 0014

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SUBTYPE[3:0]MAJORTYPE[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 SUBTYPE[3:0]: sub-classification
0x1: indicates that this component is a cross-triggering component

Bits 3:0 MAJORTYPE[3:0]: major classification
0x4: indicates that this component allows a debugger to control other components in a CoreSight™ SoC-400 system

CTI CoreSight peripheral identity register 4 (CTI_PIDR4)

Address offset: 0xFD0

Reset value: 0x0000 0004

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SIZE[3:0]JEP106CON[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 SIZE[3:0]: register file size

0x0: register file occupies a single 4-Kbyte region

Bits 3:0 JEP106CON[3:0]: JEP106 continuation code

0x4: Arm® JEDEC code

CTI CoreSight peripheral identity register 0 (CTI_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 0006

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PARTNUM[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PARTNUM[7:0]: part number bits [7:0]

0x06: CTI part number

CTI CoreSight peripheral identity register 1 (CTI_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00B9

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.JEP106ID[3:0]PARTNUM[11:8]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 JEP106ID[3:0]: JEP106 identity code bits [3:0]

0xB: Arm® JEDEC code

Bits 3:0 PARTNUM[11:8]: part number bits [11:8]

0x9: CTI part number

CTI CoreSight peripheral identity register 2 (CTI_PIDR2)

Address offset: 0xFE8

Reset value: 0x0000 004B

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.REVISION[3:0]JEDECJEP106ID[6:4]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 REVISION[3:0]: component revision number
0x4: r0p5

Bit 3 JEDEC: JEDEC assigned value
0x1: designer ID specified by JEDEC

Bits 2:0 JEP106ID[6:4]: JEP106 identity code bits [6:4]
0x3: Arm® JEDEC code

CTI CoreSight peripheral identity register 3 (CTI_PIDR3)

Address offset: 0xFEC

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.REVAND[3:0]CMOD[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 REVAND[3:0]: metal fix version
0x0: no metal fix

Bits 3:0 CMOD[3:0]: customer modified
0x0: no customer modifications

CTI CoreSight component identity register 0 (CTI_CIDR0)

Address offset: 0xFF0

Reset value: 0x0000 000D

ST logo
ST logo
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[7:0]: component ID bits [7:0]

0x0D: common ID value

CTI CoreSight peripheral identity register 1 (CTI_CIDR1)

Address offset: 0xFF4

Reset value: 0x0000 0090

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CLASS[3:0]PREAMBLE[11:8]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 CLASS[3:0]: component ID bits [15:12] - component class

0x9: CoreSight™ component

Bits 3:0 PREAMBLE[11:8]: component ID bits [11:8]

0x0: common ID value

CTI CoreSight component identity register 0 (CTI_CIDR2)

Address offset: 0xFF8

Reset value: 0x0000 0005

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[19:12]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[19:12]: component ID bits [23:16]

0x05: common ID value

CTI CoreSight component identity register 3 (CTI_CIDR3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[27:20]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[27:20]: component ID bits [31:24]

0xB1: common ID value

Cross trigger interface registers map

Table 620. CTI register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000CTI_CONTROLRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GLBEN
Reset value0
0x010CTI_INTACKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.INTACK[7:0]
Reset value000000000
0x014CTI_APPSETRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.APPSET[3:0]
Reset value0000
0x018CTI_APPCLEARRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.APPCLEAR[3:0]
Reset value0000
0x01CCTI_APPPULSERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.APPULSE[3:0]
Reset value0000
0x020CTI_INEN0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGINEN[3:0]
Reset value0000

Table 620. CTI register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x024CTI_INEN1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGINEN[3:0]
Reset value0000
0x028CTI_INEN2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGINEN[3:0]
Reset value0000
0x02CCTI_INEN3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGINEN[3:0]
Reset value0000
0x030CTI_INEN4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGINEN[3:0]
Reset value0000
0x034CTI_INEN5Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGINEN[3:0]
Reset value0000
0x038CTI_INEN6Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGINEN[3:0]
Reset value0000
0x03CCTI_INEN7Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGINEN[3:0]
Reset value0000
0x0A0CTI_OUTEN0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGOUTEN[3:0]
Reset value0000

Table 620. CTI register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x0A4CTI_OUTEN1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGOUTEN[3:0]
Reset value0000
0x0A8CTI_OUTEN2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGOUTEN[3:0]
Reset value0000
0x0ACCTI_OUTEN3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGOUTEN[3:0]
Reset value0000
0x0B0CTI_OUTEN4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGOUTEN[3:0]
Reset value0000
0x0B4CTI_OUTEN5Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGOUTEN[3:0]
Reset value0000
0x0B8CTI_OUTEN6Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGOUTEN[3:0]
Reset value0000
0x0BCCTI_OUTEN7Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGOUTEN[3:0]
Reset value0000
0x130CTI_TRIGISTSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGINSTATUS[7:0]
Reset value00000000

Table 620. CTI register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x134CTI_TRIGOSTSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGOUTSTATUS[7:0]
Reset value00000000
0x138CTI_CHINSTSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CHISTATUS[3:0]
Reset value0000
0x13CCTI_CHOUTSTSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CHOSTATUS[3:0]
Reset value0000
0x140CTI_GATERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GATEEN[3:0]
Reset value1111
0xFA0CTI_CLAIMSETRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLAIMSET[3:0]
Reset value1111
0xFA4CTI_CLAIMCLRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLAIMCLR[3:0]
Reset value0000
0xFB0CTI_LARACCESS_W[31:0]
Reset valuexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
0xFB4CTI_LSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LOCKTYPELOCKGRANTLOCKEXIST
Reset value011
0xFB8CTI_AUTHSTATRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SNID[1:0]SID[1:0]NSNID[1:0]NSID[1:0]
Reset value00000101
0xFC8CTI_DEVIDRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NUMCH[3:0]NUMTRIG[7:0]Res.Res.Res.EXMUXNUM[4:0]
Reset value010000001000000000

Table 620. CTI register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFCCCTI_DEVTYPERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SUB[3:0]MAJOR[3:0]
Reset value00010100
0xFD0CTI_PIDR4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SIZE[3:0]JEP106CON[3:0]
Reset value00000100
0xFD4CTI_PIDR5Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0xFD8CTI_PIDR6Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0xFDCCTI_PIDR7Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0xFE0CTI_PIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PARTNUM[7:0]
Reset value00000110
0xFE4CTI_PIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.JEP106ID[3:0]PARTNUM[11:8]
Reset value10111001
0xFE8CTI_PIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVISION[3:0]JEDECJEP106ID[6:4]
Reset value01001011
0xFECCTI_PIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVAND[3:0]CMOD[3:0]
Reset value00000000
0xFF0CTI_CIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[7:0]
Reset value00001101
0xFF4CTI_CIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLASS[3:0]PREAMBLE[11:8]
Reset value10010000
0xFF8CTI_CIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[19:12]
Reset value00000101

Table 620. CTI register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFFCCTI_CIDR3ResResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE[27:20]
Reset value10110001

59.10.4 Embedded trace FIFO (ETF)

The ETF is a 4-kbyte memory which captures trace data from the ETM. The ETF is a configuration of the CoreSight™ Trace Memory Controller component.

The ETF can be used in three modes (selected in the Mode register):

1. Hardware FIFO mode

The trace memory is used as a FIFO that is drained through the ATB master interface. Trace data is captured into the Trace RAM and when full, the incoming trace stream is stalled. When the Trace buffer is not empty, trace data is drained out through the ATB master interface to the TPIU.

In this mode, the role of the FIFO is to smooth the flow of trace information arriving at the trace port. Since the trace data can be very bursty in nature, the peak data rate can easily exceed the port capability, resulting in an overflow. The ETF allows a steady data rate at the trace port, which can then be sized according to the average rate rather than the peak. The trace is stored off-chip in real time by the trace port analyser tool, and so the trace log can be very big.

2. Software FIFO mode

The trace memory is used as a FIFO that can be read through the RRD Register while trace is being captured. Trace data is captured into the Trace RAM and when full, the incoming trace stream is stalled.

This mode allows the trace to be transferred by DMA into the system memory, or to a high speed interface (SPI, USB etc), or even monitored by software running on one of the cores. Note that unlike the hardware FIFO mode, this mode is invasive, since it uses system resources which are shared by the processor.

3. Circular buffer mode

The trace memory is used as a circular buffer. Trace data is captured into the Trace memory starting from the location pointed to by the write pointer register. Even when the trace memory is full, incoming trace data continues to be overwritten into the trace memory until a stop condition occurs.

In this mode, the ETF stores the trace data on-chip, so the trace log size is limited to that of the ETF SRAM, 4 kbytes in this case. Being a circular buffer, if the FIFO becomes full, incoming trace data will overwrite the oldest stored data, which will be lost. Therefore the contents of the trace buffer represent the most recent activity of the

processor, up to the point when the buffer was stopped, rather than all the activity since the trace was started.

There are three possible methods to read out the buffer contents once the trace has stopped:

For more information on the Trace Memory Controller CoreSight™ component, refer to the Arm® CoreSight™ Trace Memory Controller Technical Reference Manual [3].

Embedded trace FIFO registers

ETF RAM size register (ETF_RSZ)

Address offset: 0x004

Reset value: 0x0000 0800

31302928272625242322212019181716
Res.RSZ[30:16]
rrrrrrrrrrrrrrr
1514131211109876543210
RSZ[15:0]
rrrrrrrrrrrrrrrr

Bit 31 Reserved, must be kept at reset value.

Bits 30:0 RSZ[30:0]: size of the RAM in 32-bit words
0x400: 4 Kbytes

ETF status register (ETF_STS)

Address offset: 0x00C

Reset value: 0x0000 001C

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EMPTYFEMPTYREADYTRIGDFULL
rrrrr

Bits 31:5 Reserved, must be kept at reset value.

Bit 4 EMPTY: trace FIFO empty

This bit is valid only when the TCEN bit of the ETF_CTL register is high. This bit reads as zero when TCEN is low.

0: trace FIFO contains data

1: trace FIFO is empty

Note: EMPTY does not inform about ETF pipeline emptiness which is indicated by FEMPTY.

Bit 3 FEMPTY: formatter empty

This bit is set when trace capture has stopped, and all internal pipelines and buffers have drained. Unlike READY, it is not affected by buffer drains. The ACQCOMP output reflects the value of this bit.

Bit 2 READY: ETF ready

This bit is set when trace capture has stopped and all internal pipelines and buffers have drained (STOPPED or DISABLED mode)

Bit 1 TRIGD: triggered

Bit triggered is set when trace capture is in progress and the TMC has detected a trigger event. This bit is cleared when leaving disabled state.

This bit is operational only in the circular buffer mode. In all other modes, this bit is always low.

This bit does not indicate that a trigger has been embedded in the formatted output trace data from the TMC. Trigger indication on the output trace stream is determined by the programming of the Formatter and Flush Control Register, ETF_FFCR.

Bit 0 FULL: trace buffer full

In circular buffer mode, this flag is set when the RAM write pointer wraps around the top of the buffer, and remains set until the TCEN bit of the ETF_CTL register is cleared and set.

In software and hardware FIFO modes, this flag indicates that the current space in the trace memory is less than or equal to the value programmed in the ETF_BUFWM register, that is, Fill level ≥ MEM_SIZE - BUFWM.

This bit is cleared when leaving the disabled state. The FULL output reflects the value of this register bit.

ETF RAM read data register (ETF_RRD)

Address offset: 0x010

Reset value: 0xXXXX XXXX

31302928272625242322212019181716
RRD[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
RRD[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 RRD[31:0]: RAM read data

Circular buffer mode: When in stopped state and the buffer is not empty, reading this register returns the next word of data from the trace buffer. When all of the trace buffer has been read, the EMPTY bit in the ETF_STS Register is set, and subsequent reads return 0xFFF FFFF. Reading this register when not in stopped state returns 0xFFFF FFFF.

Software FIFO mode: Reading this register returns data from the FIFO. If this register is read when the FIFO is empty, the data returned is 0xFFFF FFFF.

Hardware FIFO mode: Reading this register returns 0xFFFF FFFF.

ETF RAM read pointer register (ETF_RRP)

Address offset: 0x014

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.RRP[12:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:13 Reserved, must be kept at reset value.

Bits 12:0 RRP[12:0]: RAM read pointer

The RAM read pointer register contains the value of the read pointer that is used to read entries from the trace memory over the APB interface via the ETF_RRD register. The pointer can be programmed with a byte address, 64-bit aligned (bits 0 to 3 should be zero). The pointer is incremented by 8 each time a full 64-bit FIFO entry has been written. When the pointer reaches its maximum value, it wraps around.

This register can only be written in DISABLED state. It can be read in DISABLED state, in STOPPED state in circular buffer mode and SW FIFO mode, and also in RUNNING and STOPPING states in SW FIFO mode.

ETF RAM write pointer register (ETF_RWP)

Address offset: 0x018

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.RWP[12:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:13 Reserved, must be kept at reset value.

Bits 12:0 RWP[12:0]: RAM write pointer

The RAM write Pointer Register contains the value of the write pointer that is used to write entries into the trace memory over the APB interface via the ETF_RWD register. The pointer can be programmed with a byte address, 64-bit aligned (meaning that bits 0 to 3 should be zero). The pointer is incremented by 8 each time a full 64-bit FIFO entry has been read. When the pointer reaches its maximum value, it wraps around.

This register can only be written in DISABLED state. It can be read in DISABLED state, in STOPPED state in circular buffer mode and SW FIFO mode, and also in RUNNING and STOPPING states in SW FIFO mode.

ETF trigger counter register (ETF_TRG)

Address offset: 0x01C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.TRG[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:11 Reserved, must be kept at reset value.

Bits 10:0 TRG[10:0]: trigger counter

In circular buffer mode, specifies the number of 32-bit words to capture in the trace RAM following the detection of either a rising edge on the TRIGIN input or a trigger packet in the incoming trace stream, ATID = 7'h7D. On capturing the specified number of data words, a trigger event occurs. The effect of a trigger event on the ETF behavior is controlled by the ETF_FFCR register.

The number of 32-bit words written into the Trace RAM following the trigger is the value stored in this register, plus one. This register is ignored when the ETF is in software FIFO mode or hardware FIFO mode. When the trigger counter starts counting, any additional triggers, either on TRIGIN or in the incoming trace stream, are ignored until the counter reaches zero. When the trigger counter has reached zero, it remains at zero until it is re-programmed with a write to this register.

This register is cleared when READY goes HIGH, so that the state of the counter when trace capture has stopped does not affect a subsequent trace capture session. Writing to this register when not in DISABLED state results in unpredictable behavior.

A read access to this register is permitted at any time when in DISABLED state, or in circular buffer mode. A read access returns the current value of the trigger counter.

ETF control register (ETF_CTL)

Address offset: 0x020

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TCEN
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 TCEN: trace capture enable

When writing:

0: disables trace capture (moves from RUNNING, STOPPING or STOPPED state into DISABLING or DISABLED state)

1: enables trace capture (moves from DISABLED state into RUNNING state)

When reading, this bit is low when in DISABLING or DISABLED states, and high otherwise.

ETF RAM write data register (ETF_RWD)

Address offset: 0x024

Reset value: 0xXXXX XXXX

31302928272625242322212019181716
RWD[31:16]
wwwwwwwwwwwwwwww
1514131211109876543210
RWD[15:0]
wwwwwwwwwwwwwwww

Bits 31:0 RWD[31:0]: RAM write data

When in DISABLED state, a write to this register stores data at the location pointed to by the RWP. Writes to this register when not in disabled state are ignored. When a full memory width (64-bit) of data has been written, the data is written to memory and the RAM write pointer is incremented to the next memory word.

This register is used for test purposes.

ETF mode register (ETF_MODE)

Address offset: 0x028

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MODE[1:0]
rwrw

Bits 31:2 Reserved, must be kept at reset value.

Bits 1:0 MODE[1:0]: operation mode

ETF latched buffer fill level register (ETF_LBUFLVL)

Address offset: 0x02C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.LBUFLEVEL[11:0]
rrrrrrrrrrrr

Bits 31:12 Reserved, must be kept at reset value.

Bits 11:0 LBUFLEVEL[11:0]: latched buffer fill level

Reading this register returns the maximum fill level of the trace memory in 32-bit words since this register was last read. Reading this register also results in its contents being updated to the current fill level.

When entering disabled state, this register retains its last value. While in disabled state, reads from this register do not affect its value. When exiting disabled state, the ETF_LBUFLVL register is cleared.

This register is used for performance analysis of the trace system.

ETF current buffer fill level register (ETF_CBUFLVL)

Address offset: 0x030

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.CBUFLEVEL[11:0]
rrrrrrrrrrrr

Bits 31:12 Reserved, must be kept at reset value.

Bits 11:0 CBUFLEVEL[11:0]: current buffer fill level

Reading this register returns the current fill level of the trace memory in 32-bit words.

This register is cleared when ETF_CTL.TCEN is low.

ETF buffer level watermark register (ETF_BUFWM)

Address offset: 0x034

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.BUFWM[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:11 Reserved, must be kept at reset value.

Bits 10:0 BUFWM[10:0]: buffer level watermark

The value programmed into this register indicates the required threshold vacancy level in 32-bit words in the trace memory. When the space in the FIFO is less than or equal to this value, that is, Fill level ≥ MEM_SIZE - BUFWM, the FULL output is pulled high and the FULL bit in the ETF_STS register is set.

This register is used only in software FIFO and hardware FIFO modes. In circular buffer mode, this functionality can be obtained by programming ETF_RWP to the required vacancy trigger level, so that when the pointer wraps around, the FULL bit is set indicating that the vacancy level has fallen below the required level.

The maximum value that can be written into this register is MEM_SIZE - 1; in this case, the FULL bit output is asserted after the first 32-bit word is written to trace memory.

Writing to this register other than when in DISABLED state results in unpredictable behavior.

ETF formatter and flush status register (ETF_FFSR)

Address offset: 0x300

Reset value: 0x0000 0002

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FTSTOPPEDFLINPROG
rwrw

Bits 31:2 Reserved, must be kept at reset value.

Bit 1 FTSTOPPED: formatter stopped

This bit behaves in the same way as the FEMPTY bit in the ETF_STS register.

Bit 0 FLINPROG: flush in progress

Indicates whether a flush on the ATB slave port is in progress. This bit reflects the status of the AFVALIDS output. A flush can be initiated by the flush control bits in the ETF_FFCR register, or requested by the ATB master port.

0: no flush in progress

1: flush in progress

ETF formatter and flush control register (ETF_FFCR)

Address offset: 0x304

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.DRAINBUFSTPONTRGEVSTOPONFLRes.TRIGONFLTRGONTRGEVTRGONTRGINRes.FLUSHMANFONTRGEVFONFLINRes.Res.ENTIENFT
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:15 Reserved, must be kept at reset value.

Bit 14 DRAINBUF: drain buffer

This bit is used to enable draining of the trace data through the ATB master interface after the formatter has stopped. This is useful in circular buffer mode to capture trace data into trace memory and then to drain the captured trace through the ATB master interface.

Writing a one to this bit when in stopped state starts the drain of the contents of the trace buffer through the ATB master interface. This bit always reads as zero. The READY bit in the ETF_STS register goes low while the drain is in progress.

This bit is functional only when the ETF is in circular buffer mode and formatting is enabled, that is if the ENFT bit in the ETF_FFCR register is set. Setting this bit when the ETF is in any other mode, or when not in stopped state, results in unpredictable behavior.

When trace capture is complete in circular buffer mode, all of the captured trace must be retrieved from the trace memory through the same mechanism, either read all trace data out through ETF_RRD reads, or drain all trace data by setting the DRAINBUF bit. Setting the DRAINBUF bit after some of the captured trace has been read out through ETF_RRD results in unpredictable behavior.

Bit 13 STPONTRGEV: stop on trigger event

0: no effect

1: stop trace capture when a trigger event occurs

Note: Enabling the ETF in software FIFO mode or hardware FIFO mode with this bit set results in unpredictable behavior.

Bit 12 STOPONFL: stop on flush

0: no effect

1: stops trace capture when flush is completed

If a flush is initiated by the ATB master interface, its completion does not lead to a formatter stop regardless of the value programmed in this bit.

Bit 11 Reserved, must be kept at reset value.

Bit 10 TRIGONFL: trigger on flush

0: no effect

1: indicates a trigger in the trace stream when flush is completed

If ENFT and ENTI are both clear, this bit is ignored and no trigger is inserted into the trace stream.

If a flush is initiated by the ATB master interface, its completion does not lead to a trigger indication regardless of the value programmed in this bit.

Bit 9 TRGONTRGEV: trigger on trigger event

0: no effect

1: indicates a trigger in the trace stream when trigger event occurs

If ENFT and ENTI are both clear, this bit is ignored and no trigger is inserted into the trace stream.

This bit is not supported in software FIFO mode or hardware FIFO mode.

Bit 8 TRGONTRGIN: trigger on trigger in

0: no effect

1: indicates a trigger in the trace stream when a rising edge is detected on the TRIGIN input

If ENFT and ENTI are both clear, this bit is ignored and no trigger is inserted into the trace stream.

Bit 7 Reserved, must be kept at reset value.

Bit 6 FLUSHMAN: manual flush

0: no effect

1: flushes the trace FIFO and pipeline

This bit is cleared automatically when the flush completes. If the TCEN bit in the ETF_CTL register is 0, writes to this bit are ignored.

Bit 5 FONTRGEV: flush on trigger event

0: no effect

1: flushes the trace FIFO and pipeline if a trigger event occurs

This bit is not supported in software FIFO mode or hardware FIFO mode. If STPONTRGEV is set, this bit is ignored.

Bit 4 FONFLIN: flush on flush in

0: no effect

1: flushes the trace FIFO and pipeline when a rising edge is detected on the FLUSHIN input

Bits 3:2 Reserved, must be kept at reset value.

Bit 1 ENTI: enable trigger insertion

Setting this bit enables the insertion of triggers in the formatted trace stream. A trigger is indicated by inserting one byte of data 8'h00 with ATID 7'h7D in the trace stream. Trigger indication on the trace stream is additionally controlled by the register bits TRIGONFL, TRGONTRGEV, and TRGONTRGIN in the ETF_FFCR Register. This bit can only be changed when READY is high, and TCEN is low. This bit takes effect only when the ENFT register bit in this register is set. If the ENTI bit is set to high when ENFT is low, it results in formatting being enabled.

Bit 0 ENFT: enable formatting

0: formatting is disabled. Incoming trace data is assumed to be from a single trace source
1: formatting is enabled

If multiple ATIDs are received by the ETF when trace capture is enabled and the formatter is disabled, it results in interleaving of trace data. Disabling of formatting is supported only in circular buffer mode. If the ETF is enabled in a mode other than circular buffer mode with ENFT low, it results in formatting being enabled. If the ENTI bit is set to high when ENFT is low, it results in formatting being enabled.

This bit is ignored when in disabled state.

ETF periodic synchronisation counter register (ETF_PSCR)

Address offset: 0x308

Reset value: 0x0000 000A

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PSCOUNT[4:0]
rwrwrwrwrw

Bits 31:5 Reserved, must be kept at reset value.

Bits 4:0 PSCOUNT[4:0]: synchronization counter reload value

PSCOUNT determines the reload value of the synchronization counter. The reload value takes effect the next time the counter reaches zero. Reads from this register return the reload value programmed into this register. This register is set to 0xA on reset, corresponding to a synchronization period of 1024 bytes.

0x0: synchronization disabled

0x1-0x6: reserved

0x7-0x1B: synchronization period is \(2^{\text{PSCOUNT}}\) bytes

Others: reserved

ETF claim tag set register (ETF_CLAIMSET)

Address offset: 0xFA0

Reset value: 0x0000 000F

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLAIMSET[3:0]
rwrwrwrw

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:0 CLAIMSET[3:0]: sets claim tag bits

Write:

Read:

ETF claim tag clear register (ETF_CLAIMCLR)

Address offset: 0xFA4

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLAIMCLR[3:0]
rwrwrwrw

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:0 CLAIMCLR[3:0]: resets claim tag bits

Write:

Read:

ETF lock access register (ETF_LAR)

Address offset: 0xFB0

Reset value: 0XXXXX XXXX

31302928272625242322212019181716
ACCESS_W[31:16]
wwwwwwwwwwwwwwww
1514131211109876543210
ACCESS_W[15:0]
wwwwwwwwwwwwwwww

Bits 31:0 ACCESS_W[31:0]: ETF register write access enable

Enables write access to some ETF registers by processor cores (debuggers do not need to unlock the component).

0xC5ACCE55: enable write access

Other values: disable write access

ETF lock status register (ETF_LSR)

Address offset: 0xFB4

Reset value: 0x0000 0003

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LOCKTYPELOCKGRANTLOCKEXIST
rrr

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 LOCKTYPE: ETF_LAR register size

Indicates the size of the ETF_LAR register.

0: 32-bit

Bit 1 LOCKGRANT: current lock status

This bit always reads as zero by an external debugger.

0: write access is permitted

1: write access is blocked. Only reads are permitted.

Bit 0 LOCKEXIST: lock control existence

Indicates whether a lock control mechanism exists. This bit always reads as zero by an external debugger.

0: no lock control mechanism exists

1: lock control mechanism is implemented

ETF authentication status register (ETF_AUTHSTAT)

Address offset: 0xFB8

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SNID[1:0]SID[1:0]NSNID[1:0]NSID[1:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:6 SNID[1:0]: security level for secure non-invasive debug
0x0: not implemented

Bits 5:4 SID[1:0]: security level for secure invasive debug
0x0: not implemented

Bits 3:2 NSNID[1:0]: security level for non-secure non-invasive debug
0x0: not implemented

Bits 1:0 NSID[1:0]: security level for non-secure invasive debug
0x0: not implemented

ETF device configuration register (ETF_DEVID)

Address offset: 0xFC8

Reset value: 0x0000 0380

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.MEMWIDTH[2:0]CONFIGTYP[1:0]CLKSCHEMATBINPORTCNT[4:0]
rrrrrrrrr

Bits 31:11 Reserved, must be kept at reset value.

Bits 10:8 MEMWIDTH[2:0]: memory interface data bus width
0x3: 64 bits (corresponds to 32-bit ATB data)

Bits 7:6 CONFIGTYP[1:0]: configuration type of component (ETB, ETR or ETF)
0x2: ETF

Bit 5 CLKSCHEM: RAM clocking scheme (synchronous or asynchronous)
0x0: synchronous

Bits 4:0 ATBINPORTCNT[4:0]: number / type of ATB input port multiplexing
0x0: none

ETF device type identifier register (ETF_DEVTYPE)

Address offset: 0xFCC

Reset value: 0x0000 0032

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SUBTYPE[3:0]MAJORTYPE[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 SUBTYPE[3:0] : sub-classification

0x3: captures trace data from the ATB slave interface into RAM that can be drained through the ATB master interface

Bits 3:0 MAJORTYPE[3:0] : major classification

0x2: component is a trace link because it has an ATB master interface through which trace data can be drained out in Hardware FIFO mode

ETF CoreSight peripheral identity register 4 (ETF_PIDR4)

Address offset: 0xFD0

Reset value: 0x0000 0004

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SIZE[3:0]JEP106CON[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 SIZE[3:0] : register file size

0x0: register file occupies a single 4-Kbyte region

Bits 3:0 JEP106CON[3:0] : JEP106 continuation code0x4: Arm ® JEDEC code

ETF CoreSight peripheral identity register 0 (ETF_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 0061

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PARTNUM[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PARTNUM[7:0]: part number bits [7:0]
0x61: ETF part number

ETF CoreSight Peripheral Identity register 1 (ETF_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00B9

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.JEP106ID[3:0]PARTNUM[11:8]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 JEP106ID[3:0]: JEP106 identity code bits [3:0]
0xB: Arm® JEDEC code

Bits 3:0 PARTNUM[11:8]: part number bits [11:8]
0x9: ETF part number

ETF CoreSight peripheral identity register 2 (ETF_PIDR2)

Address offset: 0xFE8

Reset value: 0x0000 001F

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.REVISION[3:0]JEDECJEP106ID[6:4]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 REVISION[3:0]: component revision number
0x1: r0p1

Bit 3 JEDEC: JEDEC assigned value
0x1: Designer ID specified by JEDEC

Bits 2:0 JEP106ID[6:4]: JEP106 identity code bits [6:4]
0x3: Arm® JEDEC code

ETF CoreSight peripheral identity register 3 (ETF_PIDR3)

Address offset: 0xFEC

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.REVAND[3:0]CMOD[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 REVAND[3:0]: metal fix version

0x0: no metal fix

Bits 3:0 CMOD[3:0]: customer modified

0x0: no customer modifications

ETF CoreSight component identity register 0 (ETF_CIDR0)

Address offset: 0xFF0

Reset value: 0x0000 000D

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[7:0]: component ID bits [7:0]

0x0D: common ID value

ETF CoreSight peripheral identity register 1 (ETF_CIDR1)

Address offset: 0xFF4

Reset value: 0x0000 0090

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CLASS[3:0]PREAMBLE[11:8]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 CLASS[3:0]: component ID bits [15:12] - component class

0x9: CoreSight™ component

Bits 3:0 PREAMBLE[11:8]: component ID bits [11:8]

0x0: Common ID value

ETF CoreSight component identity register 2 (ETF_CIDR2)

Address offset: 0xFF8

Reset value: 0x0000 0005

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[19:12]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[19:12]: component ID bits [23:16]
0x05: common ID value

ETF CoreSight component identity register 3 (ETF_CIDR3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[27:20]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[27:20]: component ID bits [31:24]
0xB1: common ID value

Embedded trace FIFO registers map

Table 621. ETF register map and reset values
OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x004ETF_RSZRes.RSZ[30:0]
Reset value0000000000000000000010000000000
0x00CETF_STSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EMPTYFEMPTYREADYTRIGDFULL
Reset value11100
0x010ETF_RRDRRD[31:0]
Reset value--------------------------------

Table 621. ETF register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x014ETF_RRPRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RRP[12:0]
Reset value0000000000000
0x018ETF_RWPRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RWP[12:0]
Reset value0000000000000
0x01CETF_TRGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRG[10:0]
Reset value000000000000
0x020ETF_CTLRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TCEN
Reset value0
0x024ETF_RWDRWD[31:0]
Reset value--------------------------------
0x028ETF_MODERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MODE[1:0]
Reset value00
0x02CETF_LBUFLVLRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LBUFLEVEL[11:0]
Reset value0000000000000
0x030ETF_CBUFLVLRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CBUFLEVEL[11:0]
Reset value0000000000000
0x034ETF_BUFWMRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.BUFWM[10:0]
Reset value000000000000
0x300ETF_FFSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FTSTOPPED
Reset value10
0x304ETF_FFCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DRAINBUFSTPONTRGEVSTOPONFLTRGONFLTRGONTRGEVTRGONTRGINFLUSHMANFONTRGEVFONFLINRes.Res.Res.Res.
Reset value0000000000000
0x308ETF_PSCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PSCOUNT[3:0]
Reset value01010
0xFA0ETF_CLAIMSETRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLAIMSET[3:0]
Reset value11111

Table 621. ETF register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFA4ETF_CLAIMCLRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLAIMCLR[3:0]
Reset value0000
0xFB0ETF_LARACCESS_W[31:0]
Reset value-------------------------------
0xFB4ETF_LSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LOCKTYPELOCKGRANTLOCKEXIST
Reset value011
0xFB8ETF_AUTHSTATRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SNID[1:0]SID[1:0]NSNID[1:0]NSID[1:0]
Reset value0000000
0xFC8ETF_DEVIDRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MEMWDTH[2:0]CONFIGTYP[1:0]CLKSCHEMATBINPORTCNT[4:0]
Reset value0111000000
0xFD0ETF_DEVTYPERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SUBTYPE[3:0]MAJORTYPE[3:0]
Reset value0011001
0xFD0ETF_PIDR4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SIZE[3:0]JEP106CON[3:0]
Reset value0000010
0xFD4ETF_PIDR5Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0xFD8ETF_PIDR6Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0xFDCETF_PIDR7Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
ST logo
ST logo

Table 621. ETF register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFE0ETF_PIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PARTNUM[7:0]
Reset value01100001
0xFE4ETF_PIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.JEP106ID[3:0]PARTNUM[11:8]
Reset value10111001
0xFE8ETF_PIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVISION[3:0]JEDECJEP106ID[6:4]
Reset value00011011
0xFECETF_PIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVAND[3:0]CMOD[3:0]
Reset value00000000
0xFF0ETF_CIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[7:0]
Reset value00001101
0xFF4ETF_CIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLASS[3:0]PREAMBLE[11:8]
Reset value10010000
0xFF8ETF_CIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[19:12]
Reset value00000101
0xFFCETF_CIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[27:20]
Reset value10110001

59.10.5 Trace port interface unit (TPIU)

The TPIU is a CoreSight™ component that formats the trace stream and outputs it on the external trace port signals. The TPIU has a single ATB slave port for incoming trace data. The trace port is a synchronous parallel port, comprising a clock output, TRACECLK, and sixteen data outputs, TRACED(15:0). The trace port width is programmable in the range 1 to 16. Using a smaller port width reduces the number of test points/connector pins needed, and frees up I/Os for other purposes. However it restricts the bandwidth of the trace port and hence the quantity of trace information that can be output in real time.

For more information on the Trace Port Interface CoreSight™ component, refer to the Arm® CoreSight™ SoC-400 Technical Reference Manual [2].

Trace port interface unit registers

TPIU supported port size register (TPIU_SUPPSIZE)

Address offset: 0x000

Reset value: 0x0000 FFFF

31302928272625242322212019181716
PORTSIZE[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
PORTSIZE[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 PORTSIZE[31:0]: supported trace port sizes

Indicates supported trace port sizes, from 1 to 32 pins. Bit n-1 when set indicates that port size n is supported.

0x0000 FFFF: port sizes 1 to 16 supported

TPIU current port size register (TPIU_CURPSIZE)

Address offset: 0x004

Reset value: 0x0000 FFFF

31302928272625242322212019181716
PORTSIZE[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PORTSIZE[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 PORTSIZE[31:0]: current trace port size

Indicates current trace port size. Bit n-1 when set indicates that the current port size is n pins. The value of n must be within the range of supported port sizes (1-4). Only one bit can be set, or unpredictable behavior may result. This register should only be modified when the formatter is stopped.

TPIU supported trigger modes register (TPIU_SUPTRGM)

Address offset: 0x100

Reset value: 0x0000 011F

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRGRUNTRIGD
rr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.TCOUNT8Res.Res.Res.MULT64KMULT256MULT16MULT4MULT2
rrrrrr

Bits 31:18 Reserved, must be kept at reset value.

Bit 17 TRGRUN: trigger running

0: trigger has not occurred or counter is at 0

1: trigger has occurred and counter is not at 0

Bit 16 TRIGD: triggered

0: trigger has not occurred

1: trigger has occurred and counter has reached 0

Bits 15:9 Reserved, must be kept at reset value.

Bit 8 TCOUNT8: 8-bit counter register

1: implemented

Bits 7:5 Reserved, must be kept at reset value.

Bit 4 MULT64K: multiplying the trigger counter by 65536 support

1: supported

Bit 3 MULT256: multiplying the trigger counter by 256 support

1: supported

Bit 2 MULT16: multiplying the trigger counter by 16 support

1: supported

Bit 1 MULT4: multiplying the trigger counter by 4 support

1: supported

Bit 0 MULT2: multiplying the trigger counter by 2 support

1: supported

TPIU trigger counter value register (TPIU_TRGCNT)

Address offset: 0x104

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.TRIGCOUNT[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 TRIGCOUNT[7:0]: trigger delay to external enable

Enables delaying the indication of triggers to any external connected trace capture or storage devices.

This counter is only eight-bit wide and is intended to be used only with the counter multipliers in the TPIU_TRGMULT trigger multiplier register. When a trigger is started, this value, in combination with the multiplier, is the number of words before the trigger is indicated. When the trigger counter reaches 0, the value written here is reloaded. Writing to this register causes the trigger counter value to reset but does not reset any values on the multiplier. Reading this register returns the preset value, not the current count.

TPIU trigger multiplier register (TPIU_TRGMULT)

Address offset: 0x108

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MULT64KMULT256MULT16MULT4MULT2
rwrwrwrwrw

Bits 31:5 Reserved, must be kept at reset value.

Bit 4 MULT64K: multiply the trigger counter by 65536

0: disabled

1: enabled

Bit 3 MULT256: multiply the trigger counter by 256

0: disabled

1: enabled

Bit 2 MULT16: multiply the trigger counter by 16

0: disabled

1: enabled

Bit 1 MULT4: multiply the trigger counter by 4

0: disabled

1: enabled

Bit 0 MULT2: multiply the trigger counter by 2

0: disabled

1: enabled

TPIU supported test patterns/modes register (TPIU_SUPTPM)

Address offset: 0x200

Reset value: 0x0003 000F

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PCONTENPTIMEEN
rr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PATF0PATA5PATW0PATW1
rrrr

Bits 31:18 Reserved, must be kept at reset value.

Bit 17 PCONTEN: continuous mode support
Indicates whether continuous mode is supported.
1: supported

Bit 16 PTIMEEN: timed mode support
Indicates whether timed mode is supported.
1: supported

Bits 15:4 Reserved, must be kept at reset value.

Bit 3 PATF0: FF/00 pattern support
Indicates whether the FF/00 pattern is supported as output over the trace port.
1: supported

Bit 2 PATA5: AA/55 pattern support
Indicates whether the AA/55 pattern is supported as output over the trace port.
1: supported

Bit 1 PATW0: walking 0's pattern support
Indicates whether the walking 0's pattern is supported as output over the trace port.
1: supported

Bit 0 PATW1: walking 1's pattern support
Indicates whether the walking 1's pattern is supported as output over the trace port.
1: supported

TPIU current test pattern/mode register (TPIU_CURTPM)

Address offset: 0x204

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PCONTENPTIMEEN
rwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PATF0PATA5PATW0PATW1
rwrwrwrw

Bits 31:18 Reserved, must be kept at reset value.

Bit 17 PCONTEN: continuous mode enable

Indicates whether continuous mode is enabled.

0: disabled

1: enabled

Bit 16 PTIMEEN: timed mode enable

Indicates whether timed mode is enabled.

0: disabled

1: enabled

Bits 15:4 Reserved, must be kept at reset value.

Bit 3 PATF0: FF/00 pattern enable

Indicates whether the FF/00 pattern is enabled as output over the trace port.

0: disabled

1: enabled

Bit 2 PATA5: AA/55 pattern enable

Indicates whether the AA/55 pattern is enabled as output over the trace port.

0: disabled

1: enabled

Bit 1 PATW0: walking 0's pattern enable

Indicates whether the walking 0's pattern is enabled as output over the trace port.

0: disabled

1: enabled

Bit 0 PATW1: walking 1's pattern enable

Indicates whether the walking 1's pattern is enabled as output over the trace port.

0: disabled

1: enabled

TPIU test pattern repeat counter register (TPIU_TPRCR)

Address offset: 0x208

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PATTCOUNT[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PATTCOUNT[7:0]: pattern number of TRACECLKIN cycles

8-bit counter value to indicate the number of TRACECLKIN cycles for which a pattern runs before it switches to the next pattern.

TPIU formatter and flush status register (TPIU_FFSR)

Address offset: 0x300

Reset value: 0x0000 0002

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TCPRESENTFTSTOPPEDFLINPROG
rrr

Bits 31:3 Reserved, must be kept at reset value.

TPIU formatter and flush control register (TPIU_FFCR)

Address offset: 0x304

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.STOPTRIGSTOPFLRes.TRIGFLTRIG EVTTRIGINRes.FONMANFONTRIGFONFLINRes.Res.ENFCONTENFTC
rwrwrwrwrwrwrwrwrwrw
ST logo
ST logo

Bits 31:14 Reserved, must be kept at reset value.

Bit 13 STOPTRIG: stop on trigger event

0: no effect

1: stop formatter when a trigger event occurs

Bit 12 STOPFL: stop on flush

0: no effect

1: stop formatter when flush is completed

Bit 11 Reserved, must be kept at reset value.

Bit 10 TRIGFL: trigger on flush

0: no effect

1: indicates a trigger in the trace stream when flush is completed

Bit 9 TRIGEVT: trigger on trigger event

0: no effect

1: indicates a trigger in the trace stream when trigger event occurs

Bit 8 TRIGIN: trigger on trigger in

0: no effect

1: indicates a trigger in the trace stream when the TRIGIN input from the system CTI is asserted.

Bit 7 Reserved, must be kept at reset value.

Bit 6 FONMAN: generates a manual flush

0: no effect

1: flush the trace

This bit is cleared automatically when the flush completes.

Bit 5 FONTRIG: flush on trigger event

A trigger event occurs when the trigger counter reaches 0, or, if the trigger counter is 0, when the TRIGIN input from the system CTI is high.

0: no effect

1: flushes the trace if a trigger event occurs

Bit 4 FONFLIN: flush on flush in

0: no effect

1: flushes the trace if the FLUSHIN input from the system CTI is asserted

Bits 3:2 Reserved, must be kept at reset value.

Bit 1 ENFCONT: enables continuous formatting

0: continuous formatting is disabled

1: continuous formatting is enabled

Bit 0 ENFTC: enables the embedding of triggers in formatted trace

0: formatting is disabled

1: formatting is enabled

TPIU formatter synchronisation counter register (TPIU_FSCR)

Address offset: 0x308

Reset value: 0x0000 0040

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CYCCOUNT[4:0]
rwrwrwrwrw

Bits 31:5 Reserved, must be kept at reset value.

Bits 4:0 CYCCOUNT[4:0]: formatted frame number

Enables effective use of different sized TPAs without wasting large amounts of the storage capacity of the capture device.

This counter contains the number of formatter frames since the last synchronization packet of 128 bits. It is a 12-bit counter with a maximum count value of 4096. This equates to synchronization every 65536 bytes, that is, 4096 packets x 16 byte per packet. The default is set up for a synchronization packet every 1024 bytes, that is, every 64 formatter frames. If the formatter is configured for continuous mode, full and half-word sync frames are inserted during normal operation. Under these circumstances, the count value is the maximum number of complete frames between full synchronization packets.

TPIU claim tag set register (TPIU_CLAIMSET)

Address offset: 0xFA0

Reset value: 0x0000 000F

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLAIMSET[3:0]
rwrwrwrw

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:0 CLAIMSET[3:0]: sets claim tag bits

Write:

Read:

TPIU claim tag clear register (TPIU_CLAIMCLR)

Address offset: 0xFA4

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLAIMCLR[3:0]
rwrwrwrw

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:0 CLAIMCLR[3:0]: resets claim tag bits

Write:

Read:

TPIU lock access register (TPIU_LAR)

Address offset: 0xFB0

Reset value: 0XXXXX XXXX

31302928272625242322212019181716
ACCESS_W[31:16]
wwwwwwwwwwwwwwww
1514131211109876543210
ACCESS_W[15:0]
wwwwwwwwwwwwwwww

Bits 31:0 ACCESS_W[31:0]: TPIU register write access enable

Enables write access to some TPIU registers by processor cores (debuggers do not need to unlock the component).

0xC5ACCE55: enable write access

Other values: disable write access

TPIU lock status register (TPIU_LSR)

Address offset: 0xFB4

Reset value: 0x0000 0003

ST logo
ST logo
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LOCKTYPELOCKGRANTLOCKEXIST
rrr

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 LOCKTYPE: TPIU_LAR register size
Indicates the size of the TPIU_LAR register.
0: 32-bit

Bit 1 LOCKGRANT: current lock status
This bit always reads as zero by an external debugger.
0: write access is permitted
1: write access is blocked. Only reads are permitted.

Bit 0 LOCKEXIST: lock control existence
Indicates whether a lock control mechanism exists. This bit always reads as zero by an external debugger.
0: no lock control mechanism exists
1: lock control mechanism is implemented

TPIU authentication status register (TPIU_AUTHSTAT)

Address offset: 0xFB8

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SNID[1:0]SID[1:0]NSNID[1:0]NSID[1:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:6 SNID[1:0]: security level for secure non-invasive debug
0x0: not implemented

Bits 5:4 SID[1:0]: security level for secure invasive debug
0x0: not implemented

Bits 3:2 NSNID[1:0]: security level for non-secure non-invasive debug
0x0: not implemented

Bits 1:0 NSID[1:0]: security level for non-secure invasive debug
0x0: not implemented

TPIU device configuration register (TPIU_DEVID)

Address offset: 0xFC8

Reset value: 0x0000 00A0

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.SWOUARTNRZSWOMANTCLKDATAFIFOSIZE[2:0]CLKRELATMAXNUM[4:0]
rrrrrrrrrrrr

Bits 31:12 Reserved, must be kept at reset value.

Bit 11 SWOUARTNRZ : Serial Wire Output, UART or NRZ support

Indicates whether Serial Wire Output, UART or NRZ, is supported.

0x0: not supported

Bit 10 SWOMAN : Serial Wire Output, Manchester support

Indicates whether Serial Wire Output, Manchester encoded format, is supported.

0x0: not supported

Bit 9 TCLKDATA : trace clock plus data support

Indicates whether trace clock plus data is supported.

0x0: not supported

Bits 8:6 FIFOSIZE[2:0] : FIFO size in powers of 2

0x2: FIFO size = 4 (16 bytes)

Bit 5 CLKRELAT : ATB clock and TRACECLKIN sync

Indicates the relationship between the ATB clock and TRACECLKIN (synchronous or asynchronous).

0x1: asynchronous

Bits 4:0 MAXNUM[4:0] : number / type of ATB input port multiplexing

0x0: none

TPIU device type identifier register (TPIU_DEVTYPE)

Address offset: 0xFCC

Reset value: 0x0000 0032

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SUBTYPE[3:0]MAJORTYPE[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 SUBTYPE[3:0]: sub-classification
0x1: trace port component

Bits 3:0 MAJORTYPE[3:0]: major classification
0x1: trace sink component

TPIU CoreSight peripheral identity register 4 (TPIU_PIDR4)

Address offset: 0xFD0

Reset value: 0x0000 0004

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SIZE[3:0]JEP106CON[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 SIZE[3:0]: register file size
0x0: register file occupies a single 4 Kbyte region

Bits 3:0 JEP106CON[3:0]: JEP106 continuation code
0x4: Arm® JEDEC code

TPIU CoreSight peripheral identity register 0 (TPIU_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 0012

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PARTNUM[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PARTNUM[7:0]: part number bits [7:0]
0x12: TPIU part number

TPIU CoreSight peripheral identity register 1 (TPIU_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00B9

ST logo
ST logo
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.JEP106ID[3:0]PARTNUM[11:8]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 JEP106ID[3:0]: JEP106 identity code bits [3:0]

0xB: Arm® JEDEC code

Bits 3:0 PARTNUM[11:8]: part number bits [11:8]

0x9: TPIU part number

TPIU CoreSight peripheral identity register 2 (TPIU_PIDR2)

Address offset: 0xFE8

Reset value: 0x0000 004B

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.REVISION[3:0]JEDECJEP106ID[6:4]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 REVISION[3:0]: component revision number

0x4: r0p5

Bit 3 JEDEC: JEDEC assigned value

0x1: designer ID specified by JEDEC

Bits 2:0 JEP106ID[6:4]: JEP106 identity code bits [6:4]

0x3: Arm® JEDEC code

TPIU CoreSight peripheral identity register 3 (TPIU_PIDR3)

Address offset: 0xFEC

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.REVAND[3:0]CMOD[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 REVAND[3:0]: metal fix version
0x0: no metal fix

Bits 3:0 CMOD[3:0]: customer modified
0x0: no customer modifications

TPIU CoreSight component identity register 0 (TPIU_CIDR0)

Address offset: 0xFF0

Reset value: 0x0000 000D

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[7:0]: component ID bits [7:0]
0x0D: common ID value

TPIU CoreSight peripheral identity register 1 (TPIU_CIDR1)

Address offset: 0xFF4

Reset value: 0x0000 0090

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CLASS[3:0]PREAMBLE[11:8]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 CLASS[3:0]: component ID bits [15:12] - component class
0x9: CoreSight™ component

Bits 3:0 PREAMBLE[11:8]: component ID bits [11:8]
0x0: common ID value

TPIU CoreSight component identity register 2 (TPIU_CIDR2)

Address offset: 0xFF8

Reset value: 0x0000 0005

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[19:12]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[19:12]: component ID bits [23:16]
0x05: common ID value

TPIU CoreSight component identity register 3 (TPIU_CIDR3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[27:20]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[27:20]: component ID bits [31:24]
0xB1: common ID value

Trace port interface unit registers map

Table 622. TPIU register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000TPIU_SUPPSIZEPORTSIZE[31:0]
Reset value00000000000000001111111111111111
0x004TPIU_CURPSIZEPORTSIZE[31:0]
Reset value00000000000000001111111111111111
0x100TPIU_SUPTRGMRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRGRUNTRIGDRes.Res.Res.Res.Res.Res.Res.TCOUNT8Res.Res.Res.MULT64KMULT256MULT16MULT4MULT2
Reset value001111111
0x104TPIU_TRGCNTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGCOUNT[7:0]
Reset value0000000000
0x108TPIU_TRGMULTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MULT64KMULT256MULT16MULT4MULT2
Reset value000000
Table 622. TPIU register map and reset values (continued)
OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x200TPIU_SUPTPMRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PCONTENPTIMEENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PATF0PATA5PATW0PATW1
Reset value111111
0x204TPIU_CURTPMRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PCONTENPTIMEENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PATF0PATA5PATW0PATW1
Reset value000000
0x104TPIU_TPRCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PATTCOUNT[7:0]
Reset value00000000
0x300TPIU_FFSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TCPRESENTFTSTOPPEDFLINPROG
Reset value010
0x304TPIU_FFCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.STOPTRIGSTOPFLRes.TRIGFLTRIGEVtTRIGINRes.FONMANFONTRIGFONFLINRes.Res.ENFCONTENFTC
Reset value0000000000
0x308TPIU_FSCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CYCCOUNT[11:0]
Reset value000000100000
0xFA0TPIU_CLAIMSETRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLAIMSET[3:0]
Reset value1111
0xFA4TPIU_CLAIMCLRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLAIMCLR[3:0]
Reset value0000
0xFB0TPIU_LARACCESS_W[31:0]
Reset value--------------------------------
0xFB4TPIU_LSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LOCKTYPELOCKGRANTLOCKEXIST
Reset value011

Table 622. TPIU register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFB8TPIU_AUTHSTATRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SNID[1:0]
Reset value00000000
0xFC8TPIU_DEVIDRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SWUJARTNRZSWOMANTCLKDATAFIFOSIZE[2:0]CLKRELATMUXNUM[4:0]
Reset value000010100000
0xFD0TPIU_DEVTYPERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SUBTYPE[3:0]MAJORTYPE[3:0]
Reset value00010001
0xFD0TPIU_PIDR4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SIZE[3:0]JEP106CON[3:0]
Reset value00000100
0xFD4TPIU_PIDR5Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0xFD8TPIU_PIDR6Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0xFDCTPIU_PIDR7Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0xFE0TPIU_PIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PARTNUM[7:0]
Reset value00010010
0xFE4TPIU_PIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.JEP106ID[3:0]PARTNUM[11:8]
Reset value10111001
0xFE8TPIU_PIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVISION[3:0]JEDECJEP106ID[6:4]
Reset value01001011

Table 622. TPIU register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFECTPIU_PIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVAND
[3:0]
CMOD[3:0]
Reset value00000000
0xFF0TPIU_CIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[7:0]
Reset value00001101
0xFF4TPIU_CIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLASS[3:0]PREAMBLE[11:8]
Reset value10010000
0xFF8TPIU_CIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[19:12]
Reset value00000101
0xFFCTPIU_CIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[27:20]
Reset value10110001

59.10.6 Microprocessor debug unit (DBGMCU)

The DBGMCU is a component containing a number of registers which control the power and clock behavior in debug mode. Specifically it allows the debugger, or debug software, to:

Low power mode emulation in debug

When entering a low power mode (CSleep, Stop, LP-Stop, LPLV-Stop, LPLV-Stop2 or Standby), the clock to the processor, the subsystem clocks or, in the case of Standby mode, the core power supply may be switched off. This prevents any debug accesses to the unclocked domains. To simplify debugging of applications which use these power saving features, the clock and power can be maintained or not according to the setting of the DBGLP bit in the DBGMCU_CR register. This bit can be accessed directly by the debugger or by debug software, meaning that the application software does not need to be modified.

If the system enters one of the power saving modes, and the corresponding register bit is set, the system enters and exits the low power state as normal. However the clock and power remain active, allowing the debugger full access.

Note: If the trace port interface (TPIU) is used, loss of trace data can occur if the system goes into Standby mode and switches off the core power before the TPIU FIFO is empty. The software can check the state of the FIFO to avoid this. However if the DBGLP bit is set while

using the trace port, the trace continues to flush during Standby mode and no specific software action is required.

Peripheral clock “freeze” in debug

When the processor is halted in debug state, by default the peripherals continue to operate. This means that the system state at the moment the breakpoint was taken is overwritten and can not be recovered. Furthermore, certain peripherals require software intervention on a regular basis, without which they may time out and generate a reset (watchdogs, for example).

By setting the corresponding bits in the DBGMCU Peripheral Freeze registers, certain peripheral clocks can be stopped automatically as soon as the processor enters debug state. The clocks remain stopped until the processor is restarted.

The following peripherals support this feature:

There is a freeze register for each peripheral bus (APB), to control the peripherals on that bus. It controls whether the peripheral is sensitive to the Cortex®-A7 debug state.

When the CA7 core enters debug and the corresponding bit in the Peripheral Freeze register is set, then the peripheral clock will be frozen.

The accessibility of the freeze register bits by the debugger depends on the state of the authentication signal SPIDEN.

When SPIDEN = 1 (secure privilege debug enabled), all bits can be modified and read.

When SPIDEN = 0 (secure privilege debug disabled), only bits corresponding to non-secure peripherals can be modified. All bits can be read.

The security status of the peripherals is signaled by the corresponding DECPROTn(1:0) signals from the ETZPC, with the exception of the RTC/TAMP peripheral which is secure if at least one function of the RTC/TAMP is configured as secure via the RTC_SECCFGR register.

Microprocessor debug unit registers

The DBGMCU registers are not reset by a system reset nreset, only by a power on reset vcore_rst, by the debugger using CDBGSTREQ/ACK, or by dbg_rstn which is set by writing to the bit DBGRST of RCC Debug Configuration register (RCC_DBGCFGR). They are accessible to the debugger via the debug APB bus at base address 0xE0081000. They are also accessible by the processor at base address 0x50081000

DBGMCU identity code register (DBGMCU_IDC)

Address offset: 0x000

Reset value: 0xXXXX 6501

31302928272625242322212019181716
REV_ID[15:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.DEV_ID[11:0]
rrrrrrrrrrrr

Bits 31:16 REV_ID[15:0]: revision

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 DEV_ID[11:0]: device ID

0x501: STM32MP13xx

DBGMCU configuration register (DBGMCU_CR)

Address offset: 0x004

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBGLPRes.Res.
rw

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 DBGLP: Low power mode debug enable

0: normal operation. In Stop, LP-Stop, LPLV-Stop, LPLV-Stop2 and Standby mode, debug access is lost.

1: automatic clock stop/power down disabled. All active clocks and oscillators continue to run during low power mode, and the \(V_{DDCORE}\) and \(V_{DDCPU}\) supplies are maintained, allowing full debug capability. On exit from Standby or LPLV-Stop2 modes, the Cortex®-A7 is reset.

Bits 1:0 Reserved, must be kept at reset value.

DBGMCU APB4 peripheral freeze register (DBGMCU_APB4FZ)

Address offset: 0x02C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IWDG2Res.Res.
rw

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 IWDG2: IWDG2 stop in debug

Bits 1:0 Reserved, must be kept at reset value.

DBGMCU APB1 peripheral freeze register (DBGMCU_APB1FZ)

Address offset: 0x034

Reset value: 0x0000 0000

Bit NumberBit NameDescriptionReservedRead/WriteBit NumberBit NameDescriptionReservedRead/WriteBit NumberBit NameDescriptionReservedRead/WriteBit Number
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.I2C2 rwI2C1 rwRes.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res. LPTIM1Res.Res.Res.TIM7TIM6TIM5TIM4TIM3TIM2
rwrwrwrwrwrwrw
Bit 19I2C2 : I2C2 SMBUS timeout stop in debug
Bit 18I2C1 : I2C1 SMBUS timeout stop in debug
Bit 9LPTIM1: LPTIM1 stop in debug
0: normal operation. LPTIM1continues to operate while Cortex®-A7 is in debug mode.
Bit 5TIM7 : TIM7 stop in debug
0: normal operation. TIM7continues to operate while Cortex®-A7 is in debug mode.
Bit 4TIM6 : TIM6 stop in debug
0: normal operation. TIM6continues to operate while Cortex®-A7 is in debug mode.
Bit 3TIM5 : TIM5 stop in debug
0: normal operation. TIM5continues to operate while Cortex®-A7 is in debug mode.

Bits 31:20 Reserved, must be kept at reset value.

Bit 19 I2C2: I2C2 SMBUS timeout stop in debug

Bit 18 I2C1: I2C1 SMBUS timeout stop in debug

Bits 17:10 Reserved, must be kept at reset value.

Bit 9 LPTIM1: LPTIM1 stop in debug

Bits 8:6 Reserved, must be kept at reset value.

Bit 5 TIM7: TIM7 stop in debug

Bit 4 TIM6: TIM6 stop in debug

Bit 3 TIM5: TIM5 stop in debug

Bit 2 TIM4: TIM4 stop in debug

Bit 1 TIM3: TIM3 stop in debug

Bit 0 TIM2: TIM2 stop in debug

DBGMCU APB2 peripheral freeze register (DBGMCU_APB2FZ)

Address offset: 0x03C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
FDCANRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TIM8TIM1
rwrwrw

Bits 31:16 Reserved, must be kept at reset value.

Bit 15 FDCAN: FDCAN stop in debug

Bits 14:9 Reserved, must be kept at reset value.

Bits 8:2 Reserved, must be kept at reset value.

Bit 1 TIM8: TIM8 stop in debug

Bit 0 TIM1: TIM1 stop in debug

DBGMCU APB3 peripheral freeze register (DBGMCU_APB3FZ)

Address offset: 0x044

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LPTIM5LPTIM4LPTIM3LPTIM2Res.
rwrwrwrw
ST logo
ST logo

Bits 31:5 Reserved, must be kept at reset value.

Bit 4 LPTIM5: LPTIM5 stop in debug

Bit 3 LPTIM4: LPTIM4 stop in debug

Bit 2 LPTIM3: LPTIM3 stop in debug

Bit 1 LPTIM2: LPTIM2 stop in debug

Bit 0 Reserved, must be kept at reset value.

DBGMCU APB5 peripheral freeze register (DBGMCU_APB5FZ)

Address offset: 0x04C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RTCIWDG1Res.Res.Res.
rwrw

Bits 31:5 Reserved, must be kept at reset value.

Bit 4 RTC: RTC stop in debug

Bit 3 IWDG1: independent watchdog 1 stop in debug

Bits 2:0 Reserved, must be kept at reset value.

DBGMCU APB6 peripheral freeze register (DBGMCU_APB6FZ)

Address offset: 0x054

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.TIM17TIM16TIM15TIM14TIM13TIM12I2C5I2C4I2C3Res.Res.Res.Res.
rwrwrwrwrwrwrwrwrw

Bits 31:13 Reserved, must be kept at reset value.

Bit 12 TIM17: TIM17 stop in debug

Bit 11 TIM16: TIM16 stop in debug

Bit 10 TIM15: TIM15 stop in debug

Bit 9 TIM14: TIM14 stop in debug

Bit 8 TIM13: TIM13 stop in debug

Bit 7 TIM12: TIM12 stop in debug

Bit 6 I2C5: I2C5 SMBUS stop in debug

Bit 5 I2C4: I2C4 SMBUS stop in debug

Bit 4 I2C3: I2C3 SMBUS stop in debug

Bits 3:0 Reserved, must be kept at reset value.

DBGMCU peripheral ID4 register (DBGMCU_PIDR4)

Address offset: 0xFD0

Reset value: 0x0000 0000

This register belongs to the set of peripheral identification registers. It contains part of the designer identity and the memory footprint indicator.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SIZE[3:0]DES_2[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 SIZE[3:0]: component memory size indicator

Indicates the total contiguous size of the memory window used by the component in powers of two from the standard 4 Kbytes. If a component only requires the standard 4 Kbytes, this bit field must read as 0x0. For 8 Kbytes it is set to 0x1. For 16 Kbytes it set to 0x2. For 32 Kbytes it is set to 0x3, and similarly for larger memory windows.

0x0: the device only occupies 4 Kbytes of memory

Bits 3:0 DES_2[3:0]: JEDEC continuation code

Indicates the designer of the component, together with the identity code.

0x0: indicates that STMicroelectronics JEDEC identity code is on the 1st bank

DBGMCU peripheral ID0 register (DBGMCU_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 0000

This register belongs to the set of peripheral identification registers. It contains part of the designer specific part number.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PART_0[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PART_0[7:0]: bits [7:0] of the component part number

This field is specified by the designer of the component.

0x00: CoreSight™ DBGMCU Part Number[7:0]. Eight least significant bits of the part number (0x000).

DBGMCU peripheral ID1 register (DBGMCU_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 0000

This register belongs to the set of peripheral identification registers. It contains part of the designer specific part number and part of the designer identity.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.DES_0[3:0]PART_1[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 DES_0[3:0]: bits [3:0] of the JEDEC identity code

Indicates the designer of the component, together with the continuation code.

0x0: least significant four bits of the JEP106 identity code (0x20 = STMicroelectronics)

Bits 3:0 PART_1[3:0]: bits [11:8] of the component part number

Specified by the designer of the component.

0x0: CoreSight™ DBGMCU part number[11:8]. Most significant four bits of the part number (0x000).

DBGMCU peripheral ID2 register (DBGMCU_PIDR2)

Address offset: 0xFE8

Reset value: 0x0000 000A

This register belongs to the set of peripheral identification registers. It contains part of the designer identity and the product revision.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.REVISION[3:0]JEDECDES_1[2:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 REVISION[3:0]: incremental component design version

An incremental value starting from 0x0 for the first design of this component. The value increases by one at both major and minor revisions and is used as a look-up to establish the exact major and minor revisions.

0x0: this component is at rev0

Bit 3 JEDEC: JEDEC assigned value usage

Indicates the use of a JEDEC assigned value. This bit is always set.

1: the designer ID is specified by JEDEC (refer to http://www.jedec.org)

Bits 2:0 DES_1[2:0]: bits [6:4] of the JEDEC identity code

Indicates the designer of the component, together with the continuation code.

0x2: most significant three bits of the JEP106 identity code (0x20 = STMicroelectronics)

DBGMCU peripheral ID3 register (DBGMCU_PIDR3)

Address offset: 0xFEC

Reset value: 0x0000 0000

This register belongs to the set of peripheral identification registers. It contains the RevAnd and Customer_Modified bit fields.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.REVAND[3:0]CMOD[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 REVAND[3:0]: minor fix indicator

Indicates minor errata fixes specific to the design, for example metal fixes after implementation. In most cases this field is 0x0. Arm® recommends that the component designers ensure that the bit field can be changed by a metal fix if required, for example by driving the bit field from registers that reset to zero.

0x0: no metal fix in the component

Bits 3:0 CMOD[3:0]: customer modification indicator

When the component is a reusable IP, this value indicates if the customer has modified the behavior of the component. In most cases this field is 0x0.

0x0: no modification made

DBGMCU component ID0 register (DBGMCU_CIDR0)

Address offset: 0xFF0

Reset value: 0x0000 000D

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PRMBL_0[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PRMBL_0[7:0]: bits [31:24] of component identification

Component identification register, that indicates that the identification registers are present.

0x0D: identification value

DBGMCU component ID1 register (DBGMCU_CIDR1)

Address offset: 0xFF4

Reset value: 0x0000 00F0

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CLASS[3:0]PRMBL_1[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 CLASS[3:0]: component class

Indicates the class of the component, for example, ROM table or CoreSight™ component.
0xF: indicates that the component is a non-CoreSight™ component

Bits 3:0 PRMBL_1[3:0]: bits [19:16] of component identification.

Component identification register, that indicates that the identification registers are present.
0x0: identification value

DBGMCU component ID2 register (DBGMCU_CIDR2)

Address offset: 0xFF8

Reset value: 0x0000 0005

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PRMBL_2[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PRMBL_2[7:0]: bits [15:8] of component identification

Component identification register, that indicates that the identification registers are present.
0x05: identification value

DBGMCU component ID3 register (DBGMCU_CIDR3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PRMBL_3[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PRMBL_3[7:0]: bits [7:0] of component identification

Component identification register, that indicates that the identification registers are present.

0xB1: identification value

Microprocessor controller debug unit registers map

Table 623. DBGMCU registers map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000DBGMCU_IDCREV_ID[15:0]ResResResResDEV_ID[11:0]
Reset valuexxxxxxxxxxxxxxx010100000001
0x004DBGMCU_CRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value0
0x008 to 0x028ReservedResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
0x02CDBGMCU_APB4FZResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value0
0x030ReservedResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
0x034DBGMCU_APB1FZResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value000
0x038ReservedResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
0x03CDBGMCU_APB2FZResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value000
0x040ReservedResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
0x044DBGMCU_APB3FZResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value
0x048ReservedResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
0x04CDBGMCU_APB5FZResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value
0x050ReservedResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
0x054DBGMCU_APB6FZResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value000000000
ST logo
ST logo

Table 623. DBGMCU registers map and reset values (continued)

RM0475column_2Debug support (DBG)
Offset Register name 31 3 0 2 9 2 8 2 7 2 6 2 5 2 4 2 3 2 2 21 2 0 1918 17 16 15 14 13 12 1 1 10 9 8 7 6 5 4 3 2 1 0
0x058- R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s . R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.
DBGMCU_PIDR4 R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s . R e s. SIZE[3:0] DES_2[3:0]
0xFD4- R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s . R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.
R e s.
R e s.
R e s.
R e s.
R e s.
R e s.
R e s.
R e s.
R e s.
R e s.
R e s.
R e s.
Re s.
R e s.
R e s.
R e s.
R e s.
R e s.
R e s.
R e s.
R e s.
R e s.
R e s.
R e s.
DBGMCU_PIDR1 R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s . R e s. DES_0[3:0] PART_1[3:0
VISIO R E N[3:0]
S D E _1[2:0]
R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s . R e s.
C JE D E
R E V A N D[3:0]
R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s . R e s.
C O M D[3:0]
DBGMCU_CIDR0 R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s . R e s. PRMBL_0[7:0]
_1[3:0] P R M B L
CLA S S[3:0]
R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s . R e s.
DBGMCU_CIDR2 R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s . R e s. PRMBL_2[7:0]
DBGMCU_CIDR3 R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s . R e s. PRMBL_3[7:0]

59.11 Cortex®-A7 debug features

The Cortex®-A7 subsystem integrates the following CoreSight™ components:

These components are accessible by the debugger via the APB-AP and its associated debug APB bus. They are also accessible by the Cortex®-A7 via the system interconnect.

59.11.1 Cortex®-A7 debug unit

The debug unit enables the debugger to access the debug features built into the Cortex®-A7 MPCore. The debug features allow an external debugger to:

For detailed information on the debug unit, refer to the Cortex®-A7 MPCore Technical Reference Manual [6].

Debug unit registers

The debug unit comprises a number of registers accessible to the debugger via the debug APB at address range 0xE00D 0000 to 0xE00D 0FFC. The same registers are accessible to software at address range 0x500D 0000 to 0x500D 0FFC.

The Cortex®-A7 core can access certain of its own debug unit registers via the CP14 (baseline and extended) registers, using MCR, MRC, MCCR and MRRC instructions.

DBG identification register (DBG_DIDR)

Address offset: 0x000

Reset value: 0x3515 F005

Specifies which version of debug architecture is implemented and what features.

31302928272625242322212019181716
WRPS[3:0]BRPS[3:0]CTX_CMPS[3:0]VERSION[3:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
DEVIDI
MP
NSUH
DIMP
PCSRI
MP
SEIMPRes.Res.Res.Res.VARIANT[3:0]REVISION[3:0]
rrrrrrrrrrrr

Bits 31:28 WRPS[3:0]: Watchpoint Registers Pairs.

Indicates the number of watchpoint register pairs implemented.

0x3: The processor implements 4 WRPs

Bits 27:24 BRPS[3:0]: Breakpoint Registers Pairs.

Indicates the number of breakpoint register pairs implemented.

0x5: The processor implements 6 BRPs

Bits 23:20 CTX_CMPS[3:0]: Context ID comparators.

Indicates the number of BRPs that can be used for Context ID comparison.

0x1: The processor implements 2 breakpoints with context ID comparison

Bits 19:16 VERSION[3:0]: Debug Architecture version.

0x5: Arm®v7.1 debug architecture

DBG watchpoint fault address register (DBG_WFAR)

Address offset: 0x018

Reset value: 0x0000 0000

Returns information about the address of the instruction that accessed a watchpointed address. Not used in this version of debug architecture.

31302928272625242322212019181716
ADDRESS[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
ADDRESS[15:0]
rrrrrrrrrrrrrrrr

DBG vector catch register (DBG_VCR)

Address offset: 0x01C

Reset value: 0x0000 0000

Controls Vector catch debug events.

31302928272625242322212019181716
NSFNSIRes.NSDNSPNSCNSURes.NSHFNSHINSHENSHDNSHPNSHCNSHURes.
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
MFMIRes.MDMPMSRes.Res.SFSIRes.SDSPSSSUR
rwrwrwrwrwrwrwrwrwrwrwrw

Bit 2 SS: Supervisor Call exception secure local Vector catch enable.
0: Disabled
1: Enabled

Bit 1 SU: Undefined Instruction exception secure local Vector catch enable.
0: Disabled
1: Enabled

Bit 0 R: Reset Vector catch enable.
0: Disabled
1: Enabled

DBG event catch register (DBG_ECR)

Address offset: 0x024

Reset value: 0x0000 0000

Configures the debug logic to generate the OS Unlock catch debug event when the OS Lock is cleared.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OSUC
E
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 OSUCE: OS Unlock Catch enable.
An OS Unlock catch debug event is generated when the OS Lock is cleared by writing to the DBGOSLAR.
0: Disabled
1: Enabled

DBG host to target data transfer register (DBG_DTRRX)

Address offset: 0x080

Reset value: 0x0000 0000

Transfers data from an external host to the Arm® processor. For example it is used by a debugger transferring commands and data to a debug target. It is a component of the Debug Communication Channel (DCC).

31302928272625242322212019181716
DATA[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DATA[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
ST logo
ST logo

Bits 31:0 DATA[31:0]: Host to Target Data.

One word of data for transfer from the debug host to the debug target.

DBG instruction transfer register (DBG_ITR)

Address offset: 0x084

Reset value: 0x0000 0000

When the processor is in Debug state, transfers an Arm® instruction to the processor for execution.

31302928272625242322212019181716
INSTRUCTION[31:16]
wwwwwwwwwwwwwwww
1514131211109876543210
INSTRUCTION[15:0]
wwwwwwwwwwwwwwww

Bits 31:0 INSTRUCTION[31:0]: Instruction.

32-bit encoded Arm® instruction to execute on the processor

DBG status and control register (DBG_DSCR)

Address offset: 0x088

Reset value: 0x0000 0000

The main control register for debug.

31302928272625242322212019181716
Res.RXFUL
L
TXFUL
L
Res.RXFUL
L_L
TXFUL
L_L
PIPEA
DV
INSTR
COMP
L_L
Res.Res.EXTDCCMODE[
1:0]
ADADI
SCARD
NSSPNID
DIS
SPIDDI
S
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
MDBG
EN
HDBG
EN
ITRENUDCC
DIS
INTDISDBGA
CK
FSUND_LADABO
RT_L
SDABO
RT_L
MOE[3:0]RESTA
RTED
HALTE
D
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bit 30 RXFULL: DBGDTRRX register full.

0: Register empty

1: Register full

Bit 29 TXFULL: DBGDTRTX register full.

0: Register empty

1: Register full

Bit 28 Reserved, must be kept at reset value.

Bit 6 SDABORT_L: Sticky Synchronous Data Abort (Read Only).

This bit is set to 1 by any synchronous data abort exception generated while in Debug state.

0: No synchronous Data Abort has been generated since the last time this bit was cleared

1: A synchronous Data Abort has been generated since the last time this bit was cleared

Bits 5:2 MOE[3:0]: Method of Debug Entry (Read Only).

Indicates the debug event which caused the processor to enter into debug mode.

0x0: Halt request

0x1: Breakpoint

0x2: Asynchronous watchpoint

0x3: BKPT instruction

0x4: External debug request

0x5: Vector catch

0x6 to 0x7: Reserved

0x8: OS unlock catch

0x9: Reserved

0xA: Synchronous watchpoint

0xB to 0xF: Reserved

Bit 1 RESTARTED: Processor Restarted (Read Only).

After making a restart request, the debugger can poll this bit until it is set to 1. At that point it knows that the restart request has taken effect and the processor has exited Debug state.

0: The processor is exiting Debug state. This bit only reads as 0 between receiving a restart request, and restarting Non-debug state operation

1: The processor has exited Debug state. This bit remains set to 1 if the processor re-enters Debug state.

Bit 0 HALTED: Processor Halted (Read Only).

After programming a debug event, the external debugger can poll this bit until it is set to 1. At that point it knows that the processor has entered Debug state.

0: The processor is in Non-debug state

1: The processor is in Debug state

DBG target to host data transfer register (DBG_DTRTX)

Address offset: 0x08C

Reset value: 0x0000 0000

Transfers data from the Arm® processor to an external host. For example it is used by a debug target to transfer commands and data to a debugger. It is a component of the Debug Communication Channel (DCC).

31302928272625242322212019181716
DATA[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DATA[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 DATA[31:0]: Target to Host Data.

One word of data for transfer from the debug target to the debug host.

DBG run control register (DBG_DRCR)

Address offset: 0x090

Reset value: 0x0000 0000

Software uses this register to request the processor to enter or exit Debug state, and to clear the sticky exception bits in the DBG_DSCR.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CBRR
Q
CSPACSERRQHRQ
rwrwrwrwrw

Bits 31:5 Reserved, must be kept at reset value.

Bit 4 CBRRQ: Cancel Bus Requests.

0: No action

1: Request cancel of pending accesses

Bit 3 CSPA: Clear Sticky Pipeline Advance bit.

0: No action

1: Reset the DBG_DSCR.PIPEADV bit to 0

Bit 2 CSE: Clear Sticky Exception bits..

0: No action

1: Resets the DBG_DSCR[8:6] bits to 0

Bit 1 RRQ: Restart Request.

This request is held until the processor exits Debug state. After the request has been made, the debugger can poll the DBG_DSCR.RESTARTED bit until it reads as 1.

0: No action

1: Request exit from debug mode.

Bit 0 HRQ: Halt Request.

This request is held until the processor enters Debug state. After the request has been made, the debugger can poll the DBG_DSCR.HALTED bit until it reads as 1.

0: No action

1: Request entry from debug mode.

DBG external auxiliary control register (DBG_EACR)

Address offset: 0x094

Reset value: 0x0000 0000

Provides implementation-defined configuration and control options.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CDRSTATRes.Res.Res.
r

Bits 31:4 Reserved, must be kept at reset value.

Bit 3 CDRSTAT: Core Debug Reset Status (Read Only).
Reflects the current reset state of the debug logic in the CPU power domain.
0: Debug logic in CPU power domain is not in reset state
1: Debug logic in CPU power domain is in reset state

Bits 2:0 Reserved, must be kept at reset value.

DBG program counter sampling register (DBG_PCSR)

Address offset: 0x0A0

Reset value: 0x0000 0000

This register provides implementation-defined configuration and control options.

31302928272625242322212019181716
PCS[31:16]
rrrrrrrrrrrrrrr
1514131211109876543210
PCS[15:1]T
rrrrrrrrrrrrrrrr

Bits 31:1 PCS[31:1]: Program Counter Sample value.
The sampled value of bits[31:1] of the PC. The sampled value is either the virtual address of an instruction, or the virtual address of an instruction address plus an offset that depends on the processor instruction set state. DBG_DEVID1.PCSROFFSET indicates whether an offset is applied to the sampled addresses.

Bit 0 T: Thumb instruction.
This bit indicates whether the sampled address is an Arm® instruction, or a Thumb or ThumbEE instruction:
0: Arm® instruction
1: Thumb or ThumbEE instruction

DBG context ID sampling register (DBG_CIDSR)

Address offset: 0x0A4

Reset value: 0x0000 0000

Samples the CONTEXTIDR whenever the DBG_PCSR samples the program counter. This enables a debugger to associate a program counter sample with the process running on the processor.

ST logo
ST logo
31302928272625242322212019181716
CONTEXTIDR[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
CONTEXTIDR[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 CONTEXTIDR[31:0]: Context ID Register sample value.

The value of the Context ID Register, CONTEXTIDR, associated with the last PC sample read from DBG_PCSR.

DBG virtualisation id sampling register (DBG_VIDSR)

Address offset: 0x0A8

Reset value: 0x0000 0000

Samples the VMID, Hyp mode status, and NS state whenever the DBGPCSR samples the program counter. This enables a debugger to associate a program counter sample with the virtual machine running on the processor.

31302928272625242322212019181716
NSHRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.VMID[7:0]
rwrwrwrwrwrwrwrw

Bit 31 NS: Sampled NS state.

Indicates the Secure or Non-secure state associated with the last PC sample read from DBGPCSR.

0: Secure state

1: Non-secure state

Bit 30 H: Sampled Hyp mode. Indicates whether the last PC sample read from DBG_PCSR was associated with Hyp mode.

0: Not Hyp mode

1: Hyp mode

Bits 29:8 Reserved, must be kept at reset value.

Bits 7:0 VMID[7:0]: VMID sample.

The value of the VMID field from the VTTBR, associated with the last PC sample read from DBG_PCSR.

DBG breakpoint value x register (DBG_BVRx)

Address offset: 0x100 + 0x4 * x, (x = 0 to 5)

Reset value: 0x0000 0000

Holds a value for use in breakpoint matching, either an instruction address or a Context ID. Each DBG_BVR is associated with a DBG_BCR to form a Breakpoint Register Pair (BRP) ie. DBG_BVR[n] is associated with DBG_BCR[n] to form breakpoint n.

31302928272625242322212019181716
ADDRESSCONTEXTID[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
ADDRESSCONTEXTID[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 ADDRESSCONTEXTID[31:0]: Instruction Address or Context ID.

If the register is being used for address comparison, this field contains the instruction address to be matched (bits 31:2; bits 1:0 must be set to zero). If the register is being used for context ID comparison, this field contains the Context ID to be matched.

DBG breakpoint control x register (DBG_BCRx)

Address offset: 0x140 + 0x4 * x, (x = 0 to 5)

Reset value: 0x0000 0000

Holds control information for breakpointing. Each DBG_BCR is associated with a DBG_BVR to form a Breakpoint Register Pair (BRP) ie. DBG_BCR[n] is associated with DBG_BVR[n] to form breakpoint n.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.BT[3:0]LBN[3:0]
rwrwrwrwrwrwrwrw
1514131211109876543210
SSC[1:0]HMCRes.Res.Res.Res.BAS[3:0]Res.Res.PMC[1:0]E
rwrwrwrwrwrwrwrwrwrw

Bits 31:24 Reserved, must be kept at reset value.

Bits 23:20 BT[3:0]: Breakpoint Type.

Determines the type of comparison made by the breakpoint.

0x0: Unlinked instruction address match

0x1: Linked instruction address match

0x2: Unlinked Context ID match

0x3: Linked Context ID match

0x4: Unlinked instruction address mismatch

0x5: Linked instruction address mismatch

0x6-0x7: Reserved

0x8: Unlinked VMID match

0x9: Linked VMID match

0xA: Unlinked VMID match and Context ID match

0xB: Linked VMID match and Context ID match

0xC-0xF: Reserved

Bits 19:16 LBN[3:0]: Linked Breakpoint Number.

If this breakpoint is programmed for Linked instruction address match or mismatch then this field must be programmed with the number of the breakpoint that holds the Context match to be used in the combined instruction address and Context comparison. Otherwise, this field must be programmed to 0.

Bits 15:14 SSC[1:0]: Security State Control.

This field enables the breakpoint to be conditional on the security state of the processor. This field must be programmed to 0 if DBG_BCR.BT is programmed for Linked Context ID match.

Bit 13 HMC: Hyp Mode Control.

This field controls whether the breakpoint matches in Hyp mode.

This field must be programmed to 0 if DBG_BCR.BT is programmed for Linked Context ID match.

Bits 12:9 Reserved, must be kept at reset value.

Bits 8:5 BAS[3:0]: Byte Address Select.

This field enables match or mismatch comparisons on only certain bytes of the word address held in the DBG_BVR. The operation of this field depends also on:

Bits 4:3 Reserved, must be kept at reset value.

Bits 2:1 PMC[1:0]: Privileged Mode Control.

This field enables the breakpoint to be conditional on the mode of the processor. This field must be programmed to 3 if DBG_BCR.BT is programmed for Linked Context ID match.

Bit 0 E: Breakpoint Enable.

DBG watchpoint value x register (DBG_WVRx)

Address offset: 0x180+0x4*x, (x = 0 to 3)

Reset value: 0x0000 0000

Holds a value for use in Watchpoint matching, The address used must be the virtual address of the data. Each DBG_WVR is associated with a DBG_WCR to form a Breakpoint Register Pair (BRP) ie. DBG_WVR[n] is associated with DBG_WCR[n] to form breakpoint n.

31302928272625242322212019181716
ADDRESS[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
ADDRESS[15:2]Res.Res.
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:2 ADDRESS[31:2]: Data Address.

This field indicates bits[31:2] of the address value for comparison.

Bits 1:0 Reserved, must be kept at reset value.

DBG watchpoint control xregister (DBG_WCRx)

Address offset: 0x1C0+0x4*x (x = 0 to 3)

Reset value: 0x0000 0000

Holds control information for watchpoint. Each DBG_WCR is associated with a DBG_WVR to form a Breakpoint Register Pair (BRP) ie. DBG_WCR[n] is associated with DBG_WVR[n] to form breakpoint n.

31302928272625242322212019181716
Res.Res.Res.MASK[4:0]Res.Res.Res.WTLBN[3:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SSC[1:0]HMCBAS[7:0]LSC[1:0]PAC[1:0]E
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:29 Reserved, must be kept at reset value.

Bits 28:24 MASK[4:0]: Address Mask.

This field can be used to set a watchpoint on a range of addresses by masking lower order address bits out of the watchpoint comparison. The value of this field is the number of low order bits of the address that are masked off, except that values of 1 and 2 are reserved.

0x0: No mask

0x1: Reserved

0x2: Reserved

0x3: Three bits masked (data address mask = 0x00000007)

0x4: Four bits masked (data address mask = 0x0000000F)

0x5: Five bits masked (data address mask = 0x0000001F)

..

0x1F: 31 bits masked (data address mask = 0x7FFFFFFF)

Bits 23:21 Reserved, must be kept at reset value.

Bit 20 WT: Watchpoint Type.

This bit is set to 1 to link the watchpoint to a breakpoint to create a linked watchpoint that requires both data address matching and Context ID matching. The linked breakpoint number field indicates the breakpoint to which this watchpoint is linked.

0: Linking disabled.

1: Linking enabled.

Bits 19:16 LBN[3:0]: Linked Breakpoint Number.

If this watchpoint is programmed with watchpoint type set to linking enabled, then this field must be programmed with the number of the breakpoint that defines the Context match to be combined with data address comparison. Otherwise, this field must be programmed to 0.

Bits 15:14 SSC[1:0]: Security State Control.

This field enables the watchpoint to be conditional on the security state of the processor.

Bit 13 HMC: Hyp Mode Control.

This field controls whether the watchpoint matches in Hyp mode.

Bits 12:5 BAS[7:0]: Byte Address Select.

A DBG_WVR is programmed with a word-aligned address. This field enables the watchpoint to hit only if certain bytes of the addressed word are accessed. The watchpoint hits if an access hits any byte being watched, even if:

The access size is larger than the size of the region being watched.

The access is unaligned, and the base address of the access is not in the same word of memory as the address in the DBG_WVR.

Watched bytes should be contiguous within a word ie. 11100001 should not be programmed.

Example values for BAS:

Bits 4:3 LSC[1:0]: Load/store access control.

This field enables watchpoint matching conditional on the type of access being made.

Bits 2:1 PAC[1:0]: Privileged Access Control.

This field enables watchpoint matching conditional on the mode of the processor.

Bit 0 E: Watchpoint Enable.

DBG breakpoint extended value x register (DBG_BXVRx)

Address offset: 0x250+0x4*x, (x = 0 to 1)

Reset value: 0x0000 0000

Holds a value for use in VMID matching for BRP that supports Context ID comparison. Each DBG_BXVR is associated with a DBG_BCR/DBG_BVR Breakpoint Register Pair (BRP) ie. DBG_BXVR[n] is associated with DBG_BCR[n] and DBG_BVR[n] to form breakpoint n.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.VMID[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 VMID[7:0]: Virtual Machine ID.
Used to compare with the Virtual Machine ID (VMID) field, held in the Virtualization Translation Table Base Register (VTTBR).

DBG OS lock access register (DBG_OSLAR)

Address offset: 0x300

Reset value: 0XXXXX XXXX

31302928272625242322212019181716
OSLOCKACCESS[31:16]
wwwwwwwwwwwwwwww
1514131211109876543210
OSLOCKACCESS[15:0]
wwwwwwwwwwwwwwww

Bits 31:0 OSLOCKACCESS[31:0]: DBG registers lock access
0xC5ACCE55: Disable access
Other values: Enable access

DBG OS lock status register (DBG_OLSLR)

Address offset: 0x304

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OSLM [1]NTTOSLKOSLM [0]
rrrr

Bits 31:4 Reserved, must be kept at reset value.

ST logo
ST logo

Bit 2 NTT: Need 32-bit.

0: 32-bit access is needed to write the key to the OS Lock Access Register.

Bit 1 OSLK: OS lock status

0: LOCK not set.

1: LOCK set. Access to DBG registers disabled

Bits 3, 0 OSLM[1:0]: OS lock model

This field identifies the form of OS Save and Restore mechanism implemented:

10: The processor implements the OS Lock Model but does not implement DBGOSRR

Others: Reserved

DBG device power-down and reset control register (DBG_PRCR)

Address offset: 0x310

Reset value: 0x0000 0000

Bit NumberBit NameDescriptionReservedRead/WriteBit NumberBit NameDescriptionReservedRead/WriteBit NumberBit NameDescriptionReservedRead/WriteBit Number
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210 CORE
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CORE PURQNPDR Q
rwrwrwrw
Bit 3 COREPURQ: Power-up request
Bit 2 HCWR: Hold reset
Bit 1 CWRR: Reset request
Bit 0 CORENPDRQ: Hold power-up request

Bits 31:4 Reserved, must be kept at reset value.

Bit 3 COREPURQ: Power-up request

This bit enables a debugger to request that the power controller powers up the processor, enabling access to debug registers in the processor power domain:

0: DBGPWRUPREQ is low

1: DBGPWRUPREQ is high

Bit 2 HCWR: Hold reset

0: Do not hold the non-debug logic reset on power-up or warm reset.

1: Hold the non-debug logic of the processor in reset on power-up or warm reset. The processor is held in this state until this bit is set to 0

Bit 1 CWRR: Reset request

0: No action

1: Request internal reset using the memory mapped interface or CP14

Bit 0 CORENPDRQ: Hold power-up request

0: DBGNOPWRDWN is low

1: DBGNOPWRDWN is high

DBG device power-down and reset status register (DBG_PRSR)

Address offset: 0x314

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.DLKOSLKHALTEDSRRSPDPU
rrrrrrr

Bits 31:7 Reserved, must be kept at reset value.

Bit 6 DLK: OS double lock status

Bit 5 OSLK: OS lock status

Bit 4 HALTED: Halted state

Bit 3 SR: Sticky reset

Bit 2 R: Reset

Bit 1 SPD: Sticky power-down status

Bit 0 PU: Power-up status

DBG processor main ID register (DBG_MIDR)

Address offset: 0xD00

Reset value: 0x410F C075

31302928272625242322212019181716
IMPLEMENTER[7:0]VARIANT[3:0]ARCH[3:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
PART[11:0]REVISION[3:0]
rrrrrrrrrrrrrrrr

DBG processor cache type register (DBG_CTR)

Address offset: 0xD04

Reset value: 0x8444 8003

31302928272625242322212019181716
FORMAT[2:0]Res.CWG[3:0]ERG[3:0]DMINLINE[3:0]
rrrrrrrrrrrrrrr
1514131211109876543210
L1IP[1:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IMINLINE[3:0]
rrrrrr
ST logo
ST logo

Bits 15:14 L1IP[1:0]: L1 instruction cache policy
Indicates the indexing and tagging policy for the L1 instruction cache.
0x2: Virtually Indexed Physically Tagged (VIPT)

Bits 13:4 Reserved, must be kept at reset value.

Bits 3:0 IMINLINE[3:0]: Minimum instruction cache line.
Number of words in the smallest cache line of all the instruction caches that the processor controls.
0x3: 8 words

DBG processor TLB type register (DBG_TLBTR)

Address offset: 0xD0C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NU
r

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 NU: Unified TLB.
0: Processor has a unified TLB

DBG processor multi-processor affinity register (DBG_MPIDR)

Address offset: 0xD14

Reset value: 0x8000 0000

31302928272625242322212019181716
Res.URes.Res.Res.Res.Res.MTRes.Res.Res.Res.Res.Res.Res.Res.
rr
1514131211109876543210
Res.Res.Res.Res.CLUSTERID[3:0]Res.Res.Res.Res.Res.Res.CPUID[1:0]
rrrrrr

Bit 31 Reserved, must be kept at reset value.

Bit 30 U: Uniprocessor system
0: Processor is part of a multi-processor system

Bits 29:25 Reserved, must be kept at reset value.

Bit 24 MT: Multi-threading.
Indicates whether the lowest level of affinity consists of logical processors that are implemented using a multi-threading type approach.
0: Processor is part of a multi-processor system

Bits 23:12 Reserved, must be kept at reset value.

ST logo
ST logo

Bits 11:8 CLUSTERID[3:0]: CLUSTERID configuration.
Indicates the value read in the CLUSTERID configuration pin. It identifies each Cortex-A7 MPCore processor in a system with more than one processor present.

Bits 7:2 Reserved, must be kept at reset value.

Bits 1:0 CPUID[1:0]: Processor number.
For one processor, the CPU ID is 0x0.

DBG revision ID register (DBG_REVIDR)

Address offset: 0xD18

Reset value: 0x0000 0000

31302928272625242322212019181716
ID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
ID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 ID[31:0]: Implementation-specific revision information.

DBG processor feature 0 register (DBG_PFR0)

Address offset: 0xD20

Reset value: 0x0000 1131

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
STATE3[3:0]STATE2[3:0]STATE1[3:0]STATE0[3:0]
rrrrrrrrrrrrrrrr

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:12 STATE3[3:0]: Support for Thumb execution environment (ThumbEE) instruction set.
1: ThumbEE instruction set implemented

Bits 11:8 STATE2[3:0]: Support for Jazelle extension.
1: Processor supports trivial implementation of Jazelle extension

Bits 7:4 STATE1[3:0]: Support for Thumb instruction set.
3: Processor supports Thumb encoding after the introduction of Thumb-2 technology, and for all 16-bit and 32-bit Thumb basic instructions.

Bits 3:0 STATE0[3:0]: Support for Arm® instruction set.
1: Processor supports Arm® instruction set

ST logo
ST logo

DBG processor feature 1 register (DBG_PFR1)

Address offset: 0xD24

Reset value: 0x0001 1011

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GENTIMEXT[3:0]
rrrr
1514131211109876543210
VIRTEXT[3:0]MPPM[3:0]SECEXT[3:0]PROGMOD[3:0]
rrrrrrrrrrrrrrrr

Bits 31:20 Reserved, must be kept at reset value.

Bits 19:16 GENTIMEXT[3:0] : Generic timer.

1: Processor supports generic timer

Bits 15:12 VIRTEXT[3:0] : Virtualisation extensions.

1: Processor supports virtualisation extensions

Bits 11:8 MPPM[3:0] : M profile programmers model.

0: Processor does not support microprocessor programmers model

Bits 7:4 SECEXT[3:0] : Security extensions.

1: Processor supports security extensions

Bits 3:0 PROGMOD[3:0] : Programmers model.1: Processor supports the standard programmers model for Arm ® v4 and later

DBG feature 0 register (DBG_DFR0)

Address offset: 0xD28

Reset value: 0x0201 0555

31302928272625242322212019181716
Res.Res.Res.Res.PMUEXT[3:0]MPDBGMOD[3:0]MMTMOD[3:0]
rrrrrrrrrrrr
1514131211109876543210
CTMOD[3:0]MMDBGMOD[3:0]CSDBGMOD[3:0]CDBGMOD[3:0]
rrrrrrrrrrrrrrrr

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:24 PMUEXT[3:0] : Performance monitor model.

2: Processor supports Performance monitor unit version 2 (PMUv2) architecture

Bits 23:20 MPDBGMOD[3:0] : Debug model, M profile.

0: Processor does not support M profile debug architecture

Bits 19:16 MMTMOD[3:0] : Memory mapped trace model.1: Processor supports Arm ® trace architecture, with memory mapped accessBits 15:12 CTMOD[3:0] : Coprocessor trace model0: Processor does not support Arm ® trace architecture, with CP14 access

DBG processor memory model feature 0 register (DBG_MMFR0)

Address offset: 0xD30

Reset value: 0x1010 1105

31302928272625242322212019181716
INNERSH[3:0]FCSE[3:0]AUXREGS[3:0]TCM[3:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
SHLVLS[3:0]OUTERSH[3:0]PMSA[3:0]VMSA[3:0]
rrrrrrrrrrrrrrrr

DBG processor memory model feature 1 register (DBG_MMFR1)

Address offset: 0xD34

Reset value: 0x4000 0000

31302928272625242322212019181716
BCHPRED[3:0]L1CTSTCLN[3:0]L1UNIC[3:0]L1HVDC[3:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
L1UNICSW[3:0]L1HVDCSW[3:0]L1UNICVA[3:0]L1HVDCVA[3:0]
rrrrrrrrrrrrrrrr

Bits 31:28 BCHPRED[3:0]: Branch predictor management requirements.

4: Branch predictor requires no flushing at any time

Bits 27:24 L1CTSTCLN[3:0]: L1 cache test and clean operations supported.

0: Not supported

Bits 23:20 L1UNIC[3:0]: L1 unified cache maintenance operations.

0: Not supported

Bits 19:16 L1HVDC[3:0]: L1 Harvard cache maintenance operations.

0: Not supported

Bits 15:12 L1UNICSW[3:0]: L1 unified cache set/way line maintenance operations.

0: Not supported

Bits 11:8 L1HVDCSW[3:0]: L1 Harvard cache set/way line maintenance operations.

0: Not supported

Bits 7:4 L1UNICVA[3:0]: L1 unified cache line maintenance operations by MVA

0: Not supported

Bits 3:0 L1HVDCVA[3:0]: L1 Harvard cache line maintenance operations by MVA

0: Not supported

DBG processor memory model feature 2 register (DBG_MMFR2)

Address offset: 0xD38

Reset value: 0x0124 0000

31302928272625242322212019181716
HWACFLG[3:0]WFISTALL[3:0]MEMBARR[3:0]UNIFTLB[3:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
HVDTLB[3:0]L1HRANGE[3:0]L1HBGFTCH[3:0]L1HFGFTCH[3:0]
rrrrrrrrrrrrrrrr

Bits 31:28 HWACFLG[3:0]: Hardware access flag.

0: Not supported

Bits 27:24 WFISTALL[3:0]: Wait for interrupt stalling.

1: Processor supports WFI stalling

Bits 23:20 MEMBARR[3:0]: Memory barrier.

2: Processor supports: Data synchronisation barrier (DSB); Instruction synchronisation barrier (ISB); Data memory barrier (DMB)

DBG processor memory model feature 3 register (DBG_MMFR3)

Address offset: 0xD3C

Reset value: 0x0210 2211

31302928272625242322212019181716
SUPERSECT[3:0]CMEMSIZE[3:0]COHWALK[3:0]Res.Res.Res.Res.
rrrrrrrrrrrr
1514131211109876543210
MAINTBCST[3:0]BPMAINT[3:0]CMAINTSW[3:0]CMAINTMVA[3:0]
rrrrrrrrrrrrrrrr

DBG processor instruction set attribute 0 register (DBG_ISAR0)

Address offset: 0xD40

Reset value: 0x0210 1110

31302928272625242322212019181716
Res.Res.Res.Res.DIVINST[3:0]DBGINST[3:0]COPROINST[3:0]
rrrrrrrrrrrr
1514131211109876543210
CMPBRINST[3:0]BITFLDINST[3:0]BITCNTINST[3:0]SWAPINST[3:0]
rrrrrrrrrrrrrrrr
Bits 31:28 Reserved , must be kept at reset value.Bits 27:24 DIVINST[3:0] : Divide instructions.2: Processor supports: SDIV and UDIV in the Thumb instruction set; SDIV and UDIV in the Arm ® instruction set.Bits 23:20 DBGINST[3:0] : Debug instructions.

1: Processor supports BKPT instruction

Bits 19:16 COPROINST[3:0] : Coprocessor instructions.

0: None supported, except for separately attributed architectures including CP15, CP14, and Advanced SIMD and VFP.

Bits 15:12 CMPBRINST[3:0] : Combined compare and branch instructions.

1: Processor supports CBNZ and CBZ instructions

Bits 11:8 BITFLDINST[3:0] : Bit field instructions.

1: Processor supports BFC, BFI, SBFX and UBFX instructions

Bits 7:4 BITCNTINST[3:0] : Bit count instructions.

1: Processor supports CLZ instruction

Bits 3:0 SWAPINST[3:0] : Swap instructions.

0: SWP and SWPB instructions supported fractionally

DBG processor instruction set attribute 1 register (DBG_ISAR1)

Address offset: 0xD44

Reset value: 0x1311 2111

31302928272625242322212019181716
JAZINST[3:0]INTWKINST[3:0]IMMINST[3:0]IFTHENINST[3:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
EXTNDINST[3:0]EXCARINST[3:0]EXCINST[3:0]ENDIANINST[3:0]
rrrrrrrrrrrrrrrr

DBG processor instruction set attribute 2 register (DBG_ISAR2)

Address offset: 0xD48

Reset value: 0x2123 2041

31302928272625242322212019181716
REVSALINST[3:0]PSRINST[3:0]MULTUINST[3:0]MULTSINST[3:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
MULTINST[3:0]MULACINST[3:0]MEMHTINST[3:0]LDSTRINST[3:0]
rrrrrrrrrrrrrrrr

DBG processor instruction set attribute 3 register (DBG_ISAR3)

Address offset: 0xD4C

Reset value: 0x1111 2131

31302928272625242322212019181716
TEEXTINST[3:0]TRNOPINST[3:0]THCPYINST[3:0]TABBRINST[3:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
SYNPRIINST[3:0]SVCINST[3:0]SIMDINST[3:0]SATINST[3:0]
rrrrrrrrrrrrrrrr
ST logo
ST logo

Bits 11:8 SVCINST[3:0]: SVC instructions.

1: Processor supports SVC instruction

Bits 7:4 SIMDINST[3:0]: Single instruction multiple data (SIMD) instructions.

3: Processor supports: SSAT and USAT instructions, and the Q bit in the PSRs; PKHBT, PKHTB, QADD16, QADD8, QASX, QSUB16, QSUB8, QSAX, SADD16, SADD8, SASX, SEL, SHADD16, SHADD8, SHASX, SHSUB16, SHSUB8, SHSAX, SSAT16, SSUB16, SSUB8, SSAX, SXTAB16, SXTB16, UADD16, UADD8, UASX, UHADD16, UHADD8, UHASX, UHSUB16, UHSUB8, UHSAX, UQADD16, UQADD8, UQASX, UQSUB16, UQSUB8, UQSAX, USAD8, USADA8, USAT16, USUB16, USUB8, USAX, UXTAB16, UXTB16 instructions, and the GE[3:0] bits in the PSRs

Bits 3:0 SATINST[3:0]: Saturate instructions.

1: Processor supports QADD, QDADD, QDSUB, QSUB and the Q bit in the PSRs

DBG processor instruction set attribute 4 register (DBG_ISAR4)

Address offset: 0xD50

Reset value: 0x1001 1142

31302928272625242322212019181716
SWPFRAC[3:0]PSRMINST[3:0]SPINSFRAC[3:0]BARRINST[3:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
SMCINST[3:0]WRBKINST[3:0]WSHFTINST[3:0]UNPRIVINST[3:0]
rrrrrrrrrrrrrrrr

Bits 31:28 SWPFRAC[3:0]: Support for the memory system locking the bus for SWP or SWPB instructions:.

1: Processor supports SWP and SWPB instruction but only in a uniprocessor context. SWP and SWPB do not guarantee whether memory accesses from other masters can come between the load memory access and the store memory access of the SWP or SWPB instruction

Bits 27:24 PSRMINST[3:0]: M profile instructions to modify the PSRs.

0: None supported

Bits 23:20 SPINSFRAC[3:0]: Synchronisation primitive instructions.

0: Processor supports: LDREX and STREX instructions; CLREX, LDREXB, LDREXH, STREXB, and STREXH instructions; LDREXD and STREXD instructions

Bits 19:16 BARRINST[3:0]: Barrier instructions.

1: Processor supports DMB, DSB and ISB instructions

Bits 15:12 SMCINST[3:0]: SMC instructions.

1: Processor supports SMC instruction

DBG claim tag set register (DBG_CLAIMSET)

Address offset: 0xFA0

Reset value: 0x0000 00FF

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SET[7:0]
rwrwrwrwrwrwrwrw

DBG claim tag clear register (DBG_CLAIMCLR)

Address offset: 0xFA4

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CLR[7:0]
rwrwrwrwrwrwrwrw
ST logo
ST logo

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 CLR[7:0]: Reset claim tag bits

Write:
00000000: No effect
xxxxxxx1: Clear bit 0
xxxxxx1x: Clear bit 1
xxxxx1xx: Clear bit 2
xxxx1xxx: Clear bit 3
...etc.
Read: Returns current value of claim tag

DBG lock access register (DBG_LAR)

Address offset: 0xFB0

Reset value: 0xXXXX XXXX

31302928272625242322212019181716
KEY[31:16]
wwwwwwwwwwwwwwww
1514131211109876543210
KEY[15:0]
wwwwwwwwwwwwwwww

Bits 31:0 KEY[31:0]: DBG register write access

Enables write access to some DBG registers by processor cores (debuggers do not need to unlock the component)
0xC5ACCE55: Enable write access
Other values: Disable write access

DBG lock status register (DBG_LSR)

Address offset: 0xFB4

Reset value: 0x0000 0003

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NTTSLKSLI
rrr

Bits 31:3 Reserved, must be kept at reset value.

ST logo
ST logo

Bit 2 NTT: Size of the DBG_LAR register
0: 32-bit

Bit 1 SLK: Current status of lock
This bit always returns zero when read by an external debugger.
0: Write access is permitted
1: Write access is blocked. Only read access is permitted.

Bit 0 SLI: Existence of lock control mechanism
The bit indicates whether a lock control mechanism exists. It always returns zero when read by an external debugger.
0: No lock control mechanism exists
1: Lock control mechanism is implemented

DBG authentication status register (DBG_AUTHSTAT)

Address offset: 0xFB8

Reset value: 0x0000 000A

column_1Debug support (DBG)Bit 2 Bit 1 Bit 0NTT : Size of the DBG_LAR register 0: 32-bit SLK : Current status of lock 0: Write access is permitted SLI by an external debugger. Address offset: 0xFB8 Reset value: 0x0000 000Acolumn_5column_6column_7column_8column_9RM0475
31302928 27 26 25 24 23 22212019181716
Res.Res.Res.Res. Res. Res. Res. Res. Res. Res.Res.Res.Res.Res.Res.Res.
15141312 11 10 9 8 7 6543210
Res.Res.Res.Res. Res. Res. Res. Res. SNI SNESISENSNI NSNENSINSE
r rrrrrrr
Bit 7SNI : Secure non-invasive debug
Bit 6SNE : Secure non-invasive debug enabled
Bit 5SI : Secure invasive debug
Bit 4SE : Secure invasive debug enabled
Bit 3NSNI : Non-secure non-invasive debug
Bit 2NSNE : Non-secure non-invasive debug enabled
Bit 1NSI : Non-secure invasive debug
Bit 0NSE : Non-secure invasive debug enabled

Bits 31:8 Reserved, must be kept at reset value.

Bit 7 SNI: Secure non-invasive debug
1: Secure non-invasive debug features implemented

Bit 6 SNE: Secure non-invasive debug enabled
0: Non-invasive debug is not permitted in secure PL1 modes
1: Non-invasive debug is permitted in secure PL1 modes

Bit 5 SI: Secure invasive debug
1: Secure invasive debug features implemented

Bit 4 SE: Secure invasive debug enabled
0: Invasive halting debug is not permitted in secure PL1 modes
1: Invasive halting debug is permitted in secure PL1 modes

Bit 3 NSNI: Non-secure non-invasive debug
1: Non-secure non-invasive debug features implemented

Bit 2 NSNE: Non-secure non-invasive debug enabled
0: Non-secure non-invasive debug is not permitted
1: Non-secure non-invasive debug is permitted

Bit 1 NSI: Non-secure invasive debug
1: Non-secure invasive debug features implemented

Bit 0 NSE: Non-secure invasive debug enabled
0: Non-secure invasive debug is not permitted
1: Non-secure invasive debug is permitted

DBG CoreSight device ID 1 register (DBG_DEVID1)

Address offset: 0xFC4

Reset value: 0x0000 0001

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PCSROFFSET[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PCSROFFSET[7:0] : DBGPCSR offset

0x1: No offset applied

DBG Coresight device configuration register (DBG_DEVID)

Address offset: 0xFC8

Reset value: 0x0111 0F13

31302928272625242322212019181716
CIDMASK[3:0]AUXREGS[3:0]DOUBLELOCK[3:0]VIREXTNS[3:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
VECTORCATCH[3:0]BPADDRMASK[3:0]WPADDRMASK[3:0]PCSAMPLE[3:0]
rrrrrrrrrrrrrrrr
Bits 31:28 CIDMASK[3:0] : Context ID matching breakpoint masking

0x0: Not implemented

Bits 27:24 AUXREGS[3:0] : Debug external auxiliary control register.

0x1: The processor supports debug external auxiliary control register

Bits 23:20 DOUBLELOCK[3:0] : Debug OS double lock register.

0x1: The processor supports debug OS double lock register

Bits 19:16 VIREXTNS[3:0] : Virtualisation extensions.

0x1: The processor implements the Virtualization Extensions to the Debug architecture

Bits 15:12 VECTORCATCH[3:0] : Vector catch event.

0x0: The processor implements address matching form of vector catch

Bits 11:8 BPADDRMASK[3:0] : Immediate Virtual Address (IVA) matching breakpoint masking.

0xF: Not implemented

Bits 7:4 WPADDRMASK[3:0] : DVA matching watchpoint masking.

0x1: Watchpoint address mask implemented

Bits 3:0 PCSAMPLE[3:0] : Program Counter sampling using debug registers 40, 41, and 42.

0x3: DBGPCSR, DBGCIDSR and DBGVIDSR are implemented as debug registers 40, 41 and 42

DBG CoreSight device type register (DBG_DEVTYPE)

Address offset: 0xFCC

Reset value: 0x0000 0015

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SUBTYPE[3:0]MAJORTYPE[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 SUBTYPE[3:0] : Device sub-type identifier

0x1: Processor

Bits 3:0 MAJORTYPE[3:0] : Device main type identifier

0x5: Debug logic

DBG CoreSight peripheral identity register 4 (DBG_PIDR4)

Address offset: 0xFD0

Reset value: 0x0000 0004

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SIZE[3:0]JEP106CON[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 SIZE[3:0] : Register file size

0x0: Register file occupies a single 4 Kbyte region

Bits 3:0 JEP106CON[3:0] : JEP106 continuation code0x4: Arm ® JEDEC code

DBG CoreSight peripheral identity register 0 (DBG_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 0007

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PARTNUM[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PARTNUM[7:0]: Part number field, bits [7:0]
0x07: DBG part number

DBG CoreSight peripheral identity register 1 (DBG_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00BC

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.JEP106ID[3:0]PARTNUM[11:8]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 JEP106ID[3:0]: JEP106 identity code field, bits [3:0]
0xB: Arm® JEDEC code

Bits 3:0 PARTNUM[11:8]: Part number field, bits [11:8]
0xC: DBG part number

DBG CoreSight peripheral identity register 2 (DBG_PIDR2)

Address offset: 0xFE8

Reset value: 0x0000 005B

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.REVISION[3:0]JEDECJEP106ID[6:4]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 REVISION[3:0]: Component revision number
0x5: r0p5

Bit 3 JEDEC: JEDEC assigned value
1: Designer ID specified by JEDEC

Bits 2:0 JEP106ID[6:4]: JEP106 identity code field, bits [6:4]
0x3: Arm® JEDEC code

DBG CoreSight peripheral identity register 3 (DBG_PIDR3)

Address offset: 0xFEC

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.REVAND[3:0]CMOD[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 REVAND[3:0]: Metal fix version

0x0: No metal fix

Bits 3:0 CMOD[3:0]: Customer modified

0x0: No customer modifications

DBG CoreSight component identity register 0 (DBG_CIDR0)

Address offset: 0xFF0

Reset value: 0x0000 000D

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[7:0]: Component ID field, bits [7:0]

0x0D: Common ID value

DBG CoreSight component identity register 1 (DBG_CIDR1)

Address offset: 0xFF4

Reset value: 0x0000 0090

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CLASS[3:0]PREAMBLE[11:8]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 CLASS[3:0]: Component ID field, bits [15:12] - component class

0x9: Debug component

Bits 3:0 PREAMBLE[11:8]: Component ID field, bits [11:8]

0x0: Common ID value

DBG CoreSight component identity register 2 (DBG_CIDR2)

Address offset: 0xFF8

Reset value: 0x0000 0005

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[19:12]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[19:12] : Component ID field, bits [23:16]

0x05: Common ID value

DBG CoreSight component identity register 3 (DBG_CIDR3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[27:20]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[27:20] : Component ID field, bits [31:24]

0xB1: Common ID value

Debug unit registers map

Table 624. Debug unit register map and reset values
OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000DBG_DIDRWRPS[3:0]BRPS[3:0]CTX_CMPS[3:0]VERSION[3:0]DEV/DIMPNSUHDIMPPCSRIMPSEIMPRes.Res.Res.Res.VARIANT[3:0]REVISION[3:0]
Reset value0011010100010101111100000101
0x018DBG_WFARADDRESS[31:0]
Reset value00000000000000000000000000000000
0x01CDBG_VCRNSFNSIRes.NSDNSPNSCNSURes.NSHFNSHINSHENSHDNSHPNSHCNSHURes.MFMIRes.MDMPMSRes.Res.SFSIRes.SDSPSSSUR
Reset value0000000000000000000000000

Table 624. Debug unit register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x024DBG_ECRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OSUCE
Reset value0
0x080DBG_DTRRXDATA[31:0]
Reset value00000000000000000000000000000000
0x084DBG_ITRINSTRUCTION[31:0]
Reset value00000000000000000000000000000000
0x088DBG_DSCRRes.RXFULLTXFULLRes.RXFULL_LTXFULL_LPIPEADVINSTRCOMPL_LRes.Res.EXTDCCMODE[1:0]ADADISCARDNSSPNIDDISSPIDDISMDBGENHDBGENITRENUDCCDISINTDISDBGACKFSUND_IADABORT_ISDABORT_IMOE[3:0]RESTARTEDHALTED
Reset value0000000000000000000000000000
0x08CDBG_DTRTXDATA[31:0]
Reset value00000000000000000000000000000000
0x090DBG_DRCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CBRRQCSPACSERRQHRQ
Reset value00000
0x094DBG_DEACRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CDRSTATRes.Res.Res.
Reset value0
0x0A0DBG_PCSRPCS[31:1]T
Reset value00000000000000000000000000000000
0x0A4DBG_CIDSRCONTEXTIDR[31:0]
Reset value00000000000000000000000000000000
0x0A8DBG_VIDSRNSHRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VMID[7:0]
Reset value0000000000
0x100DBG_BVR0ADDRESSCONTEXTID[31:0]
Reset value00000000000000000000000000000000
0x104DBG_BVR1ADDRESSCONTEXTID[31:0]
Reset value00000000000000000000000000000000
0x108DBG_BVR2ADDRESSCONTEXTID[31:0]
Reset value00000000000000000000000000000000
0x10CDBG_BVR3ADDRESSCONTEXTID[31:0]
Reset value00000000000000000000000000000000
0x110DBG_BVR4ADDRESSCONTEXTID[31:0]
Reset value00000000000000000000000000000000
0x114DBG_BVR5ADDRESSCONTEXTID[31:0]
Reset value00000000000000000000000000000000

Table 624. Debug unit register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x140DBG_BCR0Res.Res.Res.Res.Res.Res.Res.Res.BT[3:0]LBN[3:0]SSC
[1:0]
HMCRes.Res.Res.Res.BAS[3:0]Res.Res.PMC
[1:0]
E
Reset value00000000000000000
0x144DBG_BCR1Res.Res.Res.Res.Res.Res.Res.Res.BT[3:0]LBN[3:0]SSC
[1:0]
HMCRes.Res.Res.Res.BAS[3:0]Res.Res.PMC
[1:0]
E
Reset value00000000000000000
0x148DBG_BCR2Res.Res.Res.Res.Res.Res.Res.Res.BT[3:0]LBN[3:0]SSC
[1:0]
HMCRes.Res.Res.Res.BAS[3:0]Res.Res.PMC
[1:0]
E
Reset value00000000000000000
0x14CDBG_BCR3Res.Res.Res.Res.Res.Res.Res.Res.BT[3:0]LBN[3:0]SSC
[1:0]
HMCRes.Res.Res.Res.BAS[3:0]Res.Res.PMC
[1:0]
E
Reset value00000000000000000
0x150DBG_BCR4Res.Res.Res.Res.Res.Res.Res.Res.BT[3:0]LBN[3:0]SSC
[1:0]
HMCRes.Res.Res.Res.BAS[3:0]Res.Res.PMC
[1:0]
E
Reset value00000000000000000
0x154DBG_BCR5Res.Res.Res.Res.Res.Res.Res.Res.BT[3:0]LBN[3:0]SSC
[1:0]
HMCRes.Res.Res.Res.BAS[3:0]Res.Res.PMC
[1:0]
E
Reset value00000000000000000
0x180DBGWVR0ADDRESS[31:0]Res.Res.
Reset value0000000000000000000000000000000
0x184DBGWVR1ADDRESS[31:0]Res.Res.
Reset value0000000000000000000000000000000
0x188DBGWVR2ADDRESS[31:0]Res.Res.
Reset value0000000000000000000000000000000
0x18CDBGWVR3ADDRESS[31:0]Res.Res.
Reset value0000000000000000000000000000000
0x1C0DBG_WCR0Res.Res.Res.MASK[4:0]Res.Res.Res.Res.WTLBN[3:0]SSC
[1:0]
HMCRes.Res.Res.Res.BAS[3:0]LSC
[1:0]
PAC
[1:0]
E
Reset value000000000000000000000
0x1C4DBG_WCR1Res.Res.Res.MASK[4:0]Res.Res.Res.Res.WTLBN[3:0]SSC
[1:0]
HMCRes.Res.Res.Res.BAS[3:0]LSC
[1:0]
PAC
[1:0]
E
Reset value000000000000000000000
0x1C8DBG_WCR2Res.Res.Res.MASK[4:0]Res.Res.Res.Res.WTLBN[3:0]SSC
[1:0]
HMCRes.Res.Res.Res.BAS[3:0]LSC
[1:0]
PAC
[1:0]
E
Reset value000000000000000000000
0x1CCDBG_WCR3Res.Res.Res.MASK[4:0]Res.Res.Res.Res.WTLBN[3:0]SSC
[1:0]
HMCRes.Res.Res.Res.BAS[3:0]LSC
[1:0]
PAC
[1:0]
E
Reset value0000000000000000000000000000000
0x250DBG_BXVR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VMID[7::0]
Reset value000000000
0x254DBG_BXVR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VMID[7::0]
Reset value000000000
0x300DBG_OSLAROSLOCKACCESS[31:0]
Reset value00000000000000000000000000000000

Table 624. Debug unit register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x304DBG_OSLSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OSLM[1]NTTOSLKOSLM[0]
Reset value0000
0x310DBG_PRCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.COREPURQHCWRCWRRCORENPDRQ
Reset value00000000000000000000000000000000
0x314DBG_PRSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DLKOSLKHALTEDSRRSPDPU
Reset value000000
0xD00DBG_MIDRIMPLEMENTER[7:0]VARIANT
[3:0]
ARCH[3:0]PART[11:0]REVISION
[3:0]
Reset value01000001000011111100000001110101
0xD04DBG_CTRFORMAT
[2:0]
Res.CWG[3:0]ERG[3:0]DMINLINE
[3:0]
L1IP
[1:0]
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IMINLINE
[3:0]
Reset value100010001000100100011
0xD0CDBG_TLBTRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NU
Reset value0
0xD14DBG_MPIDRRes.URes.Res.Res.Res.Res.Res.MTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLUSTERID
[3:0]
Res.Res.Res.Res.Res.Res.CPUID
[1:0]
Reset value00000000
0xD18DBG_REVIDRID[31:0]
Reset value00000000000000000000000000000000
0xD20DBG_PFR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.STATE3[3:0]STATE2[3:0]STATE1[3:0]STATE0[3:0]
Reset value0001001000110001
0xD24DBG_PFR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GENTIMEXT
[3:0]
VIRTEXT
[3:0]
MPPM
[3:0]
SECEXT
[3:0]
PROGMOD
[3:0]
Reset value00010001000000010001
0xD28DBG_DFR0Res.Res.Res.Res.PMUEXT
[3:0]
MPDBGMOD[
3:0]
MMTMOD
[3:0]
CTMOD
[3:0]
MMDBGMOD
[3:0]
CSDBGMOD
[3:0]
CDBGMOD
[3:0]
Reset value0010000000010000010101010101
0xD30DBG_MMFR0INNERSH
[3:0]
FCSE
[3:0]
AUXREGS
[3:0]
TCM
[3:0]
SHLVLS
[3:0]
OUTERSH
[3:0]
PMSA
[3:0]
VMSA
[3:0]
Reset value00010000000100000001000100000101
0xD34DBG_MMFR1BCHPRED
[3:0]
L1CTSTCLN
[3:0]
L1UNIC[3:0]L1HVDC[3:0]L1UNICSW
[3:0]
L1HVDCSW
[3:0]
L1UNICVA
[3:0]
L1HVDCVA
[3:0]
Reset value01000000000000000000000000000000
0xD38DBG_MMFR2HWACFLG
[3:0]
WFISTALL
[3:0]
MEMBARR
[3:0]
UNIFTLB
[3:0]
HVDTLB
[3:0]
L1HRANGE
[3:0]
L1HBGFTCH
[3:0]
L1HFGFTCH[
3:0]
Reset value00000001001001000000000000000000
0xD3CDBG_MMFR3SUPERSECT[
3:0]
CMEMSIZE
[3:0]
COHWALK
[3:0]
Res.Res.Res.Res.MAINTBCST
[3:0]
BPMAINT
[3:0]
CMAINTSW
[3:0]
CMAINTMVA
[3:0]
Reset value0000001000010010001000010001
0xD40DBG_ISAR0Res.Res.Res.Res.DIVINST
[3:0]
DBGINST
[3:0]
COPROINST
[3:0]
CMPBRINST
[3:0]
BITFLDINST
[3:0]
BITCNTINST
[3:0]
SWAPINST
[3:0]
Reset value0010000100000001000100010000

Table 624. Debug unit register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xD44DBG_ISAR1JAZINST [3:0]INTWKINST [3:0]IMMINST [3:0]IFTHENINST [3:0]EXTNDINST [3:0]EXCARINST [3:0]EXCINST [3:0]ENDIANINST [3:0]
Reset value00010011000100010010000100010001
0xD48DBG_ISAR2REVSALINST [3:0]PSRMINST [3:0]MULTUINST [3:0]MULTSINST [3:0]MULTINST [3:0]MULACINST [3:0]MEMHTINST [3:0]LDSTRINST [3:0]
Reset value00100001001000110010000001000001
0xD4CDBG_ISAR3TEEXTINST [3:0]TRNOPINST [3:0]THCPYINST [3:0]TABBRINST [3:0]SYNPRIINST [3:0]SVCINST [3:0]SIMDINST [3:0]SATINST [3:0]
Reset value00010001000100010010000100110001
0xD50DBG_ISAR4SWPFRAC [3:0]PSRMINST [3:0]SPINSFRAC [3:0]BARRINST [3:0]SMCINST [3:0]WRBKINST [3:0]WSHFTINST [3:0]UNPRIVINST [3:0]
Reset value00010000000000010001000101000010
0xFA0DBG_CLAIMSETRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SET[7:0]
Reset value000000000
0xFA4DBG_CLAIMCLRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLR[7:0]
Reset value000000000
0xFB0DBG_LARKEY[31:0]
Reset valuexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
0xFB4DBG_LSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value011
0xFB8DBG_AUTHSTATRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SNISNESISENSNINSNENTTSLK
Reset value10101010
0xFC4DBG_DEVID1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PCSROFFSET [3:0]
Reset value0001
0xFC8DBG_DEVIDCIDMASK [3:0]AUXREGS [3:0]DOUBLELOCK [3:0]VIREXTNS [3:0]VECTORCATCH [3:0]BPADDRMASK [3:0]WPADDRMASK [3:0]PCSAMPLE [3:0]
Reset value00000001000100010000111100010011
0xFCCDBG_DEVTYPERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SUBTYPE [3:0]MAJORTYPE [3:0]
Reset value00010101
0xFD0DBG_PIDR4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SIZE [3:0]JEP106CON [3:0]
Reset value00000100
0xFD4DBG_PIDR5Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0xFD8DBG_PIDR6Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0xFDCDBG_PIDR7Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
ST logo
ST logo

Table 624. Debug unit register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFE0DBG_PIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PARTNUM [7:0]
Reset value00000111
0xFE4DBG_PIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.JEP106ID [3:0]PARTNUM [11:8]
Reset value10111100
0xFE8DBG_PIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVISION [3:0]JEDECJEP106ID [6:4]
Reset value01011011
0xFECDBG_PIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVAND[3:0]CMOD[3:0]
Reset value00000000
0xFF0DBG_CIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE
Reset value00001101
0xFF4DBG_CIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLASS[3:0]PREAMBLE
Reset value10010000
0xFF8DBG_CIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE
Reset value00000101
0xFFCDBG_CIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE
Reset value10110001

For the debug unit register descriptions, refer to the Cortex®-A7 MPCore Technical Reference Manual [6].

59.11.2 Cortex®-A7 performance monitoring unit (PMU)

The Performance Monitoring Unit contains four 32-bit event counters, and one processor clock cycle counter. The event counters can be configured to increment every time a specified event occurs. Examples of events that can be counted include:

When a counter wraps, it can generate an interrupt on PMUIRQ. This interrupt is connected to the CTI so can halt the processor(s), start or stop trace, etc.

Most of the events are connected to the ETM via the PMUEVENTS bus. This allows the resources of the ETM to be used to filter the events. The filtered events are returned to the PMU via the two EXTOUT outputs of the ETM.

For a list of PMU events and the corresponding line of the PMUEVENTS bus, refer to the Cortex®-A7 MPCore Technical Reference Manual [6].

ST logo
ST logo

Performance monitoring unit registers

The Performance Monitoring Unit registers are accessed by the debugger via the debug APB, at address 0xE00D 1000 to 0xE00D 1FFC. The same registers are accessible by software at addresses 0x500D 1000 to 0x500D 1FFC.

The CPU can also access the registers of its own PMU via CP15 registers.

For the PMU register descriptions, refer to the Cortex®-A7 MPCore Technical Reference Manual [6].

PMU event count x register (PM_XEVCNTRx)

Address offset: 0x000 + 0x4 *x, (x = 0 to 3)

Reset value: 0xXXXX XXXX

Read or write the value of the selected event counter, PMNn, where n = 0..3.

31302928272625242322212019181716
PMN[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PMN[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 PMN[31:0]: Event counter value.

PMU cycle count register (PM_CCNTR)

Address offset: 0x07C

Reset value: 0x0000 0000

Holds the value of the processor cycle counter.

31302928272625242322212019181716
CCNT[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
CCNT[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 CCNT[31:0]: Cycle count.

Cycle count. Depending on the value of PM_CR.D, this field increments either once every processor clock cycle or once every 64 processor clock cycles.

PMU event type select x register (PM_XEVTYPEx)

Address offset: 0x400 + 0x4 * x, (x = 0 to 3)

Reset value: 0x0XXX XXXX

Controls which events increment the corresponding event counter, and in which modes.

31302928272625242322212019181716
PUNSKNSUNSHRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.EVTCOUNT[7:0]
rwrwrwrwrwrwrwrw

Bit 31 P: Privileged execution filtering.

Bit 30 U: Unprivileged execution filtering.

Bit 29 NSK: Non-secure PL1 control bit.

Controls counting when executing in Non-secure state at PL1. The behavior depends on the combined values of the P and NSK bits:

Bit 28 NSU: Non-secure unprivileged control bit.

Controls counting in when executing in Non-secure at PL0. The behavior depends on the combined values of the U and NSU bits:

Bit 27 NSH: Non-secure PL2 enable.

Bits 26:8 Reserved, must be kept at reset value.

Bits 7:0 EVTCOUNT[7:0]: Event to count.

The event number of the event that is counted by the corresponding event counter, PMNn where n = 0..3

PMU event type select 31 register (PM_XEVTYPER31)

Address offset: 0x47C

Reset value: 0x0XXX XXXX

Controls in which modes the cycle counter increments.

31302928272625242322212019181716
PUNSKNSUNSHRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

Bits 26:0 Reserved, must be kept at reset value.

PMU count enable set register (PM_CNTENSET)

Address offset: 0xC00

Reset value: 0xXXXX XXXX

Enables the cycle counter and event counters, PMN0..3.

31302928272625242322212019181716
CRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.P3P2P1P0
rwrwrwrw

PMU count enable clear register (PM_CNTLCLR)

Address offset: 0xC20

Reset value: 0XXXXX XXXX

Disables the cycle counter and event counters, PMN0..3.

31302928272625242322212019181716
CRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.P3P2P1P0
rwrwrwrw

PMU interrupt enable set register (PM_INTENSET)

Address offset: 0xC40

Reset value: 0XXXXX XXXX

Enables generation of interrupt request by the cycle counter and event counters, PMN0..3.

31302928272625242322212019181716
CRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.P3P2P1P0
rwrwrwrw

Bit 31 C: Cycle counter interrupt request enable.

0: disabled (read), no effect (write)

1: enabled (read), enable interrupt request on cycle counter overflow (write)

Bits 30:4 Reserved, must be kept at reset value.

Bit 3 P3: Event counter 3 interrupt request enable.

0: disabled (read), no effect (write)

1: enabled (read), enable interrupt request on event counter overflow (write)

Bit 2 P2: Event counter 2 interrupt request enable.

0: disabled (read), no effect (write)

1: enabled (read), enable interrupt request on event counter overflow (write)

Bit 1 P1: Event counter 1 interrupt request enable.

0: disabled (read), no effect (write)

1: enabled (read), enable interrupt request on event counter overflow (write)

Bit 0 P0: Event counter 0 interrupt request enable.

0: disabled (read), no effect (write)

1: enabled (read), enable interrupt request on event counter overflow (write)

PMU interrupt enable clear register (PM_INTENCLR)

Address offset: 0xC60

Reset value: 0XXXXX XXXX

Disables generation of interrupt requests by the cycle counter and event counters, PMN0..3.

31302928272625242322212019181716
CRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.P3P2P1P0
rwrwrwrw

Bit 31 C: Cycle counter interrupt disable.

0: disabled (read), no effect (write)

1: enabled (read), disable interrupt request on cycle counter overflow (write)

Bits 30:4 Reserved, must be kept at reset value.

Bit 3 P3: Event counter 3 interrupt disable.

0: disabled (read), no effect (write)

1: enabled (read), disable interrupt request on event counter overflow (write)

PMU overflow flag status register (PM_OVSR)

Address offset: 0xC80

Reset value: 0XXXXX XXXX

Holds the status of the overflow bits for the cycle counter and event counters, PMN0..3.

31302928272625242322212019181716
CRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.P3P2P1P0
rwrwrwrw

PMU software increment register (PM_SWINC)

Address offset: 0xCA0

Reset value: 0XXXXX XXXX

Increments a counter that is configured to count the software increment event, event 0x00.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.P3P2P1P0
wwww

Bits 31:4 Reserved, must be kept at reset value.

Bit 3 P3: Event counter 3 increment.

0: No effect

1: Increment counter by 1

Bit 2 P2: Event counter 2 increment.

0: No effect

1: Increment counter by 1

Bit 1 P1: Event counter 1 increment.

0: No effect

1: Increment counter by 1

Bit 0 P0: Event counter 0 increment.

0: No effect

1: Increment counter by 1

PMU configuration register (PM_CFGR)

Address offset: 0xE00

Reset value: 0xXXX9 DF04

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.UENRes.Res.EX
rr
1514131211109876543210
CCDCCSIZE[5:0]N[7:0]
rrrrrrrrrrrrrrrr

Bits 31:20 Reserved, must be kept at reset value.

Bit 19 UEN: User-mode enable register.

1: User-mode enable register implemented

Bits 18:17 Reserved, must be kept at reset value.

Bit 16 EX: Export.

1: Export is supported

Bit 15 CCD: Cycle counter divider.

1: Cycle counter divider implemented

PMU control register (PM_CR)

Address offset: 0xE04

Reset value: 0x4107 2000

31302928272625242322212019181716
IMP[7:0]IDCODE[7:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
N[4:0]Res.Res.Res.Res.Res.DPXDCPE
rrrrrrwrwrwwwrw
ST logo
ST logo

Bit 2 C: Clock counter reset.

0: No effect

1: Reset cycle counter to 0

Bit 1 P: Event counter reset.

0: No effect

1: Reset all event counters to 0

Bit 0 E: Enable.

0: All counters, including the cycle counter, are disabled

1: All counters are enabled

PMU user enable register (PM_USERENR)

Address offset: 0xE08

Reset value: 0XXXXX XXXX

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EN
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 EN: User mode access enable.

0: User mode access is disabled

1: User mode access is enabled

PMU common event ID 0 register (PM_CEID0)

Address offset: 0xE20

Reset value: 0XXXXX XXXX

31302928272625242322212019181716
Res.Res.EVENT ID29EVENT ID28EVENT ID27EVENT ID26EVENT ID25EVENT ID24EVENT ID23EVENT ID22EVENT ID21EVENT ID20EVENT ID19EVENT ID18EVENT ID17EVENT ID16
rrrrrrrrrrrrrr
1514131211109876543210
EVENT ID15EVENT ID14EVENT ID13EVENT ID12EVENT ID11EVENT ID10EVENT ID9EVENT ID8EVENT ID7EVENT ID6EVENT ID5EVENT ID4EVENT ID3EVENT ID2EVENT ID1EVENT ID0
rrrrrrrrrrrrrrrr

Bits 31:30 Reserved, must be kept at reset value.

Bit 29 EVENTID29: Event ID 0x1D user mode access enable

Event number 0x1D corresponds to event:
“Bus cycle”.

0: Event implemented
1: Event not implemented

Bit 28 EVENTID28: Event ID 0x1C user mode access enable

Event number 0x1C corresponds to event:
“Instruction architecturally executed, condition code check pass, write to TTBR”.

0: Event implemented
1: Event not implemented

Bit 27 EVENTID27: Event ID 0x1B user mode access enable

Event number 0x1B corresponds to event:
“Instruction speculatively executed”.

0: Event implemented
1: Event not implemented

Bit 26 EVENTID26: Event ID 0x1A user mode access enable

Event number 0x1A corresponds to event:
“Local memory error”.

0: Event implemented
1: Event not implemented

Bit 25 EVENTID25: Event ID 0x19 user mode access enable

Event number 0x19 corresponds to event:
“Bus access”.

0: Event implemented
1: Event not implemented

Bit 24 EVENTID24: Event ID 0x18 user mode access enable

Event number 0x18 corresponds to event:
“Level 2 data cache write-back”.

0: Event implemented
1: Event not implemented

Bit 23 EVENTID23: Event ID 0x17 user mode access enable

Event number 0x17 corresponds to event:
“Level 2 data cache refill”.

0: Event implemented
1: Event not implemented

Bit 22 EVENTID22: Event ID 0x16 user mode access enable

Event number 0x16 corresponds to event:
“Level 2 data cache access”.

0: Event implemented
1: Event not implemented

Bit 21 EVENTID21: Event ID 0x15 user mode access enable

Event number 0x15 corresponds to event:
“Level 1 data cache write-back”.

0: Event implemented
1: Event not implemented

Bit 2 EVENTID2: Event ID 0x2 user mode access enable
Event number 0x2 corresponds to event:
“Level 1 instruction TLB refill”.
0: Event implemented
1: Event not implemented

Bit 1 EVENTID1: Event ID 0x1 user mode access enable
Event number 0x1 corresponds to event:
“Level 1 instruction cache refill”.
0: Event implemented
1: Event not implemented

Bit 0 EVENTID0: Event ID 0x0 user mode access enable
Event number 0x0 corresponds to event:
“Instruction architecturally executed, condition code check pass, software increment”.
0: Event implemented
1: Event not implemented

PMU lock access register (PM_LAR)

Address offset: 0xFB0

Reset value: 0XXXXX XXXX

31302928272625242322212019181716
KEY[31:16]
wwwwwwwwwwwwwwww
1514131211109876543210
KEY[15:0]
wwwwwwwwwwwwwwww

Bits 31:0 KEY[31:0]: PMU register write access
Enables write access to some PMU registers by processor cores
0xC5ACCE55: Enable write access
Other values: Disable write access

PMU lock status register (PM_LSR)

Address offset: 0xFB4

Reset value: 0x0000 0003

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NTTSLKSLI
rrr
ST logo
ST logo

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 NTT: Size of the PM_LAR register
0: 32-bit

Bit 1 SLK: Current status of lock
0: Write access is permitted
1: Write access is blocked. Only read access is permitted.

Bit 0 SLI: Existence of lock control mechanism
The bit indicates whether a lock control mechanism exists.
0: No lock control mechanism exists
1: Lock control mechanism is implemented

PMU authentication status register (PM_AUTHSTAT)

Address offset: 0xFB8

Reset value: 0XXXXX XXXX

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SNISNESISENSNINSNENSINSE
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bit 7 SNI: Secure non-invasive debug
1: Secure non-invasive debug features implemented

Bit 6 SNE: Secure non-invasive debug enabled
0: Non-invasive debug is not permitted in secure PL1 modes
1: Non-invasive debug is permitted in secure PL1 modes

Bit 5 SI: Secure invasive debug
0: Secure invasive debug features not implemented

Bit 4 SE: Secure invasive debug enabled
0: Invasive halting debug is not permitted in secure PL1 modes

Bit 3 NSNI: Non-secure non-invasive debug
1: Non-secure non-invasive debug features implemented

Bit 2 NSNE: Non-secure non-invasive debug enabled
0: Non-secure non-invasive debug is not permitted
1: Non-secure non-invasive debug is permitted

Bit 1 NSI: Non-secure invasive debug
0: Non-secure invasive debug features not implemented

Bit 0 NSE: Non-secure invasive debug enabled
0: Non-secure invasive debug is not permitted

PMU CoreSight device type register (PM_DEVTYPE)

Address offset: 0xFCC

Reset value: 0x0000 0016

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SUBTYPE[3:0]MAJORTYPE[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 SUBTYPE[3:0]: Device sub-type identifier

0x1: Processor

Bits 3:0 MAJORTYPE[3:0]: Device main type identifier

0x6: Performance monitors

PMU CoreSight peripheral identity register 4 (PM_PIDR4)

Address offset: 0xFD0

Reset value: 0x0000 0004

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SIZE[3:0]JEP106CON[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 SIZE[3:0]: Register file size

0x0: Register file occupies a single 4 Kbyte region

Bits 3:0 JEP106CON[3:0]: JEP106 continuation code 0x4: Arm ® JEDEC code

PMU CoreSight peripheral identity register 0 (PM_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 00A7

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PARTNUM[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PARTNUM[7:0]: Part number field, bits [7:0]
0xA7: PMU part number

PMU CoreSight peripheral identity register 1 (PM_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00B9

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.JEP106ID[3:0]PARTNUM[11:8]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 JEP106ID[3:0]: JEP106 identity code field, bits [3:0]
0xB: Arm® JEDEC code

Bits 3:0 PARTNUM[11:8]: Part number field, bits [11:8]
0x9: PMU part number

PMU CoreSight peripheral identity register 2 (PMU_PIDR2)

Address offset: 0xFE8

Reset value: 0x0000 005B

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.REVISION[3:0]JEDECJEP106ID[6:4]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 REVISION[3:0]: Component revision number
0x5: r0p5

Bit 3 JEDEC: JEDEC assigned value
1: Designer ID specified by JEDEC

Bits 2:0 JEP106ID[6:4]: JEP106 identity code field, bits [6:4]
0x3: Arm® JEDEC code

PMU CoreSight peripheral identity register 3 (PMU_PIDR3)

Address offset: 0xFEC

Reset value: 0x0000 0000

ST logo
ST logo
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.REVAND[3:0]CMOD[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 REVAND[3:0]: Metal fix version

0x0: No metal fix

Bits 3:0 CMOD[3:0]: Customer modified

0x0: No customer modifications

PMU CoreSight component identity register 0 (PMU_CIDR0)

Address offset: 0xFF0

Reset value: 0x0000 000D

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[7:0]: Component ID field, bits [7:0]

0x0D: Common ID value

PMU CoreSight component identity register 1 (PMU_CIDR1)

Address offset: 0xFF4

Reset value: 0x0000 0090

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CLASS[3:0]PREAMBLE[11:8]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 CLASS[3:0]: Component ID field, bits [15:12] - component class

0x9: PMU component

Bits 3:0 PREAMBLE[11:8]: Component ID field, bits [11:8]

0x0: Common ID value

PMU CoreSight component identity register 2 (PMU_CIDR2)

Address offset: 0xFF8

Reset value: 0x0000 0005

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[19:12]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[19:12]: Component ID field, bits [23:16] 0x05: Common ID value

PMU CoreSight component identity register 3 (PMU_CIDR3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[27:20]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[27:20]: Component ID field, bits [31:24] 0xB1: Common ID value

PMU registers map

Table 625. Performance monitoring unit registers map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000PM_XEVCNTR0PMN[31:0]
Reset value
0x004PM_XEVCNTR1PMN[31:0]
Reset value
0x008PM_XEVCNTR2PMN[31:0]
Reset value
0x00CPM_XEVCNTR3PMN[31:0]
Reset value
ST logo
ST logo

Table 625. Performance monitoring unit registers map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x07CPM_CCNTRCCNT[31:0]
Reset value00000000000000000000000000000000
0x400PM_XEVTYPER0PUNSKNSUNSHResResResResResResResResResResResResResResResResResResResEVTCOUNT[7:0]
Reset value00000
0x404PM_XEVTYPER1PUNSKNSUNSHResResResResResResResResResResResResResResResResResResResEVTCOUNT[7:0]
Reset value00000
0x408PM_XEVTYPER2PUNSKNSUNSHResResResResResResResResResResResResResResResResResResResEVTCOUNT[7:0]
Reset value00000
0x40CPM_XEVTYPER3PUNSKNSUNSHResResResResResResResResResResResResResResResResResResResEVTCOUNT[7:0]
Reset value00000
0x47CPM_XEVTYPER31PUNSKNSUNSHResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value00000
0xC00PM_CNTENSETCResResResResResResResResResResResResResResResResResResResResResResResResResResP3P2P1P0
Reset value
0xC20PM_CNTENCLRCResResResResResResResResResResResResResResResResResResResResResResResResResResP3P2P1P0
Reset value
0xC40PM_INTENSETCResResResResResResResResResResResResResResResResResResResResResResResResResResP3P2P1P0
Reset value
0xC60PM_INTENCLRCResResResResResResResResResResResResResResResResResResResResResResResResResResP3P2P1P0
Reset value
0xC80PM_OVSRCResResResResResResResResResResResResResResResResResResResResResResResResResResP3P2P1P0
Reset value
0xCA0PM_SWINCResResResResResResResResResResResResResResResResResResResResResResResResResResResResP3P2P1P0
Reset value
0xE00PM_CFGRResResResResResResResResResResResResUENResEXCCDCCSIZE[5:0]N[7:0]
Reset value101101111100000100
0xE04PM_CRIMP[7:0]IDCODE[7:0]N[4:0]ResResResResResDPXDCPE
Reset value0100000100000011111011000100
0xE08PM_USERENRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResEN
Reset value
0xE20PM_CEID0EVENTID[31:0]
Reset value00111111

Table 625. Performance monitoring unit registers map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFB0PM_LARKEY[31:0]
Reset valuexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
0xFB4PM_LSRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResNTTSLKSLI
Reset value011
0xFB8PM_AUTHSTATResResResResResResResResResResResResResResResResResResResResResResResResSNISNESISENSNINSNENSINSE
Reset value10001000
0xFCCPM_DEVTYPEResResResResResResResResResResResResResResResResResResResResResResResResResSUBTYPE
[3:0]
MAJORTYP
E[3:0]
Reset value00010110
0xFD0PM_PIDR4ResResResResResResResResResResResResResResResResResResResResResResResResResSIZE[3:0]JEP106CO
N[3:0]
Reset value00000100
0xFD4PM_PIDR5ResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value
0xFD8PM_PIDR6ResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value
0xFDCPM_PIDR7ResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value
0xFE0PM_PIDR0ResResResResResResResResResResResResResResResResResResResResResResResResResPARTNUM
[7:0]
Reset value00000111
0xFE4PM_PIDR1ResResResResResResResResResResResResResResResResResResResResResResResResJEP106ID
[3:0]
PARTNUM
[11:8]
Reset value10111100
0xFE8PM_PIDR2ResResResResResResResResResResResResResResResResResResResResResResResResREVISION
[3:0]
JEDECJEP106
ID[6:4]
Reset value01011011
0xFECPM_PIDR3ResResResResResResResResResResResResResResResResResResResResResResResResREVAND
[3:0]
CMOD[3:0]
Reset value00000000
0xFF0PM_CIDR0ResResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE
Reset value00001101
0xFF4PM_CIDR1ResResResResResResResResResResResResResResResResResResResResResResResResCLASS[3:0]PREAMBLE
Reset value10010000
0xFF8PM_CIDR2ResResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE
Reset value00000101
Table 625. Performance monitoring unit registers map and reset values (continued)
OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFFCPM_CIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE
Reset value10110001

59.11.3 Embedded trace macrocell (ETM)

The Cortex®-A7 ETM is a CoreSight™ component closely coupled to the CPU. The ETM generates trace packets that allow the execution of the Cortex®-A7 core to be traced. Both instruction execution and data accesses can be traced.

The ETM receives information from the CPU over the processor trace interface, including:

For more information, refer to the Arm® CoreSight™ ETM™-A7 technical reference manual [5].

Embedded trace macrocell registers

The ETM registers are accessed by the debugger via the debug APB, at address range 0xE00D C000 to 0xE00D CFFC. They are accessible by software at address range 0x500D C000 to 0x500D CFFC.

For the ETM register descriptions, refer to the Arm® CoreSight™ ETM™-A7 technical reference manual [5].

ETM control register (ETM_CR)

Address offset: 0x000

Reset value: 0x0000 0461

31302928272625242322212019181716
Res.VMIDT
RCEN
Res.TSENPROCSEL[2:0]Res.Res.Res.PORT
SIZE[3]
DATAO
NLY
FILTER
CPRT
SUPPD
ATA
PORTMODE[1:0
]
rwrwrwrwrwrrwrwrwrwrw
1514131211109876543210
CONTXTIDSIZE[
1:0]
PORT
MODE
[2]
CYCLE
ACC
ETMP
ORTSE
L
ETMPR
OG
DBGR
QCTL
BRANC
HOUTP
UT
Res.PORTSIZE[2:0]DATAACC[1:0]MONIT
ORCP
RT
ETMPD
N
rwrwrwrwrwrwrwrwrrrrwrwrwrw

Bit 9 DBGRQCTL: Debug request control.

0: DBGRQ output is not set on a trigger event.

1: DBGRQ output is set on a trigger event to force the processor into debug state

Bit 8 BRANCHOUTPUT: Branch output

0: Branch addresses not traced

1: All branch addresses are output, even if the branch was because of a direct branch instruction. Setting this bit enables reconstruction of the program flow without having access to the memory image of the code being executed

Bit 7 Reserved, must be kept at reset value.

Bits 21, 6:4 PORTSIZE[3:0]: Port size

Setting PORTSIZE[3:0] to any value selects 64-bit port size.

Bits 3:2 DATAACC[1:0]: Data access tracing mode.

0: No data tracing

1: Trace only the data portion of the access

2: Trace only the address portion of the access

3: Trace both the address and data of the access

Bit 1 MONITORCPRT: Monitor co-processor register transfers

0: CPRT's not traced

1: CPRT's traced. If FILTERCPRT = 1, CPRT's are only traced when ViewData is active.

Bit 0 ETMPDN: ETM power down

0: ETM tracing is enabled

1: ETM tracing is disabled, and ETM is in low power mode

ETM configuration code register (ETM_CCR)

Address offset: 0x004

Reset value: 0x8D29 4024

31302928272625242322212019181716
IDREGRes.Res.Res.SWAC
C
START
STOP
CONTXTIDCMP
[1:0]
FIFO
ULL
Res.EXTOUTPUTS
[1:0]
EXTINPUTS[2:0]SEQUE
NCER
rrrrrrrrrrrr
1514131211109876543210
COUNTERS[2:0]MMAPDECS[4:0]DATACOMPS[3:0]ADCOMPPRS[3:0]
rrrrrrrrrrrrrrrr

Bit 31 IDREG: ETM ID register present

1: ETMIDR register is present and defines the ETM architecture version in use

Bits 30:28 Reserved, must be kept at reset value.

Bit 27 SWACC: Co-processor and memory access

1: Memory-mapped access to registers is supported

Bit 26 STARTSTOP: Trace start/stop block present

1: Trace start/stop block is present

Bits 25:24 CONTXTIDCMP[1:0]: Number of context ID comparators

0x1: One context ID comparator implemented

ETM trigger register (ETM_TRIGGER)

Address offset: 0x008

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCN[2]
rw
1514131211109876543210
FCN[1:0]RESOURCEB[6:0]RESOURCEA[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
ST logo
ST logo

Bits 6:0 RESOURCEA[6:0]: First resource identifier

Bits [6:4] defines the resource type and bits [3:0] the index. The supported resource identifiers are listed below. Programming any other values may result in unpredictable behavior.

0x00: Single address comparator 1

...

0x0F: Single address comparator 16

0x10: Address range comparator 1

...

0x17: Address range comparator 8

0x18: Instrumentation resource 1

0x19: Instrumentation resource 2

0x1A: Instrumentation resource 3

0x1B: Instrumentation resource 4

0x20: Embedded-ICE watchpoint comparators 1 (from DWT)

...

0x27: Embedded-ICE watchpoint comparators 8 (from DWT)

0x40: Counter 1 at zero

0x41: Counter 2 at zero

0x42: Counter 3 at zero

0x43: Counter 4 at zero

0x50: Sequencer in states 1

0x51: Sequencer in states 2

0x52: Sequencer in states 3

0x58: Context ID comparator 1

0x5B: VMID comparator

0x5F: Trace start/stop resource

0x60: External inputs 1

0x61: External inputs 2

0x62: External inputs 3

0x63: External inputs 4

0x6D: Processor is in non-secure state

0x6E: Trace prohibited by processor

0x6F: Hard-wired input, always true

Others: Reserved

ETM status register (ETM_SR)

Address offset: 0x010

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGSTSTP
RESST
AT
PROG
BIT
UNTRC
DOVFL
rwrwrr
ST logo
ST logo

Bits 31:4 Reserved, must be kept at reset value.

Bit 3 TRIG: Trigger flag

Set when the trigger occurs, and prevents the trigger from being output until the ETM is programmed again.

Bit 2 STSTPRESSTAT: Trigger start/stop resource status

Holds the current status of the trace start/stop resource. If set to 1, it indicates that a trace on address has been matched, without a corresponding trace off address match.

Bit 1 PROGBIT: Programming bit value (read-only)

The current effective value of the ETM Programming bit, bit [10] of the ETM_CR. Set the programming bit to 1 and wait for this bit to go to 1 before programming the ETM.

This bit remains at 0 until the FIFO is empty, or if OS lock is set in the ETM_OSLSR register.

Bit 0 UNTRCDOVFL: Untraced overflow (read-only)

If set to 1, there is an overflow that has not yet been traced. This bit is cleared to 0 when trace is restarted, or when the ETM power-down bit (bit [0] of the ETM_CR register) is set to 1.

ETM configuration register (ETM_SCR)

Address offset: 0x014

Reset value: 0x0002 0D09

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NOFTCHCOMPRes.
r
1514131211109876543210
Res.SUPPROC[2:0]PM SUPPPS SUPPMAXPS [3]FF SUPPRes.Res.Res.Res.Res.MAXPS[2:0]
rrrrrrrrrr

Bits 31:18 Reserved, must be kept at reset value.

Bit 17 NOFTCHCOMP: No fetch comparisons

1: Fetch comparisons are not implemented

Bits 16:15 Reserved, must be kept at reset value.

Bits 14:12 SUPPROC[2:0]: Number of supported processors

0x0: One processor supported

Bit 11 PMSUPP: Port mode support

0: Current selected port mode is not supported

1: Current selected port mode is supported

Bit 10 PSSUPP: Port size support

0: Current selected port size is not supported

1: Current selected port size is supported

Bit 8 FFSUPP: FIFOFULL support
0: FIFOFULL is not supported

Bits 7:3 Reserved, must be kept at reset value.

Bits 9, 2, 1, 0 MAXPS[3:0]: Maximum ETM port size field
These bits indicate the maximum ETM port size supported.
0x4: Maximum port size = 4
Others: Reserved

ETM trace enable start/stop control register (ETM_SSCR)

Address offset: 0x018

Reset value: 0x0000 0000

31302928272625242322212019181716
STOPADDRCOMPSEL[16:1]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
STARTADDRCOMPSEL[16:1]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 STOPADDRCOMPSEL[16:1]: Stop address comparator select bits
When bit n is set to 1, it selects single address comparator n as stop address.

Bits 15:0 STARTADDRCOMPSEL[16:1]: Start address comparator select bits
When bit n is set to 1, it selects single address comparator n as start address.

ETM trace enable control 2 register (ETM_TECR2)

Address offset: 0x01C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
INCEXCCTLCOMPSEL[16:1]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 INCEXCCTLCOMPSEL[16:1]: Include/exclude control comparator select bits
When bit n is set to 1, it selects single address comparator n for include/exclude control.

ETM trace enable event register (ETM_TEEVR)

Address offset: 0x020

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCN[2]
rw
1514131211109876543210
FCN[1:0]RESOURCEB[6:0]RESOURCEA[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:17 Reserved, must be kept at reset value.

Bits 16:14 FCN[2:0]: Boolean function

If A is defined as the first resource match and B as the second match, an event is defined as a function of A and B.

Bits 13:7 RESOURCEB[6:0]: Second resource identifier

See RESOURCEA[6:0] field for bit description.

ST logo
ST logo

Bits 6:0 RESOURCEA[6:0]: First resource identifier

Bits [6:4] defines the resource type and bits [3:0] the index. The supported resource identifiers are listed below. Programming any other values may result in unpredictable behavior.

0x00: Single address comparator 1

...

0x0F: Single address comparator 16

0x10: Address range comparator 1

...

0x17: Address range comparator 8

0x18: Instrumentation resource 1

0x19: Instrumentation resource 2

0x1A: Instrumentation resource 3

0x1B: Instrumentation resource 4

0x20: Embedded-ICE watchpoint comparators 1 (from DWT)

...

0x27: Embedded-ICE watchpoint comparators 8 (from DWT)

0x40: Counter 1 at zero

0x41: Counter 2 at zero

0x42: Counter 3 at zero

0x43: Counter 4 at zero

0x50: Sequencer in states 1

0x51: Sequencer in states 2

0x52: Sequencer in states 3

0x58: Context ID comparator 1

0x5B: VMID comparator

0x5F: Trace start/stop resource

0x60: External inputs 1

0x61: External inputs 2

0x62: External inputs 3

0x63: External inputs 4

0x6D: Processor is in non-secure state

0x6E: Trace prohibited by processor

0x6F: Hard-wired input, always true

Others: Reserved

ETM trace enable control 1 register (ETM_TECR1)

Address offset: 0x024

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.TSSENINCEX
CCTL
INCEXCMMDSSEL[16:9]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
INCEXCMMDSSEL[8:1]INCEXCADCOMPSEL[8:1]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
ST logo
ST logo

Bits 31:26 Reserved, must be kept at reset value.

Bit 25 TSSEN: Trace start/stop trace enable control
0: Trace start/stop block does not control trace enable
1: Trace enable is controlled by the trace start/stop block

Bit 24 INCEXCCTL: Trace start/stop trace enable control
0: Include. The specified resources indicate the regions where tracing can occur. When outside this region tracing is prevented
1: Exclude. The resources specified in bits 23:0 and in the ETMTECR2 register indicate regions to be excluded from the trace. When outside an exclude region, tracing can occur.

Bits 23:8 INCEXCMMDSSEL[16:1]: Memory map decode select bits for include/exclude control.
Not used, there are no memory map decoders

Bits 7:0 INCEXCADCOMPSEL[8:1]: Address comparator select bits for include/exclude control.
When bit n is set to 1, it selects address range comparator n for include/exclude control

ETM FIFOFULL level register (ETM_FFLR)

Address offset: 0x028

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.FIFOFULLLVL[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 FIFOFULLLVL[7:0]: Threshold for FIFOFULL signal
The number of bytes left in the FIFO, below which the SuppressData signal is asserted. For example, setting this value to 15 causes data trace suppression, if enabled, when there are less than 15 free bytes in the FIFO.

ETM view data event register (ETM_VDEVR)

Address offset: 0x030

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCN[2]
rw
1514131211109876543210
FCN[1:0]RESOURCEB[6:0]RESOURCEA[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:17 Reserved, must be kept at reset value.

ST logo
ST logo

Bits 16:14 FCN[2:0]: Boolean function

If A is defined as the first resource match and B as the second match, an event is defined as a function of A and B.

0x0: A
0x1: NOT A
0x2: A AND B
0x3: NOT A AND B
0x4: NOT A AND NOT B
0x5: A OR B
0x6: NOT A OR B
0x7: NOT A OR NOT B

Bits 13:7 RESOURCEB[6:0]: Second resource identifier

See RESOURCEA[6:0] field for bit description.

Bits 6:0 RESOURCEA[6:0]: First resource identifier

Bits [6:4] defines the resource type and bits [3:0] the index. The supported resource identifiers are listed below. Programming any other values may result in unpredictable behavior.

0x00: Single address comparator 1
...
0x0F: Single address comparator 16
0x10: Address range comparator 1
...
0x17: Address range comparator 8
0x18: Instrumentation resource 1
0x19: Instrumentation resource 2
0x1A: Instrumentation resource 3
0x1B: Instrumentation resource 4
0x20: Embedded-ICE watchpoint comparators 1 (from DWT)
...
0x27: Embedded-ICE watchpoint comparators 8 (from DWT)
0x40: Counter 1 at zero
0x41: Counter 2 at zero
0x42: Counter 3 at zero
0x43: Counter 4 at zero
0x50: Sequencer in states 1
0x51: Sequencer in states 2
0x52: Sequencer in states 3
0x58: Context ID comparator 1
0x5B: VMID comparator
0x5F: Trace start/stop resource
0x60: External inputs 1
0x61: External inputs 2
0x62: External inputs 3
0x63: External inputs 4
0x6D: Processor is in non-secure state
0x6E: Trace prohibited by processor
0x6F: Hard-wired input, always true
Others: Reserved

ETM view data control 1 register (ETM_VDCR1)

Address offset: 0x034

Reset value: 0x0000 0000

31302928272625242322212019181716
VDEXSADCOMPSEL[16:1]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
VDINCSADCOMPSEL[16:1]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 VDEXSADCOMPSEL[16:1]: Single address comparator select bits for ViewData exclude control

When bit n is set to 1, it selects single address comparator n for exclude control.

Bits 15:0 VDINCSADCOMPSEL[16:1]: Single address comparator select bits for ViewData include control

When bit n is set to 1, it selects single address comparator n for include control.

ETM view data control 3 register (ETM_VDCR3)

Address offset: 0x03C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EXCO
NLY
rw
1514131211109876543210
VDEXCADCOMPSEL[8:1]VDINCADCOMPSEL[8:1]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:17 Reserved, must be kept at reset value.

Bit 16 EXCONLY: Exclude only

0: Mixed mode. ViewData operates in a mixed mode, and both include and exclude resources can be programmed

1: Exclude-only mode. ViewData is programmed only in an excluding mode. If none of the excluding resources match, tracing can occur

Bits 15:8 VDEXCADCOMPSEL[8:1]: Address range comparator select bits for ViewData exclude control

When bit n is set to 1, it selects address range comparator n for exclude control.

Bits 7:0 VDINCADCOMPSEL[8:1]: Address range comparator select bits for ViewData include control

When bit n is set to 1, it selects single address comparator n for include control.

ETM address comparator value x register (ETM_ACVRx)

Address offset: 0x040+0x4*(x-1), (x = 1 to 8)

Reset value: 0x0000 0000

31302928272625242322212019181716
ADDRESS[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
ADDRESS[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Bits 31:0 ADDRESS[31:0] : Address for comparison

ETM address comparator type x register (ETM_ACTRx)

Address offset: 0x080+0x4*(x-1), (x = 1 to 8)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
VMID
COMP
HYP
MODE
STMODE[3:0]CTXIDCOMP
[1:0]
EXACT
MATCH
DCOMP[1:0]COMPACCSIZE
[1:0]
ACCTYPE[2:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 Reserved, must be kept at reset value.

Bit 15 VMIDCOMP : Virtual machine ID (VMID) comparison enable

A value of 1 means that the address comparator matches only if the current VMID matches the value stored in the ETM_VMIDCVR register

Bit 14 HYPMODE : Hyp mode comparison enable

A value of 1 means that the address comparator also matches if the processor is operating in Hyp mode

Bits 13:10 STMODE[3:0] : State and mode comparison control

Bits [3,1] control non-secure state comparison. Bits [2,0] control secure state comparison.

X0X0: Match in all modes in secure state

X0X1: Do not match in any modes in secure state

X1X0: Match in all modes except User mode in secure state

X1X1: Match only in User mode in secure state

0X0X: Match in all modes in non-secure state

0X1X: Do not match in any modes in non-secure state

1X0X: Match in all modes except User mode in non-secure state

1X1X: Match only in User mode in non-secure state

Bits 9:8 CTXTIDCOMP[1:0]: Context ID comparator control.

Bit 7 EXACTMATCH: Exact match

Bits 6:5 DCOMP[1:0]: Data value comparison control.

Bits 4:3 COMPACCSIZE[1:0]: Comparison access size.

Bits 2:0 ACCTYPE[2:0]: Access type

ETM data comparator value x register (ETM_DCVRx)

Address offset: 0x0C0+0x4*(x-1), (x = 1 to 3)

Reset value: 0x0000 0000

31302928272625242322212019181716
DATA[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DATA[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 DATA[31:0]: Data value for comparison

ETM data comparator mask x register (ETM_DCMRx)

Address offset: 0x100+0x4*(x-1), (x = 1 to 3)

Reset value: 0x0000 0000

31302928272625242322212019181716
MASK[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
MASK[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Bits 31:0 MASK[31:0] : Data mask

When a data mask bit is set to 1, the corresponding bit in the ETM_DCVRn register is disregarded in the comparison and must be set to zero

ETM counter reload value x register (ETM_CNTRLDVRx)

Address offset: 0x140+0x4*(x-1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
INITIALCOUNT[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 INITIALCOUNT[15:0] : Initial count

Specifies the counter reload value.

ETM counter enable x register (ETM_CNTENRx)

Address offset: 0x150+0x4*(x-1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCN[2]
rw
1514131211109876543210
FCN[1:0]RESOURCEB[6:0]RESOURCEA[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:17 Reserved, must be kept at reset value.

Bits 16:14 FCN[2:0]: Boolean function

If A is defined as the first resource match and B as the second match, an event is defined as a function of A and B.

0x0: A

0x1: NOT A

0x2: A AND B

0x3: NOT A AND B

0x4: NOT A AND NOT B

0x5: A OR B

0x6: NOT A OR B

0x7: NOT A OR NOT B

Bits 13:7 RESOURCEB[6:0]: Second resource identifier

See RESOURCEA[6:0] field for bit description.

Bits 6:0 RESOURCEA[6:0]: First resource identifier

Bits [6:4] defines the resource type and bits [3:0] the index. The supported resource identifiers are listed below. Programming any other values may result in unpredictable behavior.

0x00: Single address comparator 1

...

0x0F: Single address comparator 16

0x10: Address range comparator 1

...

0x17: Address range comparator 8

0x18: Instrumentation resource 1

0x19: Instrumentation resource 2

0x1A: Instrumentation resource 3

0x1B: Instrumentation resource 4

0x20: Embedded-ICE watchpoint comparators 1 (from DWT)

...

0x27: Embedded-ICE watchpoint comparators 8 (from DWT)

0x40: Counter 1 at zero

0x41: Counter 2 at zero

0x42: Counter 3 at zero

0x43: Counter 4 at zero

0x50: Sequencer in states 1

0x51: Sequencer in states 2

0x52: Sequencer in states 3

0x58: Context ID comparator 1

0x5B: VMID comparator

0x5F: Trace start/stop resource

0x60: External inputs 1

0x61: External inputs 2

0x62: External inputs 3

0x63: External inputs 4

0x6D: Processor is in non-secure state

0x6E: Trace prohibited by processor

0x6F: Hard-wired input, always true

Others: Reserved

ETM counter reload event x register (ETM_CNTRLDEVRx)

Address offset: 0x160 + 0x4 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCN[2]
rw
1514131211109876543210
FCN[1:0]RESOURCEB[6:0]RESOURCEA[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:17 Reserved, must be kept at reset value.

Bits 16:14 FCN[2:0]: Boolean function

If A is defined as the first resource match and B as the second match, an event is defined as a function of A and B.

Bits 13:7 RESOURCEB[6:0]: Second resource identifier

See RESOURCEA[6:0] field for bit description.

ST logo
ST logo

Bits 6:0 RESOURCEA[6:0]: First resource identifier

Bits [6:4] defines the resource type and bits [3:0] the index. The supported resource identifiers are listed below. Programming any other values may result in unpredictable behavior.

ETM counter value x register (ETM_CNTVRx)

Address offset: 0x170 + 0x4 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
INITIALCOUNT[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
ST logo
ST logo

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 INITIALCOUNT[15:0]: Initial count
Specifies the counter reload value.

ETM sequencer state 1-2 transition event register (ETM_SQ12EVR)

Address offset: 0x180

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCN[2]
rw
1514131211109876543210
FCN[1:0]RESOURCEB[6:0]RESOURCEA[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:17 Reserved, must be kept at reset value.

Bits 16:14 FCN[2:0]: Boolean function
If A is defined as the first resource match and B as the second match, an event is defined as a function of A and B.

0x0: A
0x1: NOT A
0x2: A AND B
0x3: NOT A AND B
0x4: NOT A AND NOT B
0x5: A OR B
0x6: NOT A OR B
0x7: NOT A OR NOT B

Bits 13:7 RESOURCEB[6:0]: Second resource identifier
See RESOURCEA[6:0] field for bit description.

ST logo
ST logo

Bits 6:0 RESOURCEA[6:0]: First resource identifier

Bits [6:4] defines the resource type and bits [3:0] the index. The supported resource identifiers are listed below. Programming any other values may result in unpredictable behavior.

ETM sequencer state 2-1 transition event register (ETM_SQ21EVR)

Address offset: 0x184

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCN[2]
rw
1514131211109876543210
FCN[1:0]RESOURCEB[6:0]RESOURCEA[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:17 Reserved, must be kept at reset value.

ST logo
ST logo

Bits 16:14 FCN[2:0]: Boolean function

If A is defined as the first resource match and B as the second match, an event is defined as a function of A and B.

0x0: A
0x1: NOT A
0x2: A AND B
0x3: NOT A AND B
0x4: NOT A AND NOT B
0x5: A OR B
0x6: NOT A OR B
0x7: NOT A OR NOT B

Bits 13:7 RESOURCEB[6:0]: Second resource identifier

See RESOURCEA[6:0] field for bit description.

Bits 6:0 RESOURCEA[6:0]: First resource identifier

Bits [6:4] defines the resource type and bits [3:0] the index. The supported resource identifiers are listed below. Programming any other values may result in unpredictable behavior.

0x00: Single address comparator 1
...
0x0F: Single address comparator 16
0x10: Address range comparator 1
...
0x17: Address range comparator 8
0x18: Instrumentation resource 1
0x19: Instrumentation resource 2
0x1A: Instrumentation resource 3
0x1B: Instrumentation resource 4
0x20: Embedded-ICE watchpoint comparators 1 (from DWT)
...
0x27: Embedded-ICE watchpoint comparators 8 (from DWT)
0x40: Counter 1 at zero
0x41: Counter 2 at zero
0x42: Counter 3 at zero
0x43: Counter 4 at zero
0x50: Sequencer in states 1
0x51: Sequencer in states 2
0x52: Sequencer in states 3
0x58: Context ID comparator 1
0x5B: VMID comparator
0x5F: Trace start/stop resource
0x60: External inputs 1
0x61: External inputs 2
0x62: External inputs 3
0x63: External inputs 4
0x6D: Processor is in non-secure state
0x6E: Trace prohibited by processor
0x6F: Hard-wired input, always true
Others: Reserved

ETM sequencer state 2-3 transition event register (ETM_SQ23EVR)

Address offset: 0x188

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCN[2]
rw
1514131211109876543210
FCN[1:0]RESOURCEB[6:0]RESOURCEA[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:17 Reserved, must be kept at reset value.

Bits 16:14 FCN[2:0]: Boolean function

If A is defined as the first resource match and B as the second match, an event is defined as a function of A and B.

Bits 13:7 RESOURCEB[6:0]: Second resource identifier

See RESOURCEA[6:0] field for bit description.

ST logo
ST logo

Bits 6:0 RESOURCEA[6:0]: First resource identifier

Bits [6:4] defines the resource type and bits [3:0] the index. The supported resource identifiers are listed below. Programming any other values may result in unpredictable behavior.

0x00: Single address comparator 1

...

0x0F: Single address comparator 16

0x10: Address range comparator 1

...

0x17: Address range comparator 8

0x18: Instrumentation resource 1

0x19: Instrumentation resource 2

0x1A: Instrumentation resource 3

0x1B: Instrumentation resource 4

0x20: Embedded-ICE watchpoint comparators 1 (from DWT)

...

0x27: Embedded-ICE watchpoint comparators 8 (from DWT)

0x40: Counter 1 at zero

0x41: Counter 2 at zero

0x42: Counter 3 at zero

0x43: Counter 4 at zero

0x50: Sequencer in states 1

0x51: Sequencer in states 2

0x52: Sequencer in states 3

0x58: Context ID comparator 1

0x5B: VMID comparator

0x5F: Trace start/stop resource

0x60: External inputs 1

0x61: External inputs 2

0x62: External inputs 3

0x63: External inputs 4

0x6D: Processor is in non-secure state

0x6E: Trace prohibited by processor

0x6F: Hard-wired input, always true

Others: Reserved

ETM sequencer state 3-1 transition event register (ETM_SQ31EVR)

Address offset: 0x18C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCN[2]
rw
1514131211109876543210
FCN[1:0]RESOURCEB[6:0]RESOURCEA[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:17 Reserved, must be kept at reset value.

Bits 16:14 FCN[2:0]: Boolean function

If A is defined as the first resource match and B as the second match, an event is defined as a function of A and B.

0x0: A
0x1: NOT A
0x2: A AND B
0x3: NOT A AND B
0x4: NOT A AND NOT B
0x5: A OR B
0x6: NOT A OR B
0x7: NOT A OR NOT B

Bits 13:7 RESOURCEB[6:0]: Second resource identifier

See RESOURCEA[6:0] field for bit description.

Bits 6:0 RESOURCEA[6:0]: First resource identifier

Bits [6:4] defines the resource type and bits [3:0] the index. The supported resource identifiers are listed below. Programming any other values may result in unpredictable behavior.

0x00: Single address comparator 1
...
0x0F: Single address comparator 16
0x10: Address range comparator 1
...
0x17: Address range comparator 8
0x18: Instrumentation resource 1
0x19: Instrumentation resource 2
0x1A: Instrumentation resource 3
0x1B: Instrumentation resource 4
0x20: Embedded-ICE watchpoint comparators 1 (from DWT)
...
0x27: Embedded-ICE watchpoint comparators 8 (from DWT)
0x40: Counter 1 at zero
0x41: Counter 2 at zero
0x42: Counter 3 at zero
0x43: Counter 4 at zero
0x50: Sequencer in states 1
0x51: Sequencer in states 2
0x52: Sequencer in states 3
0x58: Context ID comparator 1
0x5B: VMID comparator
0x5F: Trace start/stop resource
0x60: External inputs 1
0x61: External inputs 2
0x62: External inputs 3
0x63: External inputs 4
0x6D: Processor is in non-secure state
0x6E: Trace prohibited by processor
0x6F: Hard-wired input, always true
Others: Reserved

ETM sequencer state 3-2 transition event register (ETM_SQ32EVR)

Address offset: 0x190

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCN[2]
rw
1514131211109876543210
FCN[1:0]RESOURCEB[6:0]RESOURCEA[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:17 Reserved, must be kept at reset value.

Bits 16:14 FCN[2:0]: Boolean function

If A is defined as the first resource match and B as the second match, an event is defined as a function of A and B.

Bits 13:7 RESOURCEB[6:0]: Second resource identifier

See RESOURCEA[6:0] field for bit description.

ST logo
ST logo

Bits 6:0 RESOURCEA[6:0]: First resource identifier

Bits [6:4] defines the resource type and bits [3:0] the index. The supported resource identifiers are listed below. Programming any other values may result in unpredictable behavior.

ETM sequencer state 1-3 transition event register (ETM_SQ13EVR)

Address offset: 0x194

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCN[2]
rw
1514131211109876543210
FCN[1:0]RESOURCEB[6:0]RESOURCEA[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:17 Reserved, must be kept at reset value.

ST logo
ST logo

Bits 16:14 FCN[2:0]: Boolean function

If A is defined as the first resource match and B as the second match, an event is defined as a function of A and B.

0x0: A
0x1: NOT A
0x2: A AND B
0x3: NOT A AND B
0x4: NOT A AND NOT B
0x5: A OR B
0x6: NOT A OR B
0x7: NOT A OR NOT B

Bits 13:7 RESOURCEB[6:0]: Second resource identifier

See RESOURCEA[6:0] field for bit description.

Bits 6:0 RESOURCEA[6:0]: First resource identifier

Bits [6:4] defines the resource type and bits [3:0] the index. The supported resource identifiers are listed below. Programming any other values may result in unpredictable behavior.

0x00: Single address comparator 1
...
0x0F: Single address comparator 16
0x10: Address range comparator 1
...
0x17: Address range comparator 8
0x18: Instrumentation resource 1
0x19: Instrumentation resource 2
0x1A: Instrumentation resource 3
0x1B: Instrumentation resource 4
0x20: Embedded-ICE watchpoint comparators 1 (from DWT)
...
0x27: Embedded-ICE watchpoint comparators 8 (from DWT)
0x40: Counter 1 at zero
0x41: Counter 2 at zero
0x42: Counter 3 at zero
0x43: Counter 4 at zero
0x50: Sequencer in states 1
0x51: Sequencer in states 2
0x52: Sequencer in states 3
0x58: Context ID comparator 1
0x5B: VMID comparator
0x5F: Trace start/stop resource
0x60: External inputs 1
0x61: External inputs 2
0x62: External inputs 3
0x63: External inputs 4
0x6D: Processor is in non-secure state
0x6E: Trace prohibited by processor
0x6F: Hard-wired input, always true
Others: Reserved

ETM current sequencer state register (ETM_SQR)

Address offset: 0x19C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SQSTATE[1:0]
rr

Bits 31:2 Reserved, must be kept at reset value.

ETM external output event x register (ETM_EXTOUTEVRx)

Address offset: 0x1A0 + 0x4 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCN[2]
rw
1514131211109876543210
FCN[1:0]RESOURCEB[6:0]RESOURCEA[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:17 Reserved, must be kept at reset value.

Bits 13:7 RESOURCEB[6:0]: Second resource identifier

See RESOURCEA[6:0] field for bit description.

ST logo
ST logo

Bits 6:0 RESOURCEA[6:0]: First resource identifier

Bits [6:4] defines the resource type and bits [3:0] the index. The supported resource identifiers are listed below. Programming any other values may result in unpredictable behavior.

0x00: Single address comparator 1

...

0x0F: Single address comparator 16

0x10: Address range comparator 1

...

0x17: Address range comparator 8

0x18: Instrumentation resource 1

0x19: Instrumentation resource 2

0x1A: Instrumentation resource 3

0x1B: Instrumentation resource 4

0x20: Embedded-ICE watchpoint comparators 1 (from DWT)

...

0x27: Embedded-ICE watchpoint comparators 8 (from DWT)

0x40: Counter 1 at zero

0x41: Counter 2 at zero

0x42: Counter 3 at zero

0x43: Counter 4 at zero

0x50: Sequencer in states 1

0x51: Sequencer in states 2

0x52: Sequencer in states 3

0x58: Context ID comparator 1

0x5B: VMID comparator

0x5F: Trace start/stop resource

0x60: External inputs 1

0x61: External inputs 2

0x62: External inputs 3

0x63: External inputs 4

0x6D: Processor is in non-secure state

0x6E: Trace prohibited by processor

0x6F: Hard-wired input, always true

Others: Reserved

ETM context ID comparator value 1 register (ETM_CIDCVR1)

Address offset: 0x1B0

Reset value: 0x0000 0000

31302928272625242322212019181716
CONTEXTID[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
CONTEXTID[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 CONTEXTID[31:0]: Context ID value for comparison

ETM context ID comparator mask register (ETM_CIDCMR)

Address offset: 0x1BC

Reset value: 0x0000 0000

31302928272625242322212019181716
MASK[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
MASK[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Bits 31:0 MASK[31:0] : Context ID mask

When a mask bit is set to 1, the corresponding bit in the ETM_CIDCVR1 register is disregarded in the comparison and must be set to zero

ETM synchronization frequency register (ETM_SYNCFR)

Address offset: 0x1E0

Reset value: 0x0000 0400

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.FREQUENCY[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:12 Reserved, must be kept at reset value.

Bits 11:0 FREQUENCY[11:0] : Synchronisation frequency.

This value is the time in bytes between synchronization points in the trace, used by ETM (the tools can start decompressing only at synchronization points).

ETM ID register (ETM_IDR)

Address offset: 0x1E4

Reset value: 0x410C F250

31302928272625242322212019181716
IMPLEMENTER[7:0]Res.Res.Res.BPENCSECEX
T
T32Res.LDPC1
ST
rrrrrrrrrrrr
1514131211109876543210
PROCFAM[3:0]ARCHVMAJ[3:0]ARCHVMIN[3:0]REVISION[3:0]
rrrrrrrrrrrrrrrr

ETM configuration code extension register (ETM_CCER)

Address offset: 0x1E8

Reset value: 0x3440 08F2

31302928272625242322212019181716
Res.Res.TSSIZETSENCCNTFNCVIRTEXTRes.Res.Res.TIMSTMPETMEIBCRTSSUWPEMBICEWPS[3:0]
rrrrrrrrrrr
1514131211109876543210
INSTRES[2:0]DACOMPSARRPMUEVENTREGS[7:0]EEISELS[2:0]
rrrrrrrrrrrrrrrr

Bits 25:23 Reserved, must be kept at reset value.

Bit 22 TIMSTMP: Timestamping
1: Timestamping supported

Bit 21 ETMEIBCR: EmbeddedICE behavior control implemented
0: Not implemented

Bit 20 TSSUWP: Trace start/stop uses Embedded ICE watchpoint inputs
0: No embeddedICE watchpoint inputs supported

Bits 19:16 EMBICEWPS[3:0]: Embedded ICE watchpoint inputs
0: No embeddedICE watchpoint inputs supported

Bits 15:13 INSTRES[2:0]: Instrumentation resources
0: None

Bit 12 DACOMPS: Data address comparison support
0: No data address comparisons are supported

Bit 11 ARR: Readable registers
1: All registers are readable

Bits 10:3 PMUEVENTREGS[7:0]: Number of PMU event registers available
0x1E: 30 registers

Bits 2:0 EEISELS[2:0]: Number of extended external input selectors
0x2: 2 selectors

ETM extended external input selection register (ETM_EXTINSELR)

Address offset: 0x1EC

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
EXTINSEL2[7:0]EXTINSEL1[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:8 EXTINSEL2[7:0]: Extended external input selector 2

Bits 7:0 EXTINSEL1[7:0]: Extended external input selector 1

ETM timestamp event register (ETM_TSEVR)

Address offset: 0x1F8

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCN[2]
rw
1514131211109876543210
FCN[1:0]RESOURCEB[6:0]RESOURCEA[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:17 Reserved, must be kept at reset value.

Bits 16:14 FCN[2:0]: Boolean function

If A is defined as the first resource match and B as the second match, an event is defined as a function of A and B.

Bits 13:7 RESOURCEB[6:0]: Second resource identifier
See RESOURCEA[6:0] field for bit description.

ST logo
ST logo

Bits 6:0 RESOURCEA[6:0]: First resource identifier

Bits [6:4] defines the resource type and bits [3:0] the index. The supported resource identifiers are listed below. Programming any other values may result in unpredictable behavior.

0x00: Single address comparator 1

...

0x0F: Single address comparator 16

0x10: Address range comparator 1

...

0x17: Address range comparator 8

0x18: Instrumentation resource 1

0x19: Instrumentation resource 2

0x1A: Instrumentation resource 3

0x1B: Instrumentation resource 4

0x20: Embedded-ICE watchpoint comparators 1 (from DWT)

...

0x27: Embedded-ICE watchpoint comparators 8 (from DWT)

0x40: Counter 1 at zero

0x41: Counter 2 at zero

0x42: Counter 3 at zero

0x43: Counter 4 at zero

0x50: Sequencer in states 1

0x51: Sequencer in states 2

0x52: Sequencer in states 3

0x58: Context ID comparator 1

0x5B: VMID comparator

0x5F: Trace start/stop resource

0x60: External inputs 1

0x61: External inputs 2

0x62: External inputs 3

0x63: External inputs 4

0x6D: Processor is in non-secure state

0x6E: Trace prohibited by processor

0x6F: Hard-wired input, always true

Others: Reserved

ETM auxiliary control register (ETM_AUXCR)

Address offset: 0x1FC

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DPKTT
RCDIS
TSPKT
GENS
UP
DNFOV
FL
rrr
ST logo
ST logo

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 DPKTTRCDIS: Disable tracing of data packets
0: Not disabled
1: Disabled

Bit 1 TSPKTGENSUP: Suppress generation of timestamp packets
0: Do not suppress
1: Suppress generation of timestamp packets as the result of executing an ISB instruction

Bit 0 DNFOVFL: Do not force FIFO overflow
0: Force FIFO overflow if a periodic synchronisation has not been output for two full synchronisation periods
1: Do not force FIFO overflow

ETM trace ID register (ETM_TRACEIDR)

Address offset: 0x200

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.TRACEID[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 TRACEID[7:0]: Trace ID to output onto the trace bus
This should be programmed with a unique value to differentiate it from other trace sources in the system.

ETM ID 2 register (ETM_IDR2)

Address offset: 0x208

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SWP TORFE TO
rr
ST logo
ST logo

Bits 31:2 Reserved, must be kept at reset value.

ETM VMID comparator value register (ETM_VMIDCVR)

Address offset: 0x240

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.VMID[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 VMID[7:0]: Virtual machine ID for comparison with current one

ETM OS lock access register (ETM_OSLAR)

Address offset: 0x300

Reset value: 0x0000 0000

31302928272625242322212019181716
KEYVALUE[31:16]
wwwwwwwwwwwwwwww
1514131211109876543210
KEYVALUE[15:0]
wwwwwwwwwwwwwwww
ST logo
ST logo

ETM OS lock status register (ETM_OSLSR)

Address offset: 0x304

Reset value: 0x0000 000A

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ETM
OSLAR
NTTDBGRLKEDDBGRLKSUP
rrrr

Bits 31:4 Reserved, must be kept at reset value.

Bit 3 ETMOSLAR : ETM OS lock access register implemented

1: Implemented

Bit 2 NTT : 32-bit access required

0: 32-bit accesses are required to operate the ETM_OSLAR

Bit 1 DBGRLKED : Registers locked

0: ETM registers are not locked

1: ETM registers are locked. Any access will return a slave-generated error response

Bit 0 DBGRLKSUP : ETM power down support

0: Full support

ETM OS save & restore register (ETM_OSSRR)

Address offset: 0x308

Reset value: 0x0000 0000

31302928272625242322212019181716
VALUE[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
VALUE[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Bits 31:0 VALUE[31:0] : OS save/restore register value

On first read after locking the registers, this register contains the number of additional accesses required to save or restore the ETM registers.

Subsequent reads during an OS save return the contents of each register for storing in memory. During an OS restore, subsequent writes load the written value to each register in turn.

ETM device power-down control register (ETM_PDCR)

Address offset: 0x310

Reset value: 0x0000 0008

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRCP
WREN
Res.Res.Res.
rw

Bits 31:4 Reserved, must be kept at reset value.

Bit 3 TRCPWREN : Trace power enable

1: Power to the domain containing the trace registers must be provided.

Bits 2:0 Reserved, must be kept at reset value.

ETM device power-down status register (ETM_PDSR)

Address offset: 0x314

Reset value: 0x0000 0023

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OSLOC
KST
Res.Res.Res.STKYR
EGST
ETMP
WRD
rrr

Bits 31:6 Reserved, must be kept at reset value.

Bit 5 OSLOCKST : OS lock status

The value of this bit is the same as the value of bit[1] of the ETM_OSLSR.

Bits 4:2 Reserved, must be kept at reset value.

Bit 1 STKYREGST : Sticky register state

0: Indicates this register has been read after a reset

1: Indicates this register has never been read after a reset

Bit 0 ETMPWRD : ETM powered

1: ETM powered; trace registers can be accessed.

ETM claim tag set register (ETM_CLAIMSET)

Address offset: 0xFA0

Reset value: 0x0000 00FF

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CLAIMSET[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 CLAIMSET[7:0]: Set claim tag bits

Write:

00000000: No effect

xxxxxxx1: Set bit 0

xxxxxx1x: Set bit 1

xxxxx1xx: Set bit 2

...etc.

Read:

0xFF: Indicates there are eight bits in claim tag

ETM claim tag clear register (ETM_CLAIMCLR)

Address offset: 0xFA4

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CLAIMCLR[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 CLAIMCLR[7:0]: Reset claim tag bits

Write:

00000000: No effect

xxxxxxx1: Clear bit 0

xxxxxx1x: Clear bit 1

xxxxx1xx: Clear bit 2

xxxx1xxx: Clear bit 3

...etc.

Read: Returns current value of claim tag

ETM lock access register (ETM_LAR)

Address offset: 0xFB0

Reset value: 0XXXXX XXXX

31302928272625242322212019181716
ACCESS_W[31:16]
wwwwwwwwwwwwwwww
1514131211109876543210
ACCESS_W[15:0]
wwwwwwwwwwwwwwww

Bits 31:0 ACCESS_W[31:0]: ETM register write access

Enables write access to some ETM registers by processor cores (debuggers do not need to unlock the component)

0xC5ACCE55: Enable write access

Other values: Disable write access

ETM lock status register (ETM_LSR)

Address offset: 0xFB4

Reset value: 0x0000 0003

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LOCK TYPELOCK GRANTLOCK EXIST
rrr

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 LOCKTYPE: Size of the ETM_LAR register

0: 32-bit

Bit 1 LOCKGRANT: Current status of lock

This bit always returns zero when read by an external debugger.

0: Write access is permitted

1: Write access is blocked. Only read access is permitted.

Bit 0 LOCKEXIST: Existence of lock control mechanism

The bit indicates whether a lock control mechanism exists. It always returns zero when read by an external debugger.

0: No lock control mechanism exists

1: Lock control mechanism is implemented

ETM authentication status register (ETM_AUTHSTAT)

Address offset: 0xFB8

Reset value: 0x0000 000A

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SNID[1:0]SID[1:0]NSNID[1:0]NSID[1:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:6 SNID[1:0]: Security level for secure non-invasive debug

0x: Unused

10: Secure non-invasive debug disabled

11: Secure non-invasive debug enabled

Bits 5:4 SID[1:0]: Security level for secure invasive debug

00: Not implemented

Bits 3:2 NSNID[1:0]: Security level for non-secure non-invasive debug

0x: Unused

10: Non-secure non-invasive debug disabled

11: Non-secure non-invasive debug enabled

Bits 1:0 NSID[1:0]: Security level for non-secure invasive debug

00: Not implemented

ETM Coresight device configuration register (ETM_DEVID)

Address offset: 0xFC8

Reset value: 0x0000 0000

31302928272625242322212019181716
DEVICEID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
DEVICEID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 DEVICEID[31:0]: Device configuration

0x0: No configuration information

ETM CoreSight device type register (ETM_DEVTYPE)

Address offset: 0xFCC

Reset value: 0x0000 0013

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SUBTYPE[3:0]MAJORTYPE[3:0]
rrrrrrrr
ST logo
ST logo

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 SUBTYPE[3:0]: Device sub-type identifier
0x1: Processor trace

Bits 3:0 MAJORTYPE[3:0]: Device main type identifier
0x3: Trace source

ETM CoreSight peripheral identity register 4 (ETM_PIDR4)

Address offset: 0xFD0

Reset value: 0x0000 0004

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SIZE[3:0]JEP106CON[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 SIZE[3:0]: Register file size
0x0: Register file occupies a single 4 Kbyte region

Bits 3:0 JEP106CON[3:0]: JEP106 continuation code
0x4: Arm® JEDEC code

ETM CoreSight peripheral identity register 0 (ETM_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 0056

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PARTNUM[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PARTNUM[7:0]: Part number field, bits [7:0]
0x56: ETM part number

ETM CoreSight peripheral identity register 1 (ETM_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00B9

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.JEP106ID[3:0]PARTNUM[11:8]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 JEP106ID[3:0]: JEP106 identity code field, bits [3:0]

0xB: Arm® JEDEC code

Bits 3:0 PARTNUM[11:8]: Part number field, bits [11:8]

0x9: ETM part number

ETM CoreSight peripheral identity register 2 (ETM_PIDR2)

Address offset: 0xFE8

Reset value: 0x0000 000B

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.REVISION[3:0]JEDECJEP106ID[6:4]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 REVISION[3:0]: Component revision number

0x0: r0p0

Bit 3 JEDEC: JEDEC assigned value

1: Designer ID specified by JEDEC

Bits 2:0 JEP106ID[6:4]: JEP106 identity code field, bits [6:4]

0x3: Arm® JEDEC code

ETM CoreSight peripheral identity register 3 (ETM_PIDR3)

Address offset: 0xFEC

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.REVAND[3:0]CMOD[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 REVAND[3:0]: Metal fix version
0x0: No metal fix

Bits 3:0 CMOD[3:0]: Customer modified
0x0: No customer modifications

ETM CoreSight component identity register 0 (ETM_CIDR0)

Address offset: 0xFF0

Reset value: 0x0000 000D

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[7:0]: Component ID field, bits [7:0]
0x0D: Common ID value

ETM CoreSight component identity register 1 (ETM_CIDR1)

Address offset: 0xFF4

Reset value: 0x0000 0090

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CLASS[3:0]PREAMBLE[11:8]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 CLASS[3:0]: Component ID field, bits [15:12] - component class
0x9: Trace generator component

Bits 3:0 PREAMBLE[11:8]: Component ID field, bits [11:8]
0x0: Common ID value

ETM CoreSight component identity register 2 (ETM_CIDR2)

Address offset: 0xFF8

Reset value: 0x0000 0005

ST logo
ST logo
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[19:12]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[19:12]: Component ID field, bits [23:16]
0x05: Common ID value

ETM CoreSight component identity register 3 (ETM_CIDR3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[27:20]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PREAMBLE[27:20]: Component ID field, bits [31:24]
0xB1: Common ID value

ST logo
ST logo

Embedded trace macrocell registers map

Table 626. ETM registers map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000ETM_CRRes.VMIDTRCENRes.TSEN.Res.PROCSEL[2:0]Res.Res.PORTSIZE[3]DATAONLYFILTERCPRTSUPPDATA.PORTMODE[1:0]CONTXTIDSIZE[1:0]PORTMODE[2]CYCLEACCETMPORTSEL.ETMPROGDBGRQCTLBRANCHOUTPUTRes.PORTSIZE[2:0]DATAACC[1:0]MONITORCPRTETMPDN
Reset value00000000000000000000010001100001
0x004ETM_CCRIDREGRes.Res.Res.SWACCSTARTSTOPCONTXTIDCMP[1:0]FIFOFULLRes.EXTOUTPUTS[1:0]EXTINPUTS[2:0]SEQUENCERCOUNTERS[2:0]MMAPDECS[4:0]Res.DATACOMPS[3:0]ADCOMPPRS[3:0]
Reset value10001101001010010100000000100100
0x008ETM_TRIGGERRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCN[2:0]RESOURCEB[6:0]RESOURCEA[6:0]
Reset value
0x010ETM_SRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGSTSTPRESSTATPROGBITUNTRCDOVFL
Reset value
0x014ETM_SCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NOFTCHCMPRes.Res.SUPPROC[2:0]PMSUPPPSSUPPMAXPS[3]FFSUPPRes.Res.Res.Res.Res.MAXPS[2:0]
Reset value00000000000000100000110000001100
0x018ETM_SSCRSTOPADDRCOMPSEL[16:1]STARTADDRCOMPSEL[16:1]
Reset value
0x01CETM_TECR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.INCEXCCTLCOMPSEL[16:1]
Reset value0000000000000000
0x020ETM_TEEVRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCN[2:0]RESOURCEB[6:0]RESOURCEA[6:0]
Reset value00000000000000000
0x024ETM_TECR1Res.Res.Res.Res.Res.Res.TSSENINCEXCCTLINCEXCMMDSEL[16:1]INCEXCADCOMPSEL[8:1]
Reset value00000000000000000000000000
0x02CETM_FFLRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FIFOFULLLVL[7:0]
Reset value00000000
ST logo
ST logo

Table 626. ETM registers map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x030ETM_VDEVRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCN[2:0]
Reset value00000000000000000
0x034ETM_VDCR1VDEXCSADCOMPSEL[16:1]VDINCSADCOMPSEL[16:1]
Reset value00000000000000000000000000000000
0x03CETM_VDCR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EXCONLYVDEXCADCOMPSEL[8:1]VDINCADCOMPSEL[8:1]
Reset value00000000000000000
0x040ETM_ACVR1ADDRESS[31:0]
Reset value00000000000000000000000000000000
0x044ETM_ACVR2ADDRESS[31:0]
Reset value00000000000000000000000000000000
0x048ETM_ACVR3ADDRESS[31:0]
Reset value00000000000000000000000000000000
0x04CETM_ACVR4ADDRESS[31:0]
Reset value00000000000000000000000000000000
0x050ETM_ACVR5ADDRESS[31:0]
Reset value00000000000000000000000000000000
0x054ETM_ACVR6ADDRESS[31:0]
Reset value00000000000000000000000000000000
0x058ETM_ACVR7ADDRESS[31:0]
Reset value00000000000000000000000000000000
0x05CETM_ACVR8ADDRESS[31:0]
Reset value00000000000000000000000000000000
0x080ETM_ACTR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VMIDCOMPHYPMODESTMODE[3:0]CTXIDCOMP[1:0]EXACTMATCHDCOMP[1:0]COMPACCSIZE[1:0]ACCTYPE
Reset value0000000000000000
0x084ETM_ACTR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VMIDCOMPHYPMODESTMODE[3:0]CTXIDCOMP[1:0]EXACTMATCHDCOMP[1:0]COMPACCSIZE[1:0]ACCTYPE[2:0]
Reset value0000000000000000

Table 626. ETM registers map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x088ETM_ACTR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VMIDCOMPHYPMODESTMODE[3:0]CTXTIDCOMP[1:0]EXACTMATCHDCOMP[1:0]COMPACCSIZE[1:0]ACCTYPE
Reset value0000000000000000
0x08CETM_ACTR4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VMIDCOMPHYPMODESTMODE[3:0]CTXTIDCOMP[1:0]EXACTMATCHDCOMP[1:0]COMPACCSIZE[1:0]ACCTYPE
Reset value0000000000000000
0x090ETM_ACTR5Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VMIDCOMPHYPMODESTMODE[3:0]CTXTIDCOMP[1:0]EXACTMATCHDCOMP[1:0]COMPACCSIZE[1:0]ACCTYPE
Reset value0000000000000000
0x094ETM_ACTR6Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VMIDCOMPHYPMODESTMODE[3:0]CTXTIDCOMP[1:0]EXACTMATCHDCOMP[1:0]COMPACCSIZE[1:0]ACCTYPE
Reset value0000000000000000
0x098ETM_ACTR7Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VMIDCOMPHYPMODESTMODE[3:0]CTXTIDCOMP[1:0]EXACTMATCHDCOMP[1:0]COMPACCSIZE[1:0]ACCTYPE
Reset value
0x09CETM_ACTR8Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VMIDCOMPHYPMODESTMODE[3:0]CTXTIDCOMP[1:0]EXACTMATCHDCOMP[1:0]COMPACCSIZE[1:0]ACCTYPE
Reset value0000000000000000
0x0C0ETM_DCVR1DATA[31:0]
Reset value00000000000000000000000000000000
0x0C8ETM_DCVR3DATA[31:0]
Reset value00000000000000000000000000000000
ST logo
ST logo

Table 626. ETM registers map and reset values (continued)

RM0475column_2column_3column_4column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15column_16column_17column_18column_19column_20column_21column_22column_23column_24column_25column_26column_27column_28column_29column_30column_31column_32column_33column_34column_35column_36column_37column_38column_39column_40column_41column_42column_43column_44column_45column_46column_47Table 626. ETM registers map and reset values (continued)Debug support (DBG)
Offset Register name313 02 92 82 72 62 52 42 32 2212 019181716 15 1413 12 1 1 10 98 7 6 5 4 3 2 1 0
ETM_DCMR1MASK[31:0]
Reset value0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ETM_DCMR3MASK[31:0]
Reset value0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ETM_CNTRLDVR1Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.R e s.INITIALCOUNT[15:0]
ETM_CNTRLDVR2Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.R e s.INITIALCOUNT[15:0]
ETM_CNTENR1Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.FCN [2:0]RESOURCEB[6:0]RESOURCEA[6:0]
Reset value1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0FCN
ETM_CNTENR2Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.[2:0]RESOURCEB[6:0]RESOURCEA[6:0]
Reset value1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ETM_Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.FCN
CNTRLDEVR1[2:0]RESOURCEB[6:0]RESOURCEA[6:0]
Reset value0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ETM_Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.FCN
CNTRLDEVR2[2:0]RESOURCEB[6:0]RESOURCEA[6:0]
Reset value0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ETM_CNTVR1Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.R e s.COUNT[15:0]
ETM_CNTVR2Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.R e s.COUNT[15:0]
ETM_SQ12EVRRe s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.FCN [2:0]RESOURCEB[6:0]RESOURCEA[6:0]
Reset value0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 FCN
ETM_SQ21EVRRe s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.[2:0]RESOURCEB[6:0]RESOURCEA[6:0]
Reset value0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 FCN
ETM_SQ23EVRRe s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.[2:0]RESOURCEB[6:0]RESOURCEA[6:0]
Reset value0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 FCN
ETM_SQ31EVRRe s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.[2:0]RESOURCEB[6:0]RESOURCEA[6:0]
Reset value0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 FCN
ETM_SQ32EVRRe s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.[2:0]RESOURCEB[6:0]RESOURCEA[6:0]
Reset value0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 FCN
ETM_SQ13EVRRe s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.Re s.[2:0]RESOURCEB[6:0]RESOURCEA[6:0]
Reset value0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Table 626. ETM registers map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x19CETM_SQRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SQSTATE[1:0]
Reset value00
0x1A0ETM_
EXTOUTEVR1
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCN
[2:0]
RESOURCEB[6:0]RESOURCEA[6:0]
Reset value00000000000000000
0x1A4ETM_
EXTOUTEVR2
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCN
[2:0]
RESOURCEB[6:0]RESOURCEA[6:0]
Reset value00000000000000000
0x1B0ETM_CIDCVR1CONTEXTID[31:0]
Reset value00000000000000000000000000000000
0x1BCETM_CIDCMRMASK[31:0]
Reset value00000000000000000000000000000000
0x1E0ETM_SYNCFRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SYNCFREQ[11:0]
Reset value010000000000
0x1E4ETM_IDRIMPLEMENTER[7:0]Res.Res.Res.BPENCSECEXTT32Res.LDPC1STPROCFAM
[3:0]
ARCHVMAJ
[3:0]
ARCHVMIN
[3:0]
REVISION
[3:0]
Reset value0100000101101111001001010000
0x1E8ETM_CCERRes.Res.TSSIZETSENCCNTFNCVIRTEXTRes.Res.Res.TIMSTMPETMEIBCRTSSBLKEMBICEWP
S[3:0]
INSTRE
S[2:0]
DACOMPSARRPMUEVENTREGS[7:0]EEISELS
Reset value110110000000000100011110010
0x1ECETM_EXTINSELRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EXTINSEL2[7:0]EXTINSEL1[7:0]
Reset value0000000000000000
0x1F8ETM_TSEVRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCN
[2:0]
RESOURCEB[6:0]RESOURCEA[6:0]
Reset value00000000000000000
0x1FCETM_AUXCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DPKTTRCDISTSPKTGENSUDNFOVFL
Reset value000
0x200ETM_TRACEIDRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRACEID[7:0]
Reset value00000000
0x208ETM_IDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SWPTORFETO
Reset value00
ST logo
ST logo

Table 626. ETM registers map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x240ETM_VMIDCVRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VMID[7:0]
Reset value00000000
0x300ETM_OSLARKEYVALUE[31:0]
Reset value
0x304ETM_OSLSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ETMOSLARNTTDBGRLKEDDBGRLKSU
Reset value1010
0x308ETM_OSSRRVALUE[31:0]
Reset value00000000000000000000000000000000
0x310ETM_PDCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRCPWRENRes.Res.Res.
Reset value1
0x314ETM_PDSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OSLOCKSTRes.Res.STKYREGST
Reset value111
0xFA0ETM_CLAIMSETRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SET
Reset value11111111
0xFA4ETM_CLAIMCLRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLR
Reset value00000000
0xFB0ETM_LARKEY
Reset valuexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
0xFB4ETM_LSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NTTSLKSLI
Reset value
0xFB8ETM_AUTHSTATRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SNIDSIDNSNIDNSID
Reset value00001100
0xFC8ETM_DEVIDDEVICEID
Reset value00000000000000000000000000000000
0xFD0ETM_DEVTYPERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SUB TYPEMAJOR TYPE
Reset value00010011
0xFD0ETM_PIDR4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SIZEJEP106 CON
Reset value00000100

Table 626. ETM registers map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFD4ETM_PIDR5Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0xFD8ETM_PIDR6Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0xFDCETM_PIDR7Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0xFE0ETM_PIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PARTNUM [7:0]
Reset value01010110
0xFE4ETM_PIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.JEP106ID [3:0]PARTNUM [11:8]
Reset value10111001
0xFE8ETM_PIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVISION]JEDECJEP106ID [6:4]
Reset value00001011
0xFECETM_PIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVANDCMOD
Reset value00000000
0xFF0ETM_CIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE
Reset value00001101
0xFF4ETM_CIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLASSPREAMBLE
Reset value10010000
0xFF8ETM_CIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE
Reset value00000101
0xFFCETM_CIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE
Reset value10110001

59.11.4 Cross trigger interface (CTI)

See Section 59.10.3.

59.12 References

  1. 1. IHI 0031C (ID080813) - Arm® Debug Interface Architecture Specification ADIv5.0 to ADIv5.2, Issue C, 8th Aug 2013.
  2. 2. DDI 0480F (ID100313) - Arm® CoreSight™ SoC-400 r3p1 Technical Reference Manual, Issue F, 26th Sept 2013.
  3. 3. DDI 0461B (ID010111) - Arm® CoreSight™ Trace Memory Controller r0p1 Technical Reference Manual, Issue B, 10 Dec 2010
  4. 4. DDI 0314H - Arm® CoreSight™ Components Technical Reference Manual, Issue H, 10 July, 2009
  5. 5. DDI 0468A (ID101712) - Arm® CoreSight™ ETM™-A7 r0p0, Issue A, 12 Sept 2011
  6. 6. DDI 0464F (ID051113) - Arm® Cortex®-A7 MPCore™ r0p5 Technical Reference Manual, Issue F, 11 April 2013
  7. 7. IHI 0022E (ID022613)- Arm AMBA AXI and ACE Protocol Specification, Issue E, 22 February 2013
  8. 8. Arm IHI 0033A - Arm AMBA 3 AHB-Lite Protocol v1.0, Issue A, 6 June 2006
  9. 9. Arm IHI 0024C (ID041610) - Arm AMBA Protocol v2.0, Issue C, 13 April 2010