63. Debug support (DBG)

63.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 63.10 to Section 63.12. More information can be found in the Arm® documents referenced in Section 63.13.

63.2 Debug use cases

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

code execution monitoring, fault analysis and identification, autonomous exception handling, and others.

The stored trace can also be uploaded to a host machine using one of the MPU’s many communications interfaces (such as USB, USART, SPI, I2C, Ethernet, CAN, and others). This is especially useful if the trace port is not accessible, for example remote monitoring and failure analysis of a deployed product.

63.3 DBG block diagram

Figure 764. Block diagram of debug support infrastructure

Block diagram of debug support infrastructure showing Debug subsystem, Cortex-M4 core, Cortex-A7MP core, and Trace subsystem with various interconnections and components like SWJ-DP, APB-D, CTM, and TPIU.
Block diagram of debug support infrastructure showing Debug subsystem, Cortex-M4 core, Cortex-A7MP core, and Trace subsystem with various interconnections and components like SWJ-DP, APB-D, CTM, and TPIU.

1. Arm® CoreSight™ component

63.4 DBG pins

Table 521. 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 522. 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 523. Serial Wire Trace port pins

Pin nameTypeDescriptionPin assignment
TRACESWOOTrace asynchronous data outRefer to datasheet(1)
  1. 1. TRACESWO is multiplexed with JTDO. This means that single wire trace is only available when using the serial wire debug interface, not when using JTAG

Table 524. Trigger pins

Pin nameTypeDescriptionPin assignment
DBTRGIIExternal trigger input to CTIRefer to datasheet
DBTRGOOExternal trigger output from CTI
DBTRGIOI/OExternal Trigger Bi-directional(1)
  1. 1. DBTRGIO can be configured as an input or an output by the TRGOEN bit in the DBGMCU_CR register. If configured as an input, it is connected to DBTRGI. If an output, it is connected to DBTRGO. This is because DBTRGI and DBTRGO are not available on certain packages.

63.5 DBG power and clocking

63.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.

63.5.2 DBG clocks

Figure 765. Debug clock domains

A detailed block diagram of the debug clock domains showing clock domains: Debug subsystem (SWTCLK), ck_sys_dbg, mcu_ss_ck, and mpu_ss_ck. Key blocks include SWJ-DP1, DAPBUS, AXI-AP1, APB-AP1, AHB-AP1, Cortex-M4 core, DWT1, FPB1, ITM1, ETM1, CTI1, Cortex-A7 core, Replicator, ROM tables, STM1, Funnel1, ETF1, TPIU1, SWO1, System bus matrix, APB mux, APB-D bus, and Timestamp generator1.
A detailed block diagram of the debug clock domains showing clock domains: Debug subsystem (SWTCLK), ck_sys_dbg, mcu_ss_ck, and mpu_ss_ck. Key blocks include SWJ-DP1, DAPBUS, AXI-AP1, APB-AP1, AHB-AP1, Cortex-M4 core, DWT1, FPB1, ITM1, ETM1, CTI1, Cortex-A7 core, Replicator, ROM tables, STM1, Funnel1, ETF1, TPIU1, SWO1, System bus matrix, APB mux, APB-D bus, and Timestamp generator1.

MS49680V2

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. The same clock is used to drive the serial wire output (SWO).

Note: TRACECLK is enabled by setting TRACECKEN to 1 in RCC debug configuration register (RCC_DBGCFGR). It should be activated whenever tracing is required, even if neither the TPIU nor the SWO are active (that is when using the embedded trace FIFO as a software buffer). This is to avoid filling up the SWO FIFO which would then block the trace output from the ITM in the Cortex®-M4.

The debug and trace components included in the processors (ETM, CTI etc) are clocked with the corresponding core clock (mpu_ss_ck for the Cortex®-A7 subsystem, mcu_ss for the Cortex®-M4 subsystem).

63.5.3 Debug and low-power modes

The STM32MP151 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 63.10.8.

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 to either processor core. 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.

63.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.

63.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.

63.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 525 lists which signals are connected to which debug and trace components.

Table 525. Authentication signal connectivity

deviceendbgenspidennidenspnidendbgswenable
Debug APB-APX----X
Cortex®-M4 AHB-APX(1)X----
System bus AXI-AP-XX---
Cortex®-M4 DWT/FPB/SCS/ITM-X----
Cortex®-M4 ETM---X--
Cortex®-M4 CTI-X-X--
Cortex®-A7 MPCore Debug unit-XXXXX
Cortex®-A7 MPCore ETM-X-X--
Table 525. Authentication signal connectivity (continued)
deviceendbgenspidennidenspnidendbgswenable
Cortex®-A7 MPCore CTI-X-X--
STM-XXXX-

1. deviceen connects to DAPEN in the Cortex®-M4

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 526. 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 526. Authentication signal initial states
Device state (set by OTP fuse)Authentication signal default stateDescription
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.

63.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 16-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 16-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 527.

Table 527. CLTAPC registers
NameAddressDescriptionRead/Write
SECSTS001Status of the BSEC_DENABLE 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).

63.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 five I/O pins are configured by hardware in debug alternative function mode. The SWJ-DP incorporates pull-up resistors on JTDI, 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.

63.8.1 JTAG debug port

Figure 766. JTAG TAP state machine

Figure 766: JTAG TAP state machine diagram. The diagram shows the state transitions of a JTAG TAP state machine. It starts at the 'Test-Logic-Reset' state (JTMS=1) and transitions to 'Run-Test/Idle' (JTMS=0). From 'Run-Test/Idle', it can transition to 'Select-DR-Scan' (JTMS=1) or 'Select-IR-Scan' (JTMS=1). The 'Select-DR-Scan' state leads to 'Capture-DR' (JTMS=1), which then transitions to 'Shift-DR' (JTMS=0). 'Shift-DR' has a self-loop for JTMS=1 and transitions to 'Exit1-DR' (JTMS=0). 'Exit1-DR' leads to 'Pause-DR' (JTMS=1), which has a self-loop for JTMS=0 and transitions to 'Exit2-DR' (JTMS=0). 'Exit2-DR' leads to 'Update-DR' (JTMS=1), which has a self-loop for JTMS=0 and transitions back to 'Run-Test/Idle' (JTMS=0). The 'Select-IR-Scan' state follows a similar path through 'Capture-IR', 'Shift-IR', 'Exit1-IR', 'Pause-IR', 'Exit2-IR', and 'Update-IR'. A long feedback loop returns from 'Update-DR' and 'Update-IR' to 'Test-Logic-Reset'.
graph TD
    TLR[Test-Logic-Reset] -- JTMS=0 --> RTI[Run-Test/Idle]
    RTI -- JTMS=1 --> SDR[Select-DR-Scan]
    RTI -- JTMS=1 --> SIR[Select-IR-Scan]
    SDR -- JTMS=1 --> CDR[Capture-DR]
    CDR -- JTMS=0 --> SDR
    CDR -- JTMS=1 --> SDR[Shift-DR]
    SDR -- JTMS=1 --> SDR
    SDR -- JTMS=0 --> E1DR[Exit1-DR]
    E1DR -- JTMS=1 --> PDR[Pause-DR]
    PDR -- JTMS=0 --> PDR
    PDR -- JTMS=1 --> E2DR[Exit2-DR]
    E2DR -- JTMS=0 --> UDR[Update-DR]
    UDR -- JTMS=1 --> UDR
    UDR -- JTMS=0 --> RTI
    SIR -- JTMS=1 --> CIR[Capture-IR]
    CIR -- JTMS=0 --> SIR
    CIR -- JTMS=1 --> SIR[Shift-IR]
    SIR -- JTMS=1 --> SIR
    SIR -- JTMS=0 --> E1IR[Exit1-IR]
    E1IR -- JTMS=1 --> PIR[Pause-IR]
    PIR -- JTMS=0 --> PIR
    PIR -- JTMS=1 --> E2IR[Exit2-IR]
    E2IR -- JTMS=0 --> UIR[Update-IR]
    UIR -- JTMS=1 --> UIR
    UIR -- JTMS=0 --> RTI
    UDR -- JTMS=1 --> TLR
    UIR -- JTMS=1 --> TLR
  

MSv46858V1

Figure 766: JTAG TAP state machine diagram. The diagram shows the state transitions of a JTAG TAP state machine. It starts at the 'Test-Logic-Reset' state (JTMS=1) and transitions to 'Run-Test/Idle' (JTMS=0). From 'Run-Test/Idle', it can transition to 'Select-DR-Scan' (JTMS=1) or 'Select-IR-Scan' (JTMS=1). The 'Select-DR-Scan' state leads to 'Capture-DR' (JTMS=1), which then transitions to 'Shift-DR' (JTMS=0). 'Shift-DR' has a self-loop for JTMS=1 and transitions to 'Exit1-DR' (JTMS=0). 'Exit1-DR' leads to 'Pause-DR' (JTMS=1), which has a self-loop for JTMS=0 and transitions to 'Exit2-DR' (JTMS=0). 'Exit2-DR' leads to 'Update-DR' (JTMS=1), which has a self-loop for JTMS=0 and transitions back to 'Run-Test/Idle' (JTMS=0). The 'Select-IR-Scan' state follows a similar path through 'Capture-IR', 'Shift-IR', 'Exit1-IR', 'Pause-IR', 'Exit2-IR', and 'Update-IR'. A long feedback loop returns from 'Update-DR' and 'Update-IR' to 'Test-Logic-Reset'.

The JTAG-DP implements a TAP state machine (TAPSM) based on IEEE Std 1149.1-1990. The state machine is shown in Figure 766. 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 528.

Table 528. JTAG-DP data registers

IR instructionDR registerScan chain lengthDescription
0000 to 0111(BYPASS)1Not implemented: BYPASS selected
1000ABORT35ABORT register
– Bits 31:1 = Reserved
– Bit 0 = APABORT: write 1 to generate a AP abort.
1001(BYPASS)1Reserved: BYPASS selected

Table 528. 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].

63.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 529. Packet request

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

Table 530. ACK response

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

Table 531. Data transfer

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

Figure 767 shows examples of successful write and read transfers.

Figure 767. 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 is a continuous clock signal. The SWDIO line shows the data transfer sequence.

Write transfer:

Read transfer:

Legend:

Bit values:

MSv3977V1

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

63.8.3 Debug port registers

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

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 532).
  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 529). The write data is sent in the data phase.

Table 532. 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.CDBGPWRUPACKCDBGPWRUPREQCDBGRSTACKCDBGRSTREQRes.Res.TRNCNT[11:4]
rrwrrwrwrwrwrwrwrwrwrw
1514131211109876543210
TRNCNT[3:0]MASKLANE[3:0]WDATAERRREADOKSTICKYERRSTICKYCMPTRNMODE[1:0]STICKYORUNORUNDETECT
rwrwrwrwrwrwrwrwrrrwrwrwrwrwrw
ST logo
ST logo

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: 0x2500 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

0x2: Rev. B

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

0x5000: STM32MP15x

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)

0x2: AP2 - Cortex®-M4 debug access port (AHB-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

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.

63.9 Access ports

Figure 768. Debug and access port connections

Block diagram showing the connections between JTAG/SWD, SW-DP, DAPBUS, and three access ports (AP0, AP1, AP2) to various system buses.
graph LR
    JTAG[ JTAG / SWD ] <--> SWDP[ SW-DP ]
    SWDP <--> DAPBUS[ DAPBUS ]
    DAPBUS --> AP0[ AP0 (AXI-AP) ]
    DAPBUS --> AP1[ AP1 (APB-AP) ]
    DAPBUS --> AP2[ AP2 (AHB-AP) ]
    AP0 <--> AXI[ System interconnect (AXI) ]
    AP1 <--> APB[ System debug bus (APB-D) ]
    AP2 <--> Cortex[ Cortex®-M4 ]
  

The diagram illustrates the debug and access port connections. A JTAG / SWD interface connects to an SW-DP block. The SW-DP connects to a DAPBUS, which then branches out to three access ports: AP0 (AXI-AP), AP1 (APB-AP), and AP2 (AHB-AP). AP0 connects to the System interconnect (AXI), AP1 connects to the System debug bus (APB-D), and AP2 connects to the Cortex®-M4 processor. The reference code MSv49691V1 is located in the bottom right corner of the diagram area.

Block diagram showing the connections between JTAG/SWD, SW-DP, DAPBUS, and three access ports (AP0, AP1, AP2) to various system buses.

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

All three 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 536.

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 529). 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 (Addrlnc 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].

63.9.1 Authentication

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

Table 533. 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 534. 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.
Table 535. AP2 (Cortex®-M4) authentication behavior
deviceen(1)dbgenOthersBehavior
0XXAll transfers blocked. Any attempt to perform a transfer will result in an error.
X0All transfers blocked. Any attempt to perform a transfer will result in an error.
11Transfers enabled.

1. deviceen is connected to the DAPEN input of the Cortex®-M4

63.9.2 MEM-AP registers

Table 536. 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)
AP2 control/status word register (AP2_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)

Table 536. MEM-AP registers (continued)

AddressAPBANKSELA(3:2)NameDescription
0xF80xF2BASEDebug Base Address register (RO) - Refer to section AP x base address register (APx_BASE) (x = 0 to 2)
0xFC0xF3IDRIdentification register (RO) - Refer to section AP x identification register (APx_IDR) (x = 0 to 2)

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 [10., 11., 12.].

AP0 (AXI-AP):

31302928272625242322212019181716
Res.PROT[2:0]CACHE[3:0]SPSTATUSRes.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

This field sets the AxPROT[2:0] protection attributes of the bus transaction.

XX0: unprivileged

XX1: privileged

X0X: secure

X1X: non-secure

0XX: data

1XX: instruction

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

This field sets the AxCACHE[3:0] cache attributes of the bus transaction.

XXX0: non-bufferable

XXX1: bufferable

XX0X: non-modifiable (non-cacheable)

XX1X: modifiable (cacheable)

X0XX: no read-allocate

X1XX: read-allocate

0XXX: no write-allocate

1XXX: write-allocate

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 [10., 11., 12.].

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 enable

Defines 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)

AP2 control/status word register (AP2_CSW)

Address offset: 0x0

Reset value: 0x2300 0040

For a detailed description of each field, refer to the Arm AMBA protocol specifications for the corresponding bus [10., 11., 12.].

AP2 (AHB-AP):

31302928272625242322212019181716
Res.Res.MASTERTYPERes.Res.Res.HPROT1Res.Res.Res.Res.Res.Res.Res.Res.Res.
rrw
1514131211109876543210
Res.Res.Res.Res.MODE[3:0]TRINPROGDBGSTATUSADDRINC[1:0]Res.SIZE[2:0]
rwrwrwrwrrrwrwrrr
ST logo
ST logo

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

Defines whether address is automatically incremented after a transaction. If increment is enabled, the address wraps at 4- Kbyte address boundaries.

Auto address incrementing and packed data transfers are not performed on access to banked data registers 0x10-0x1C. The value of these bits is ignored in these cases.

0x0: no auto-increment

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

0x2: packed transfers enabled. A 32-bit AP access gives rise to 1 x 32-bit, 2 x 16-bit, or 4 x 8-bit bus transactions corresponding to the programmed transaction size. The data is packed or unpacked accordingly.

0x3: reserved

Bit 3 Reserved, must be kept at reset value.

Bits 2:0 SIZE[2:0]: size of next memory access transaction

0x0: byte (8 bits)

0x1: halfword (16 bits)

0x2: word (32 bits)

Others: reserved

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
BARTRAN[1:0]TRGBARTRAN
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrw
ST logo
ST logo

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

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

Bit 2 LD: large data

Indicates support for data items larger than 32 bits (AXI-AP only).

1: 64-bit data supported

Bit 1 Reserved, must be kept at reset value.

Bit 0 LA: long address

Indicates support for greater than 32-bit addressing.

0: 32 or fewer bits of address

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

Address offset: 0xF8

Reset value: Block 0: 0x0000 0002

Reset value: Block 1: 0xE008 0003

Reset value: Block 2: 0xE00F F003

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

Bits 31:12 BASEADDR[31:12]: base address

Corresponds to bits 31 to 12 of the ROM table address for the AP. The 12 LSBs are zeros since the ROM table must be aligned on a 4-Kbyte boundary.

AP0 (AXI system bus): N/A (no ROM table)

AP1 (system debug APB): 0xE0080

AP2 (Cortex®-M4): 0xE00FF

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

Bit 1 FORMAT: base address register format

1: Arm® debug interface v5

Bit 0 ENTRYPRESENT: debug component presence

Indicates that debug components are present on the access port bus.

0: no debug components present

1: debug components are present

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

Address offset: 0xFC

Reset value: Block 0: 0x3477 0004

Reset value: Block 1: 0x4477 0003

Reset value: Block 2: 0x2477 0011

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
ST logo
ST logo

63.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 and Cortex®-M4 processors.

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.

63.10.1 System ROM tables

There are two 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.

The first table points to the CoreSight™ components located in the debug subsystem: SWO, TSG, and the Cortex®-A7 debug components, as well as to the Trace subsystem ROM table on the debug APB. The DBG_MCU is not referenced by the table as it is not a standard CoreSight™ component. 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 537. Debug subsystem ROM table
Address offset in ROM tableComponent nameComponent base address (debugger)Component base address (system bus)Component address offsetSizeData
0x000Reserved0xE008 10000x5008 10000x0 10004 Kbyte0x0000 1002
0x004Timestamp generator0xE008 20000x5008 20000x0 20004 Kbyte0x0000 2003
0x008SWO0xE008 30000x5008 30000x0 30004 Kbyte0x0000 3003
0x00CTrace Subsystem ROM table0xE009 00000x5009 00000x1 00004 Kbyte0x0001 0003
0x010STM0xE00A 00000x500A 00000x1 00004 Kbyte0x0002 0003
0x014C-A7 DBG0xE00D 00000x500D 00000x5 00004 Kbyte0x0005 0003
0x018C-A7 PMU0xE00D 10000x500D 10000x5 10004 Kbyte0x0005 1003
0x01CReserved----0x0005 2002
0x020Reserved----0x0005 3002
0x024C-A7 CTI0xE00D 80000x500D 80000x5 80004 Kbyte0x0005 8003
0x028Reserved----0x0005 9002
0x02CC-A7 ETM0xE00D C0000x500D C0000x5 C0004 Kbyte0x0005 C003
0x030Reserved----0x0005 D002
0x034Top of table----0x0000 0000
0x038 to 0xFC8Reserved----0x0000 0000
0xFCC to 0xFFCROM table registers----See Table 539

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 538. Trace subsystem ROM table
Address offset in ROM tableComponent nameComponent base address (debugger)Component base address (system bus)Component address offsetSizeEntry
0x000Trace funnel0xE009 10000x5009 10000x10004 Kbyte0x0000 1003
0x004ETF0xE009 20000x5009 20000x20004 Kbyte0x0000 2003
0x008TPIU0xE009 30000x5009 30000x30004 Kbyte0x0000 3003

Table 538. Trace subsystem ROM table (continued)

Address offset in ROM tableComponent nameComponent base address (debugger)Component base address (system bus)Component address offsetSizeEntry
0x00CTrace CTI0xE009 40000x5009 40000x40004 Kbyte0x0000 4003
0x010Top of table----0x0000 0000
0x018 to 0xFC8Reserved----0x0000 0000
0xFCC to 0xFFCROM table registers----See Table 539

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 539.

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 769.

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

Figure 769. Debug APB CoreSight™ topology

Figure 769. Debug APB CoreSight™ topology diagram showing the connection from APB-AP (BASE register 0xF8: 0xE00E0000) to Debug Subsystem ROM table (@0xE0080000), which branches to Timestamp Generator (@0xE0082000), Serial Wire Output (SWO) (@0xE0083000), Trace Subsystem ROM table (@0xE0090000), System Trace Macrocell (STM) (@0xE00A0000), C-A7 Debug (@0xE00D0000), C-A7 CTI (@0xE00D8000), and C-A7 ETM (@0xE00DC000). The Trace Subsystem ROM table connects to Trace Funnel (CSTF) (@0xE0091000), Trace FIFO (ETF) (@0xE0092000), Trace Port Interface (TPIU) (@0xE0093000), and System CTI (@0xE0094000). The C-A7 Debug block connects to C-A7 PMU (@0xE00D1000).
Figure 769. Debug APB CoreSight™ topology diagram showing the connection from APB-AP (BASE register 0xF8: 0xE00E0000) to Debug Subsystem ROM table (@0xE0080000), which branches to Timestamp Generator (@0xE0082000), Serial Wire Output (SWO) (@0xE0083000), Trace Subsystem ROM table (@0xE0090000), System Trace Macrocell (STM) (@0xE00A0000), C-A7 Debug (@0xE00D0000), C-A7 CTI (@0xE00D8000), and C-A7 ETM (@0xE00DC000). The Trace Subsystem ROM table connects to Trace Funnel (CSTF) (@0xE0091000), Trace FIFO (ETF) (@0xE0092000), Trace Port Interface (TPIU) (@0xE0093000), and System CTI (@0xE0094000). The C-A7 Debug block connects to C-A7 PMU (@0xE00D1000).

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

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 539. 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.
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.
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.
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.PARTNUM[7:0]
Reset value000000000
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 value000000101
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.PREAMBLE[7:0]
Reset value0000110101
0xFF4SYSROM_CIDR1Res.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 value0001000000
ST logo
ST logo

Table 539. 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

63.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, ITM and STM. These components insert timestamps in the trace streams that allow the trace analyser to recover the chronological order of trace packets, which can be lost when multiple trace sources are multiplexed into one stream at the funnels.

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 and Cortex®-M4. 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 770.

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

Figure 770. CoreSight™ timestamp distribution

Block diagram of CoreSight timestamp distribution architecture.

The diagram illustrates the CoreSight™ timestamp distribution architecture. It shows the flow of timestamp data from a Debug APB through a Timestamp generator (containing a Counter [63:0]) to a Timestamp encoder. The encoder outputs a 7-bit signal that branches into three domains: STM, High frequency CPU domain, and M4 subsystem domain. Each domain contains a Timestamp decoder and specific CoreSight components (STM, ETM, ITM).

Components and Data Paths:

Domains: The diagram is divided into the SoC domain (containing the encoder and decoders) and the High frequency CPU domain (containing the Cortex-A7). The M4 subsystem domain is also indicated.

MS49682V1

Block diagram of CoreSight timestamp distribution architecture.

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

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 540. 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 value00000100
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
ST logo
ST logo

Table 540. 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.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.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 value000000001
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 value101100001
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 value000110111
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 value000000000
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 value111100000
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

63.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 three CTI components, one in the trace subsystem, one for the Cortex®-A7, and one dedicated to the Cortex®-M4. 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. The Cortex®-M4 CTI is accessible on its private peripheral bus (PPB) via the Cortex®-M4 AHB access port.

Figure 771. Embedded cross trigger

Figure 771. Embedded cross trigger block diagram showing connections between Cortex-A7 CTI, Trace Subsystem CTI, and Cortex-M4 CTI via CTM channels [3:0]

The diagram shows the Embedded cross trigger architecture consisting of three CTI modules interconnected via CTM channels [3:0]:

Reference: MS49683V1

Figure 771. Embedded cross trigger block diagram showing connections between Cortex-A7 CTI, Trace Subsystem CTI, and Cortex-M4 CTI via CTM channels [3:0]

The CTIs allow events from various sources to trigger debug and/or trace activity. For example, a breakpoint reached in one of the processor cores can stop the other processor, or 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 541 to Table 546.

Table 541. 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
3TRIGOUTSPTESTMThe STM asserts this signal for one clock cycle when a trigger event is detected on a match using the STMSPTER.
4TRIGOUTSWSTMThe STM asserts this signal for one clock cycle when a trigger event is generated on writes to a TRIG location in the extended stimulus port registers.
5TRIGOUTHETESTMThe STM asserts this signal for one clock cycle when a trigger event is detected on a match using the STMHETER.
6ASYNCOUTSTMAlignment synchronization signal. The STM asserts this signal for one clock cycle when an ASYNC-VERSION-FREQ sequence is output on the ATB interface, and the ASYNCOUT signal can be used for cross-triggering.
7--Not used
Table 542. 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
5HWEVENTASTMSTM hardware event
6HWEVENTBSTMSTM hardware event
7HLTDBGTSGENHalts timestamp in debug - freezes the TSGEN timestamp counter
Table 543. 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 544. 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
Table 545. Cortex®-M4 CTI inputs
Source signalSource componentComments
0HALTEDM4 CPUCPU halted - indicates CPU is in debug mode
1--Not used
2--Not used
3--Not used
4ETMTRIGGER0M4 DWTTrace trigger - enables CPU execution trace
5ETMTRIGGER1M4 DWTTrace trigger - enables CPU execution trace
6ETMTRIGGER2M4 DWTTrace trigger - enables CPU execution trace
7ETMTRIGOUTM4 ETMETM triggered - indicates trace active
Table 546. Cortex® -M4 CTI outputs
Source signalDestination componentComments
0EDBGRQM4 CPUCPU halt request -puts CPU in debug mode
1nIRQ1M4 NVICCTI interrupt
2nIRQ2M4 NVICCTI interrupt
3--Not used
4ETMEXTIN0M4 ETMETM external input
5ETMEXTIN1M4 ETMETM external input
6--Not used
7DBGRESTARTM4 ETMCPU 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 772. Mapping trigger inputs to outputs

Diagram illustrating the mapping of trigger inputs to outputs. It shows three main blocks: CTI x, CTM, and CTI y. Input m enters CTI x, which is controlled by the CTIINENm = p register. This input is connected to Channel p in the CTM. The CTM also contains Channels q, r, and s. Channel p is then connected to CTI y, which is controlled by the CTIOUTENn = p register, resulting in Output n. The diagram is labeled MSv46864V1.

The diagram illustrates the mapping of trigger inputs to outputs. It shows three main blocks: CTI x, CTM, and CTI y. Input m enters CTI x, which is controlled by the CTIINENm = p register. This input is connected to Channel p in the CTM. The CTM also contains Channels q, r, and s. Channel p is then connected to CTI y, which is controlled by the CTIOUTENn = p register, resulting in Output n. The diagram is labeled MSv46864V1.

Diagram illustrating the mapping of trigger inputs to outputs. It shows three main blocks: CTI x, CTM, and CTI y. Input m enters CTI x, which is controlled by the CTIINENm = p register. This input is connected to Channel p in the CTM. The CTM also contains Channels q, r, and s. Channel p is then connected to CTI y, which is controlled by the CTIOUTENn = p register, resulting in Output n. The diagram is labeled MSv46864V1.

Example configuration:

When either the MCU or the MPU hits a breakpoint, stop the other processor. Restart the two processors synchronously.

To stop both cores when either core stops requires the debug status output of each core (that is HALTED for the Cortex®-M4, DBGTRIGGER for the Cortex®-A7) to be connected to the EDBGRQ input of the opposite core.

Referring to Table 543 and Table 545, we see that the DBGTRIGGER signal from the Cortex®-A7_1 core is connected to input 0 of the Cortex®-A7_1 CTI, and the HALTED signal from the Cortex®-M4 core is connected to the same input on the Cortex®-M4

CTI. Hence we program the CTI_IEN0 register on each CTI to connect these inputs to a CTM channel (eg. channel 0).

From Table 544 and Table 546 we see that the EDBGREQ signals to the CPUs are connected to output 0 of the respective CTIs. So we program the CTI_OUTEN0 register on each CTI to connect these outputs to the same CTM channel.

To restart both cores simultaneously the debugger must use the CTI_APPPULSE register in either of the CTIs. This allows the debugger to generate a pulse on any of the four ETM channels. The channel must be connected to the DBGRESTART signal of both cores.

From Table 544 and Table 546 we see that the DBGRESTART signals to the CPUs are connected to output 1 of the respective CTIs. So we program the CTI_OUTEN1 register on each CTI to connect these outputs to an unused CTM channel (eg. channel 1).

The above configuration is illustrated in Figure 773.

Figure 773. Cross trigger configuration example

Figure 773: Cross trigger configuration example. The diagram shows two Cortex-M4 and Cortex-A7 processors connected via CTI (Cross Trigger Interface) blocks to a CTM (Cross Trigger Module). The top half shows Cortex-M4 triggering Cortex-A7, and the bottom half shows Cortex-A7 triggering Cortex-M4. Each path uses Channel 0 for EDBGREQ and Channel 1 for DBGRESTART. Register settings for CTI_IEN0, CTI_OUTEN0, and CTI_OUTEN1 are specified for each CTI block.

The diagram illustrates a cross-trigger configuration between two Cortex-M4 and Cortex-A7 processors. It is divided into two main sections: the top section for Cortex-M4 triggering Cortex-A7, and the bottom section for Cortex-A7 triggering Cortex-M4.

Top Section (Cortex-M4 to Cortex-A7):

Bottom Section (Cortex-A7 to Cortex-M4):

Channel 1 Configuration (for DBGRESTART):

MS49684V1

Figure 773: Cross trigger configuration example. The diagram shows two Cortex-M4 and Cortex-A7 processors connected via CTI (Cross Trigger Interface) blocks to a CTM (Cross Trigger Module). The top half shows Cortex-M4 triggering Cortex-A7, and the bottom half shows Cortex-A7 triggering Cortex-M4. Each path uses Channel 0 for EDBGREQ and Channel 1 for DBGRESTART. Register settings for CTI_IEN0, CTI_OUTEN0, and CTI_OUTEN1 are specified for each CTI block.

To force the processors to restart simultaneously, the debugger should use the following procedure:

  1. 1. Clear the debug request by writing 0x01, then 0x00, to the CTI_INTACK register in each CTI.
  2. 2. Cause a pulse on channel 1 by writing 0x02 to the CTI_APPPULSE register in either CTI. This will generate a restart request to both processors.

Note that the debugger can also force both cores to stop simultaneously by writing 0x01 to the CTI_APPPULSE register in either CTI, which generates a pulse on channel 0.

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

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

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

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
ST logo
ST logo

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.

CTI claim tag set register (CTI_CLAIMSET)

Address offset: 0xFA0

Reset value: 0x0000 000F

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.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:

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

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

0xC5ACCE55: enable write access

Other values: disable write access

CTI lock status register (CTI_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: 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

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.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

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 547. 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.APPSET[3:0]
Reset value00000

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

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
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.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.APULSE[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.TRIGINEN[3:0]
Reset value0000
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

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

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
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.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.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.Res.TRIGOUTEN[3:0]
Reset value0000
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.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.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.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.Res.TRIGOUTEN[3:0]
Reset value0000

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

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
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.TRIGINSTATUS[7:0]
Reset value00000000
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.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.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.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.Res.Res.Res.CLAIMSET[3:0]
Reset value1111

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

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
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.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.LOCKTYPE
LOCKGRANT
LOCKEXIST
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.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value0000
0xFC8CTI_DEVIDRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NUMCH
[3:0]
NUMTRIG[7:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EXMUXNUM[4:0]
Reset value010000001000000
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.Res.SUB[3:0]MAJOR[3:0]
Reset value0001010
0xFD0CTI_PIDR4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.JEP106CON[3:0]
Reset value0000
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.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.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.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.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value

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

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFE4CTI_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
0xFE8CTI_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
0xFECCTI_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
0xFF0CTI_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
0xFF4CTI_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
0xFF8CTI_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
0xFFCCTI_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

63.10.4 Trace funnel (CSTF)

The trace funnel is a CoreSight™ component that combines the ATB buses from the five trace sources into one single ATB. The CSTF has five ATB slave ports, and one ATB master port. An arbiter selects the slave ports according to a programmable priority.

The slave ports are connected as follows:

The CSTF registers allow the slave ports to be individually enabled, and their priority settings to be configured. The priorities can be modified only when trace is disabled. The arbitration works as follows:

High priority should be assigned to slave ports connected to sources with a small amount of buffering, or where data loss can not be tolerated. Low priority should be assigned to less critical sources or those with large buffers.

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

Trace funnel registers

CSTF control register (CSTF_CTRL)

Address offset: 0x000

Reset value: 0x0000 0300

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.MIN_HOLD_TIME[3:0]Res.Res.Res.ENS4ENS3ENS2ENS1ENS0
rwrwrwrwrwrwrwrwrw

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

Bits 11:8 MIN_HOLD_TIME[3:0]: number of transactions between each arbitration

0x0: 1 transaction

:

0xE: 15 transactions

0xF: reserved

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

Bit 4 ENS4: slave port S4 enable

0: disables port

1: enables port

Bit 3 ENS3: slave port S3 enable

0: disables port

1: enables port

CSTF priority register (CSTF_PRIORITY)

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.PRIPORT4[2:0]PRIPORT3[2:0]PRIPORT2[2:0]PRIPORT1[2:0]PRIPORT0[2:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

CSTF claim tag set register (CSTF_CLAIMSET)

Address offset: 0xFA0

ST logo
ST logo

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:

CSTF claim tag clear register (CSTF_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:

CSTF lock access register (CSTF_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

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

0xC5ACCE55: enable write access

Other values: disable write access

CSTF lock status register (CSTF_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: CSTF_LAR register size

Indicates the size of the CSTF_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

CSTF authentication status register (CSTF_AUTHSTAT)

Address offset: 0xFB8

Reset value: 0x0000 000A

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.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

CSTF CoreSight device identity register (CSTF_DEVID)

Address offset: 0xFC8

Reset value: 0x0000 0024

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.SCHEME[3:0]PORTCNT[3:0]
rrrrrrrr

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

Bits 7:4 SCHEME[3:0]: priority scheme
0x2: static priority

Bits 3:0 PORTCNT[3:0]: number of input ports connected
0x4: four input ports

CSTF CoreSight device identity register (CSTF_TYPEID)

Address offset: 0xFCC

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.DEVTYPEID[7:0]
rrrrrrrr
ST logo
ST logo

Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0 DEVTYPEID[7:0]: device type identifier
0x12: trace funnel

CSTF CoreSight peripheral identity register 0 (CSTF_PIDR0)

Address offset: 0xFE0
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.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]
0x08: CSTF part number

CSTF CoreSight peripheral identity register 1 (CSTF_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: CSTF part number

CSTF CoreSight peripheral identity register 2 (CSTF_PIDR2)

Address offset: 0xFE8
Reset value: 0x0000 001B

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.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

CSTF CoreSight peripheral identity register 3 (CSTF_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

CSTF CoreSight peripheral identity register 4 (CSTF_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

CSTF CoreSight component identity register 0 (CSTF_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

CSTF CoreSight peripheral identity register 1 (CSTF_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

CSTF CoreSight component identity register 2 (CSTF_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 bits [23:16]
0x05: common ID value

CSTF CoreSight component identity register 3 (CSTF_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 funnel registers map

Table 548. CSTF register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000CSTF_CTRLRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MIN_HOLD_TIME[3:0]Res.Res.Res.Res.ENS3ENS2ENS1ENS0
Reset value00110000
0x004CSTF_PRIORITYRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PRIPORT3[2:0]PRIPORT2[2:0]PRIPORT1[2:0]PRIPORT0[2:0]
Reset value011010001000
ST logo
ST logo

Table 548. CSTF register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFA0CSTF_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.CLAIMSET[3:0]
Reset value1111
0xFA4CSTF_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.CLAIMCLR[3:0]
Reset value0000
0xFB0CSTF_LARACCESS_W[31:0]
Reset valuexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
0xFB4CSTF_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.LOCKTYPELOCKGRANTLOCKEXIST
Reset value011
0xFB8CSTF_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
0xFC8CSTF_DEVIDRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SCHEME[3:0]PORTCNT[3:0]
Reset value0010010
0xFCCCSTF_TYPEIDRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DEVTYPEID[7:0]
Reset value0001001
0xFD0CSTF_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
0xFD4CSTF_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
0xFD8CSTF_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
0xFDCCSTF_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

Table 548. CSTF register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFE0CSTF_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 value00001000
0xFE4CSTF_PIDR1Res.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
0xFE8CSTF_PIDR2Res.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
0xFECCSTF_PIDR3Res.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
0xFF0CSTF_CIDR0Res.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
0xFF4CSTF_CIDR1Res.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
0xFF8CSTF_CIDR2Res.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
0xFFCCSTF_CIDR3Res.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

63.10.5 Embedded trace FIFO (ETF)

The ETF is an 8-kbyte memory which captures trace data from five trace sources, namely the ETM of each CPU core, the ITM of the Cortex®-M4, and the STM. 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 processors.

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, 8 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(s), 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
0x800: 8 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.

ST logo
ST logo

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

0: circular buffer mode. In this 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 has occurred.

1: software FIFO mode. In this mode, the trace memory is used as a FIFO that can be read through the ETF_RRD Register while trace is being captured. Trace data is captured into the trace RAM and when full, the incoming trace stream is stalled.

2: hardware FIFO mode. In this 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 non-empty, trace data is drained out through the ATB master interface to the TPIU.

3: reserved

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 FTEMPTTY 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.

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 549. ETF register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x004ETF_RSZRes.RSZ[30:0]
Reset value000000000000000000010000000000
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.EMPTYFTEMPYREADYTRIGDFULL
Reset value11100
0x010ETF_RRDRRD[31:0]
Reset value-------------------------------
0x014ETF_RRPRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RRP[12:0]
Reset value000000000000
0x018ETF_RWPRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RWP[12:0]
Reset value000000000000
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.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TCEN
Reset value0

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

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
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.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.Res.LBUFLEVEL[11:0]
Reset value000000000000
0x030ETF_CBUFLVLRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CBUFLEVEL[11:0]
Reset value000000000000
0x034ETF_BUFWMRes.Res.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.Res.FTSTOPPEDFLINPROG
Reset value100
0x304ETF_FFCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DRAINBUFSTPONTRGEVSTOPONFLRes.TRGONFLTRGONTRGEVTRGONTRGINRes.FLUSHMANFONTRGEVFONFLINRes.Res.ENIENFT
Reset value000000000000
0x308ETF_PSCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PSCOUNT[3:0]
Reset value010110
0xFA0ETF_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
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--------------------------------

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

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
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.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.SNID[1:0]SID[1:0]NSNID[1:0]NSID[1:0]
Reset value00000000
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]CONFGTYP[1:0]CLKSCHEMATBINPORTCNT[4:0]
Reset value01110000000
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 value00110010
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 value00000100
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.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.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.Res.
Reset value
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

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

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
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

63.10.6 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
ST logo
ST logo

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

Bit 17 TRGRUN: trigger running

Bit 16 TRIGD: triggered

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

Bit 8 TCOUNT8: 8-bit counter register

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

Bit 4 MULT64K: multiplying the trigger counter by 65536 support

Bit 3 MULT256: multiplying the trigger counter by 256 support

Bit 2 MULT16: multiplying the trigger counter by 16 support

Bit 1 MULT4: multiplying the trigger counter by 4 support

Bit 0 MULT2: multiplying the trigger counter by 2 support

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.

Bit 2 TCPRESENT: TRACECTL output pin is availability

Indicates whether the optional TRACECTL output pin is available for use.

0: TRACECTL pin is not present in this device

Bit 1 FTSTOPPED: formatter stopped

The formatter has received a stop request signal and all trace data and post-amble is sent. Any additional trace data on the ATB interface is ignored.

0: formatter has not stopped

1: formatter has stopped

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 TPIU_FFCR register.

0: no flush in progress

1: flush in progress

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

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 TRIG EVT: 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

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

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

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.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 code0x4: 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

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 550. 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.Res.TRGRUNTRIGDRes.Res.Res.Res.Res.Res.Res.TCOUNT8Res.Res.Res.MULT64KMULT256MULT16MULT4MULT2
Reset value00111111
0x104TPIU_TRGCNTRes.Res.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 value000000000
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
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 value1111111

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

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
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 value000001000000
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
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]SID[1:0]NSNID[1:0]NSID[1:0]
Reset value00000000

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

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFC8TPIU_DEVIDRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SWOUARTNRZSWOMANTCLKDATAFIFOSIZE[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.
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.
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.
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
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

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

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
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

63.10.7 Serial wire output (SWO)

The SWO is a CoreSight™ component that formats the trace stream from the Cortex®-M4 processor ITM and outputs it on the single wire TRACESWO output.

Compared to the TPIU, the SWO contains:

The SWO output supports Manchester encoded and UART NRZ formats.

For more information about the Serial Wire Output CoreSight™ component, refer to the Arm® CoreSight™ Components Technical Reference Manual [4].

Serial wire output registers

SWO current output divisor register (SWO_CODR)

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.PRESCALER[12:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 12:0 PRESCALER[12:0]: 13-bit counter pre-load value

This register allows to scale the baud rate of the SWO output. The baud rate is the trace clock frequency divided by (PRESCALER - 1).

Note: The baud rate changes instantly; it is recommended to stop the trace source and wait until the port is idle before writing this register.

SWO selected pin protocol register (SWO_SPPR)

Address offset: 0x0F0

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.Res.Res.Res.Res.Res.Res.PPROT[1:0]
rwrw

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

Bits 1:0 PPROT[1:0]: pin protocol

0x0: reserved

0x1: Manchester

0x2: NRZ

0x3: reserved

SWO formatter and flush status register (SWO_FFSR)

Address offset: 0x300

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.FTNONSTOPTCPRESENTFTSTOPPEDFLINPROG
rrrr

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

Bit 3 FTNONSTOP: no need to stop formatter to change settings

1: formatter can not be stopped

SWO claim tag set register (SWO_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

SWO claim tag clear register (SWO_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
ST logo
ST logo

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

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

Write:

Read:

SWO lock access register (SWO_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]: SWO register write access enable

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

0xC5ACCE55: enable write access

Other values: disable write access

SWO lock status register (SWO_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
ST logo
ST logo

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

Bit 2 LOCKTYPE: SWO_LAR register size
Indicates the size of the SWO_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

SWO authentication status register (SWO_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

SWO device configuration register (SWO_DEVID)

Address offset: 0xFC8

Reset value: 0x0000 0EA0

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.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 synchronization

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

SWO device type identifier register (SWO_DEVTYPE)

Address offset: 0xFCC

Reset value: 0x0000 0011

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

SWO CoreSight peripheral identity register 4 (SWO_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

SWO CoreSight peripheral identity register 0 (SWO_PIDR0)

Address offset: 0xFE0

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.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]

0x14: SWO part number

SWO CoreSight peripheral identity register 1 (SWO_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: SWO part number

SWO CoreSight peripheral identity register 2 (SWO_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
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

SWO CoreSight peripheral identity register 3 (SWO_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

SWO CoreSight component identity register 0 (SWO_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

SWO CoreSight peripheral identity register 1 (SWO_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

SWO CoreSight component identity register 2 (SWO_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

SWO CoreSight component identity register 3 (SWO_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

Serial wire output registers map

Table 551. SWO registers map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000SWO_SPRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value
0x004SWO_CPRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value
0x010SWO_CODRResResResResResResResResResResResResResResResResResResResPRESCALER[12:0]
Reset value0000000000000
0x0F0SWO_SPPRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResPPROT[1:0]
Reset value01
0x100SWO_STMRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value
0x200SWO_STPRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value

Table 551. SWO registers map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x300SWO_FFSRResResResResResResResResResResResResResResResResResResResResResResResResResResResResFTNONSTOPTCPRESENTFTSTOPPEDFLINPROG
Reset value1000
0x304SWO_FFCRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value
0xFA0SWO_CLAIMSETResResResResResResResResResResResResResResResResResResResResResResResResResResResCLAIMSET[3:0]
Reset value1111
0xFA4SWO_CLAIMCLRResResResResResResResResResResResResResResResResResResResResResResResResResResResCLAIMCLR[3:0]
Reset value0000
0xFB0SWO_LARACCESS_W[31:0]
Reset value--------------------------------
0xFB4SWO_LSRResResResResResResResResResResResResResResResResResResResResResResResResResResResResLOCKTYPELOCKGRANTLOCKEXIST
Reset value011
0xFB8SWO_AUTHSTATResResResResResResResResResResResResResResResResResResResResResResResResResResResNSID[1:0]NSID[1:0]NSID[1:0]NSID[1:0]
Reset value0000
0xFC8SWO_DEVIDResResResResResResResResResResResResResResResResResResResResResResResResResResResMUXNUM[4:0]
Reset value11100
0xFCCSWO_DEVTYPEResResResResResResResResResResResResResResResResResResResResResResResResResResResSUBTYPE[3:0]MAJORTYPE[3:0]
Reset value0001001

Table 551. SWO registers map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFD0SWO_PIDR4ResResResResResResResResResResResResResResResResResResResResResResResResSIZE[3:0]JEP106CON[3:0]
Reset value00000100
0xFD4SWO_PIDR5ResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value
0xFD8SWO_PIDR6ResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value
0xFDCSWO_PIDR7ResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value
0xFE0SWO_PIDR0ResResResResResResResResResResResResResResResResResResResResResResResResPARTNUM[7:0]
Reset value00010100
0xFE4SWO_PIDR1ResResResResResResResResResResResResResResResResResResResResResResResResJEP106ID[3:0]PARTNUM[11:8]
Reset value10111001
0xFE8SWO_PIDR2ResResResResResResResResResResResResResResResResResResResResResResResResREVISION[3:0]JEDECJEP106ID[6:4]
Reset value00011011
0xFECSWO_PIDR3ResResResResResResResResResResResResResResResResResResResResResResResResREVAND[3:0]CMOD[3:0]
Reset value00000000
0xFF0SWO_CIDR0ResResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE[7:0]
Reset value00001101
0xFF4SWO_CIDR1ResResResResResResResResResResResResResResResResResResResResResResResResCLASS[3:0]PREAMBLE[11:8]
Reset value10010000
0xFF8SWO_CIDR2ResResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE[19:12]
Reset value00000101
0xFFCSWO_CIDR3ResResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE[27:20]
Reset value10110001

63.10.8 System trace macrocell (STM)

The System Trace Macrocell is a CoreSight™ component which allows instrumentation data generated by software to be incorporated in the trace output. The software writes the instrumentation data to the STM via a memory-mapped port on the AXI system interconnect. The data is formatted and time-stamped for output on the ATB trace bus, where it is merged with the trace coming from other sources (ETM, ITM).

Figure 774. System Trace Macrocell

Block diagram of the System Trace Macrocell (STM). The diagram shows a central block containing an Arbiter, Packet generation, FIFO, and Registers. Inputs to the block are Hardware events, AXI, Timestamps, APB, and Authentication. Hardware events, AXI, and Timestamps feed into the Arbiter. The Arbiter output goes to Packet generation. APB feeds into Registers. Authentication also feeds into the block. The output of the block is ATB. The label MSv46866V1 is at the bottom right.
graph LR
    subgraph STM [System Trace Macrocell]
        direction LR
        Arbiter[Arbiter] --> PG[Packet generation]
        PG --> FIFO[FIFO]
        FIFO --> ATB[ATB]
        Registers[Registers]
    end
    HE[Hardware events] --> Arbiter
    AXI[AXI] --> Arbiter
    TS[Timestamps] --> Arbiter
    APB[APB] --> Registers
    Auth[Authentication] --> STM
    MSv46866V1[MSv46866V1]
  
Block diagram of the System Trace Macrocell (STM). The diagram shows a central block containing an Arbiter, Packet generation, FIFO, and Registers. Inputs to the block are Hardware events, AXI, Timestamps, APB, and Authentication. Hardware events, AXI, and Timestamps feed into the Arbiter. The Arbiter output goes to Packet generation. APB feeds into Registers. Authentication also feeds into the block. The output of the block is ATB. The label MSv46866V1 is at the bottom right.

The STM is configured with the following values:

The various AXI masters can generate trace by writing to the extended stimulus ports of the STM via its AXI slave port, which is mapped in a 16-Mbyte window of address space (see memory map). A 256-byte extended stimulus port comprises 16 x 64-bit locations or registers. Writes to different locations generate different types of trace packets, as shown in Table 552. The base address for stimulus port n is the STM base address + n x 256. A master can use any number of the 65536 available stimulus ports mapped in the 16 Mbyte-window.

Table 552. STM extended stimulus port memory map

Address offsetNameDescription
0x00G_DMTSData, marked with timestamp, guaranteed
0x08G_DMData, marked, guaranteed
0x10G_DTSData, with timestamp, guaranteed
0x18G_DData, guaranteed
0x20-0x58-Reserved
Table 552. STM extended stimulus port memory map (continued)
Address offsetNameDescription
0x60G_FLAGTSFlag with timestamp, guaranteed
0x68G_FLAGFlag, guaranteed
0x70G_TRIGTSTrigger with timestamp, guaranteed
0x78G_TRIGTrigger, guaranteed
0x80I_DMTSData, marked with timestamp, invariant timing
0x88I_DMData, marked, invariant timing
0x90I_DTSData, with timestamp, invariant timing
0x98I_DData, invariant timing
0xA0 to 0xD8-Reserved
0xE0I_FLAGTSFlag with timestamp, invariant timing
0xE8I_FLAGFlag, invariant timing
0xF0I_TRIGTSTrigger with timestamp, invariant timing
0xF8I_TRIGTrigger, invariant timing

The trace packets contain the 8-bit identity of the master that triggered them. This identity is decoded from the non-secure master ID (NSAID) carried on the AWUSER wires of the AXI interconnect. The ID also includes the security status of the master at the time.

The ID is mapped as follows:

A list of valid IDs and how they map to the originating master is given in Table 553.

Table 553. STM trace packet ID mapping to AXI masters
MasterSecure access IDNon-secure access ID
Cortex®-A70x000x40
Cortex®-M40x020x42
MDMA0x0A0x4A
DMA1/2-0x4C
DAP0x1E0x5E

The STM can also generate trace packets or triggers when certain hardware events are detected. A maximum of 64 events can be traced at any one time. An external multiplexer allows four sets of signals to be mapped onto these events. The mapping is given in Table 554 and Table 555. All events are edge sensitive.

Table 554. Hardware event mapping 0 to 3

BankEventEXTMUX(7:0) = 0EXTMUX(7:0) = 1EXTMUX(7:0) = 2EXTMUX(7:0) = 3
HEBS = 00HWEVENTA↑UART4_TX_sreqWWDG1_EWIT_irq↑EXTI6_irq↑
1HWEVENTA↓UART5_RX_sreqPVD_irq↑EXTI7_irq↑
2HWEVENTB↑UART5_TX_sreqTAMP_STAMP_irq↑EXTI8_irq↑
3HWEVENTB↓DAC1_sreqRTC_WKUP_irq↑EXTI9_irq↑
4-DAC2_sreq-GPDMA2_Stream5_irq↑
5-TIM6_UP_sreqRCC_irq↑GPDMA2_Stream6_irq↑
6-TIM7_UP_sreqEXTI0_irq↑GPDMA2_Stream7_irq↑
7-USART6_RX_sreqEXTI1_irq↑USART6_irq↑
8-USART6_TX_sreqEXTI2_irq↑I2C3_EVT_irq↑
9ADC1_sreqI2C3RX_sreqEXTI3_irq↑I2C3_ERR_irq↑
10ADC2_sreqI2C3TX_sreqEXTI4_irq↑USB_OHCI_IT_irq↑
11TIM1_CH1_sreqDCMI_sreqGPDMA1_Stream0_irq↑USB_EHCI_IT_irq↑
12TIM1_CH2_sreqCRYP2_IN_sreqGPDMA1_Stream1_irq↑EXTI12_irq↑
13TIM1_CH3_sreqCRYP2_OUT_sreqGPDMA1_Stream2_irq↑EXTI13_irq↑
14TIM1_CH4_sreqHASH2_IN_sreqGPDMA1_Stream3_irq↑DCMI_irq↑
15TIM1_UP_sreqUART7_RX_sreqGPDMA1_Stream4_irq↑CRYP1_irq↑
16TIM1_TRIG_sreqUART7_TX_sreqGPDMA1_Stream5_irq↑HASH1_RNG1_irq↑
17TIM1_COM_sreqUART8_RX_sreqGPDMA1_Stream6_irq↑FPU_irq↑
18TIM2_CH1_sreqUART8_TX_sreqADC1_irq↑UART7_irq↑
19TIM2_CH2_sreqSPI4_RX_sreq-UART8_irq↑
20TIM2_CH3_sreqSPI4_TX_sreq-SPI4_irq↑
21TIM2_CH4_sreqSPI5_RX_sreq-SPI5_irq↑
22TIM2_UP_sreqSPI5_TX_sreq-SPI6_irq↑
23TIM3_CH1_sreqSAI1_A_sreqEXTI5_irq↑SAI1_irq↑
24TIM3_CH2_sreqSAI1_B_sreqTIM1_BRK_irq↑LTDC_irq↑
25TIM3_CH3_sreqSAI2_A_sreqTIM1_UP_irq↑LTDC_ER_irq↑
26TIM3_CH4_sreqSAI2_B_sreqTIM1_TRG_COM_irq↑ADC2_irq↑
27TIM3_UP_sreqDFSDM5_sreqTIM1_CC_irq↑SAI2_irq↑
28TIM3_TRIG_sreqDFSDM6_sreqTIM2_irq↑QuadSPI_irq↑
29TIM4_CH1_sreqSPDIFRX_DT_sreqTIM3_irq↑LPTIMER1_IT_irq↑
30TIM4_CH2_sreqSPDIFRX_CS_sreqTIM4_irq↑CEC_irq↑
31TIM4_CH3_sreq-I2C1_EVT_irq↑I2C4_EVT_irq↑

Table 554. Hardware event mapping 0 to 3 (continued)

BankEventEXTMUX(7:0) = 0EXTMUX(7:0) = 1EXTMUX(7:0) = 2EXTMUX(7:0) = 3
HEBS = 10TIM4_UP_sreq-I2C1_ERR_irq↑I2C4_ERR_irq↑
1I2C1_RX_sreq-I2C2_EVT_irq↑SPDIFRX_irq↑
2I2C1_TX_sreq-I2C2_ERR_irq↑OTG_IT_irq↑
3I2C2_RX_sreqSAI4_A_sreqSPI1_irq↑-
4I2C2_TX_sreqSAI4_B_sreqSPI2_irq↑IPCC_RX0_IT_irq↑
5SPI1_RX_sreqDFSDM1_sreqUSART1_irq↑IPCC_TX0_IT_irq↑
6SPI1_TX_sreqDFSDM2_sreqUSART2_irq↑DMA_MUX_OVR_REQ_IT_irq↑
7SPI2_RX_sreqDFSDM3_sreqUSART3_irq↑IPCC_RX1_IT_irq↑
8SPI2_TX_sreqDFSDM4_sreqEXTI10_irq↑IPCC_TX1_IT_irq↑
9-TIM15_CH1_sreqRTC_Alarm_irq↑CRYP2_irq↑
10-TIM15_UP_sreqEXTI11_irq↑HASH2_RNG2_irq↑
11USART2_RX_sreqTIM15_TRIG_sreqTIM8_BRK_TIM12_irq↑I2C5_EVT_irq↑
12USART2_TX_sreqTIM15_COM_sreqTIM8_UP_TIM13_irq↑I2C5ER_irq↑
13USART3_RX_sreqTIM16_CH1_sreqTIM8_TRG_COM_TIM14_irq↑-
14USART3_TX_sreqTIM16_UP_sreqTIM8_CC_irq↑DFSDM1_IT_irq↑
15TIM8_CH1_sreqTIM17_CH1_sreqGPDMA1_Stream7_irq↑DFSDM2_IT_irq↑
16TIM8_CH2_sreqTIM17_UP_sreqFMC_irq↑DFSDM3_IT_irq↑
17TIM8_CH3_sreqSAI3_A_sreqSDMMC1_irq↑DFSDM4_IT_irq↑
18TIM8_CH4_sreqSAI3_B_sreqTIM5_irq↑SAI3_IT_irq↑
19TIM8_UP_sreqI2C5_RX_sreqSPI3_irq↑-
20TIM8_TRIG_sreqI2C5_TX_sreqUART4_irq↑TIM15_IT_irq↑
21TIM8_COM_sreqUSART1_RX_sreqUART5_irq↑TIM16_IT_irq↑
22USART1_TX_sreqTIM6_DAC_irq↑TIM17_IT_irq↑
23TIM5_CH1_sreqSPI6_RX_sreqTIM7_irq↑MDIO_ASYNC_IT_irq↑
24TIM5_CH2_sreqSPI6_TX_sreqGPDMA2_Stream0_irq↑MDIO_IT_irq↑
25TIM5_CH3_sreqI2C4_RX_sreqGPDMA2_Stream1_irq↑EXTI14_irq↑
26TIM5_CH4_sreqI2C4_TX_sreqGPDMA2_Stream2_irq↑MDMA_IT_irq↑
27TIM5_UP_sreqI2C6_RX_sreqGPDMA2_Stream3_irq↑-
28TIM5_TRIG_sreqI2C6_TX_sreqGPDMA2_Stream4_irq↑SDMMC2_irq↑
29SPI3_RX_sreq-ETH1_irq↑HSEM_IT1_irq↑
30SPI3_TX_sreq-ETH1_WKUP_irq↑HSEM_IT2_irq↑
31UART4_RX_sreq--EXTI15_irq↑
Key: sreq = DMA request; irq = interrupt request; ↑ = active going; ↓ = inactive going

Table 555. Hardware event mapping 4 to 7

BankEventEXTMUX(7:0) = 4EXTMUX(7:0) = 5EXTMUX(7:0) = 6EXTMUX(7:0) = 7
HEBS = 00nCTI1_irq↑WWDG1_EWIT_irq↓EXTI6_irq↓nCTI1_irq↓
1nCTI2_irq↑PVD_irq↓EXTI7_irq↓nCTI2_irq↓
2TIM13_irq↑TAMP_STAMP_irq↓EXTI8_irq↓TIM13_irq↓
3TIM14_irq↑RTC_WKUP_irq↓EXTI9_irq↓TIM14_irq↓
4DAC_irq↑TZC_IT_irq↓GPDMA2_Stream5_irq↓DAC_irq↓
5RNG1_irq↑RCC_irq↓GPDMA2_Stream6_irq↓RNG1_irq↓
6RNG2_irq↑EXTI0_irq↓GPDMA2_Stream7_irq↓RNG2_irq↓
7I2C6_EVT_irq↑EXTI1_irq↓USART6_irq↓I2C6_EVT_irq↓
8I2C6_ERR_irq↑EXTI2_irq↓I2C3_EVT_irq↓I2C6_ERR_irq↓
9SDMMC3_irq↑EXTI3_irq↓I2C3_ERR_irq↓SDMMC3_irq↓
10LPTIMER2_IT_irq↑EXTI4_irq↓USB_OHCI_IT_irq↓LPTIMER2_IT_irq↓
11LPTIMER3_IT_irq↑GPDMA1_Stream0_irq↓USB_EHCI_IT_irq↓LPTIMER3_IT_irq↓
12LPTIMER4_IT_irq↑GPDMA1_Stream1_irq↓EXTI12_irq↓LPTIMER4_IT_irq↓
13LPTIMER5_IT_irq↑GPDMA1_Stream2_irq↓EXTI13_irq↓LPTIMER5_IT_irq↓
14ETH1_LPI_irq ↑GPDMA1_Stream3_irq↓DCMI_irq↓ETH1_LPI_irq ↓
15-GPDMA1_Stream4_irq↓CRYP1_irq↓-
16MPU_SEV_irq↑GPDMA1_Stream5_irq↓HASH1_RNG1_irq↓MPU_SEV_irq↓
17-GPDMA1_Stream6_irq↓FPU_irq↓-
18SAI4_IT_irq↑ADC1_irq↓UART7_irq↓SAI4_IT_irq↓
19DTS_IT_irq↑-UART8_irq↓DTS_IT_irq↓
20--SPI4_irq↓-
21WAKEUP_PIN_IT_irq↑-SPI5_irq↓WAKEUP_PIN_IT_irq↓
22IWDG1_IT_irq ↑-SPI6_irq↓IWDG1_IT_irq ↓
23IWDG2_IT_irq ↑EXTI5_irq↓SAI1_irq↓IWDG2_IT_irq ↓
24-TIM1_BRK_irq↓LTDC_irq↓-
25-TIM1_UP_irq↓LTDC_ER_irq↓-
26-TIM1_TRG_COM_irq↓ADC2_irq↓-
27-TIM1_CC_irq↓SAI2_irq↓-
28-TIM2_irq↓QuadSPI_irq↓-
29-TIM3_irq↓LPTIMER1_IT_irq↓-
30-TIM4_irq↓CEC_irq↓-
31-I2C1_EVT_irq↓I2C4_EVT_irq↓-

Table 555. Hardware event mapping 4 to 7 (continued)

BankEventEXTMUX(7:0) = 4EXTMUX(7:0) = 5EXTMUX(7:0) = 6EXTMUX(7:0) = 7
HEBS = 10-I2C1_ERR_irq↓I2C4_ERR_irq↓-
1-I2C2_EVT_irq↓SPDIFRX_irq↓-
2-I2C2_ERR_irq↓OTG_IT_irq↓-
3-SPI1_irq↓--
4-SPI2_irq↓IPCC_RX0_IT_irq↓-
5-USART1_irq↓IPCC_TX0_IT_irq↓-
6-USART2_irq↓DMA_MUX_OVR_REQ_IT_irq↓-
7-USART3_irq↓IPCC_RX1_IT_irq↓-
8-EXTI10_irq↓IPCC_TX1_IT_irq↓-
9-RTC_Alarm_irq↓CRYP2_irq↓-
10-EXTI11_irq↓HASH2_RNG2_irq↓-
11-TIM8_BRK_TIM12_irq↓I2C5_EVT_irq↓-
12-TIM8_UP_TIM13_irq↓I2C5ER_irq↓-
13-TIM8_TRG_COM_TIM14_irq↓--
14-TIM8_CC_irq↓DFSDM1_IT_irq↓-
15-GPDMA1_Stream7_irq↓DFSDM2_IT_irq↓-
16-FMC_irq↓DFSDM3_IT_irq↓-
17-SDMMC1_irq↓DFSDM4_IT_irq↓-
18-TIM5_irq↓SAI3_IT_irq↓-
19-SPI3_irq↓--
20-UART4_irq↓TIM15_IT_irq↓-
21-UART5_irq↓TIM16_IT_irq↓-
22-TIM6_DAC_irq↓TIM17_IT_irq↓-
23-TIM7_irq↓MDIO_ASYNC_IT_irq↓-
24-GPDMA2_Stream0_irq↓MDIO_IT_irq↓-
25-GPDMA2_Stream1_irq↓EXTI14_irq↓-
26-GPDMA2_Stream2_irq↓MDMA_IT_irq↓-
27-GPDMA2_Stream3_irq↓--
28-GPDMA2_Stream4_irq↓SDMMC2_irq↓-
29-ETH1_irq↓HSEM_IT1_irq↓-
30-ETH1_WKUP_irq↓HSEM_IT2_irq↓-
31--EXTI15_irq↓-

Key: sreq = DMA request; irq = interrupt request; ↑ = active going; ↓ = inactive going

For more information on the System Trace Macrocell, refer to the Arm® CoreSight™ STM-500 Technical Reference Manual [8].

STM registers

The STM is configured and controlled by registers mapped on the debug APB, accessed by the debugger at STMBaseAddress = 0xE00A 0000, and by software at STMBaseAddress = 0x500A 0000.

System trace macrocell registers

STM hardware event enable register (STM_HEER)

Address offset: 0xD00

Reset value: 0x0000 0000

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

Bits 31:0 HEE[31:0]: hardware event enable

HEE is used to enable hardware events to generate trace. The register defines one bit per hardware event.

0: hardware event disabled

1: hardware event enabled

STM hardware event trigger enable register (STM_HETER)

Address offset: 0xD20

Reset value: 0x0000 0000

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

Bits 31:0 HETE[31:0]: trigger generation enable

HETE is a bit mask used to enable trigger generation on hardware events. The register defines one bit per hardware event.

0: disabled

1: enabled

STM hardware event bank select register (STM_HEBSR)

Address offset: 0xD60

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.HEBS
rw

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

Bit 0 HEBS: hardware event bank selector

HEBS is used to select the bank of 32 hardware events to control, see Table 554: Hardware event mapping 0 to 3).

0: bank 0

1: bank 1

STM hardware event main control register (STM_HEMCR)

Address offset: 0xD64

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.ATBTRIGENTRIGCLEARTRIGSTATUSTRIGCTLRes.ERRDETECTCOMPENEN
rwrwrrwrrwrw

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

Bit 7 ATBTRIGEN: ATB trace trigger enable

When set, this bit enables the STM to use the ATID value of 0x7D when a trigger event on match using STMHETER occurs.

0: do not output ATB trace triggers

1: use ATB trace triggers

Bit 6 TRIGCLEAR: clear trigger status

When TRIGCTL indicates single-shot mode, this bit is used to clear TRIGSTATUS. Writing a 1 to this bit when in multi-shot mode is unpredictable.

0: no effect

1: clears TRIGSTATUS if TRIGSTATUS is 1

Bit 5 TRIGSTATUS: trigger status

When TRIGCTL indicates single-shot mode, this indicates whether the single trigger has occurred.

0: trigger has not occurred

1: trigger has occurred

Bit 4 TRIGCTL: trigger control

0: triggers are multi-shot

1: triggers are single-shot

Bit 3 Reserved, must be kept at reset value.

Bit 2 ERRDETECT: error detection
Enable error detection on the hardware event tracing.
0: error detection disabled
1: error detection enabled.

Bit 1 COMPEN: compression enable
Enable leading zero suppression of hardware event data values in the trace stream.
0: compression disabled
1: compression enabled.

Bit 0 EN: enable hardware event tracing
0: disabled
1: enabled

STM hardware event external multiplex control register (STM_HEEXTMUXR)

Address offset: 0xD68

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.EXTMUX[7:0]
rwrwrwrwrwrwrwrw

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

Bits 7:0 EXTMUX[7:0]: signals for events selector
Selects the signals to be mapped onto the 64 hardware events that can be traced by the STM (refer to Table 554 and Table 555).

STM hardware event master number register (STM_HEMASTR)

Address offset: 0xDF4

Reset value: 0x0000 0080 (0x0000 FFFF)

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
MASTER[15:0]
rrrrrrrrrrrrrrrr
ST logo
ST logo

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

Bits 15:0 MASTER[15:0]: STPv2 master number

Indicates the STPv2 master number of hardware event trace. This number is the master number presented in STPv2.

0x80: hardware events are associated with master 0x80

Others: reserved

STM hardware event features 1 register (STM_HEFEAT1R)

Address offset: 0xDF8

Reset value: 0x3020 0035

31302928272625242322212019181716
Res.HEEXTMUXSIZE[2:0]Res.Res.Res.Res.NUMHE[8:1]
rrrrrrrrrrr
1514131211109876543210
NUMHE[0]Res.Res.Res.Res.Res.Res.Res.Res.Res.HECOMP[1:0]HEMASTRHEERRRes.HETER
rrrrrr

Bit 31 Reserved, must be kept at reset value.

Bits 30:28 HEEXTMUXSIZE[2:0]: EXTMUX bit field size

Indicates the size of the EXTMUX bit field of register STM_HEEXTMUXR.

0x3: 8-bit wide (up to 256 multiplexers)

Others: reserved

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

Bits 23:15 NUMHE[8:0]: number of hardware events supported by the STM

0x40: 64 hardware events

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

Bits 5:4 HECOMP[1:0]: data compression on hardware event tracing support

0x3: data compression support is programmable. The COMPEN bit of register STM_HEMCR is implemented.

Bit 3 HEMASTR: STMHEMASTR support

0: STMHEMASTR is read-only

Bit 2 HEERR: hardware event error detection support.

1: hardware event error detection implemented. The ERRDETECT bit of register STM_HEMCR is implemented.

Bit 1 Reserved, must be kept at reset value.

Bit 0 HETER: STM_HETER support

1: STM_HETER implemented.

STM hardware event features ID register (STM_HEIDR)

Address offset: 0xDFC

Reset value: 0x0000 0011

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.VENDSPEC[3:0]CLASSREV[3:0]CLASS[3:0]
rrrrrrrrrrrr

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

Bits 11:8 VENDSPEC[3:0] : vendor specific

Identifies any vendor specific modifications or mappings.

0: vendor specific information

Others: reserved

Bits 7:4 CLASSREV[3:0] : programmer model revision

Identifies the revision of the programmer model.

1: revision

Others: reserved

Bits 3:0 CLASS[3:0] : programmer model

Identifies the programmers model.

1: hardware event control

Others: reserved

STM stimulus port enable register (STM_SPER)

Address offset: 0xE00

Reset value: 0x0000 0000

This read/write only register is used to enable the stimulus registers to generate trace. The register defines one bit per stimulus register. Writing 1 enables the appropriate stimulus port, writing 0 disables the appropriate stimulus port. This register is used in conjunction with the Software Enable Bank Select Register.

31302928272625242322212019181716
SPE[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SPE[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Bits 31:0 SPE[31:0] : stimulus port enable

This register is used to enable the stimulus registers to generate trace. It defines one bit per stimulus register. Writing 1 enables the appropriate stimulus port, writing 0 disables the appropriate stimulus port. This register is used in conjunction with the Software Enable Bank Select Register.

0: stimulus port disabled

1: stimulus port enabled

STM stimulus port trigger enable register (STM_SPTER)

Address offset: 0xE20

Reset value: 0x0000 0000

This register is used to enable trigger generation on writes to enabled stimulus port registers.

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

Bits 31:0 SPTE[31:0]: trigger generation trigger generation bit mask

This register is a bit mask used to enable trigger generation on writes to enabled stimulus port registers. It defines one bit per stimulus port register.

0: disabled

1: enabled

STM stimulus port select configuration register (STM_SPSCR)

Address offset: 0xE60

Reset value: 0x0000 0000

This register allows a debugger to program which stimulus ports the STM_SPER and STM_SPTER registers apply to.

31302928272625242322212019181716
PORTSEL[11:0]Res.Res.Res.Res.
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PORTCTL[1:0]
rwrw

Bits 31:20 PORTSEL[11:0]: stimulus port selector

Defines which stimulus ports the STM_SPTER and/or STM_SPER registers apply to.

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

Bits 1:0 PORTCTL[1:0]: port selection control mode

Defines how the port selection is applied.

0x0: port selection not used

0x1: port selection applies only to the STM_SPTER register

0x2: reserved

0x3: port selection applies to both the STM_SPER and STM_SPTER

STM stimulus port master select configuration register (STM_SPMSCR)

Address offset: 0xE64

Reset value: 0x0000 0000

This register allows a debugger to program which masters the STM_SPSCR register applies to.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.MASTSEL[7:1]
rwrwrwrwrwrwrw
1514131211109876543210
MASTSEL[0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MASTCTL
rwrw

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

Bits 22:15 MASTSEL[7:0]:master select

This field defines which master the STM_SPSCR register applies to.

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

Bit 0 MASTCTL: master control mode

Defines how the master is applied.

0: master selection not used

1: port selection applies to the STM_SPSCR register

STM stimulus port override control register (STM_SPOVERRIDE)

Address offset: 0xE68

Reset value: 0x0000 0000

This register allows a debugger to override various features of the STM.

31302928272625242322212019181716
PORTSEL[16:1]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PORTSEL[0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OVERTSOVERTL[1:0]
rwrwrwrw

Bits 31:15 PORTSEL[16:0]: port override select

Defines which stimulus ports the override controls apply to.

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

Bit 2 OVERTS: override timestamp request

This override requests all stimulus port writes that cause trace to be traced with a timestamp (when possible). As with normal operation, this does not ensure that all packets are generated with timestamps. This field is independent from OVERCTL and PORTSEL.

0: override not enabled

1: override enabled

Bits 1:0 OVERCTL[1:0]: override control mode

Defines how port selection is applied.

0x0: override controls disabled

0x1: ports selected by PORTSEL always behave as guaranteed transactions

0x2: ports selected by PORTSEL always behave as invariant timing transactions

0x3: reserved

STM stimulus port master override control register (STM_SPMOVERRIDE)

Address offset: 0xE6C

Reset value: 0x0000 0000

This register allows a debugger to select which masters the STM_SPOVERRIDERR applies to.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.MASTSEL[7:1]
rwrwrwrwrwrwrw
1514131211109876543210
MASTSEL[0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MASTCTL
rwrw

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

Bits 22:15 MASTSEL[7:0]: master port override selection

This field defines which master ports the override controls apply to. The size of this field is defined by the number of implemented masters.

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

Bit 0 MASTCTL: master selection control mode

Defines how the master selection is applied.

0: override controls disabled. STM_SPOVERRIDERR applies equally to all masters.

1: master selection enabled. STM_SPOVERRIDERR applies to the masters selected by MASTSEL.

STM stimulus port trigger control and status register (STM_SPTRIGCSR)

Address offset: 0xE70

Reset value: 0x0000 0000

This register is used to control the STM triggers induced by STM_SPTER.

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.ATBTRIGEN_DIRATBTRIGEN_TETRIGCLEARTRIGSTATUSTRIGCTL
rwrwwrrw

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

Bit 4 ATBTRIGEN_DIR: ATB trace on write to TRIG

When set, this bit enables the STM to use the ATID value of 0x7D when a trigger event on writes to TRIG location occurs.

Bit 3 ATBTRIGEN_TE: ATB trace trigger output

When set, this bit enables the STM to use the ATID value of 0x7D when a trigger event on match using STM_SPTER occurs.

Bit 2 TRIGCLEAR: trigger status clear

When bit TRIGCTL indicates single-shot mode, TRIGCLEAR is used to clear TRIGSTATUS. Writing a 1 to this bit when in multi-shot mode is leads to unpredictable behavior.

Bit 1 TRIGSTATUS: trigger status

When bit TRIGCTL indicates single-shot mode, TRIGSTATUS indicates whether the single trigger has occurred.

Bit 0 TRIGCTL: trigger control

STM trace control and status register (STM_TCSR)

Address offset: 0xE80

Reset value: 0x0000 0004

Controls STM settings.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.BUSYTRACEID[6:0]
rrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.COMPENRes.Res.SYNCENTSENEN
rwrrwrw

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

Bit 23 BUSY: STM busy
Indicates if the STM is busy, for example because STM trace FIFO is not empty.
0: STM is not busy
1: STM is busy.

Bits 22:16 TRACEID[6:0]: ATB Trace ID

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

Bit 5 COMPEN: compression enable for stimulus ports
0: compression disabled, data transfers are transmitted at the size of the transaction
1: compression enabled, data transfers are compressed to save bandwidth

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

Bit 2 SYNCEN: STM_SYNCR implementation
STM_SYNCR is implemented; this value is RAO.
1: STM_SYNCR implemented

Bit 1 TSEN: timestamp requests enable
This bit controls if timestamp requests are ignored or taken into account.
0: timestamping disabled. Requests for timestamp generation are ignored, and stimulus port writes selecting timestamping are treated as if it were not selected.
1: timestamping enabled. If stimulus writes select timestamping, a timestamp is output according to STPv2.

Bit 0 EN: global STM enable
0: STM disabled
1: STM enabled

STM timestamp stimulus register (STM_TSSTIMR)

Address offset: 0xE84

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.FORCETS
w
ST logo
ST logo

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

Bit 0 FORCETS: force timestamp stimulus

A write to register STM_TSSTIMR with bit FORCETS as 1 requests the next stimulus port write which causes trace to be upgraded to have a timestamp. Writes with this bit as 0 are ignored.

1: force timestamp stimulus

STM timestamp frequency register (STM_TSFREQR)

Address offset: 0xE8C

Reset value: 0x0000 0000

This register is used to indicate the frequency of the timestamp counter. The unit of measurement is increments per second. When the STPv2 protocol is used, this register contains the value output in the FREQ and FREQ_TS packets. The timestamp frequency is output in the STPv2 protocol at every synchronization point when bit TSEN STM_TCSR is 1.

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

Bits 31:0 FREQ[31:0]: timestamp frequency

Indicates the frequency of the timestamp counter in Hz.

STM synchronization control register (STM_SYNCR)

Address offset: 0xE90

Reset value: 0x0000 0000

This register controls the interval between synchronization packets as a function of the number of bytes of trace generated. This register only provides a hint of the desired synchronization frequency since implementations are permitted to be inaccurate. Writing a value of 0x0000 0000 to this register disables the synchronization counter however any other implementation defined synchronization mechanism continues to operate independently (refer to register STM auxiliary control register (STM_AUXCR)).

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.MODECOUNT[8:0]Res.Res.Res.
rwrwrwrwrwrwrwrwrw

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

Bit 12 MODE: mode control

0: COUNT[8:0] defines a value N. Synchronization period is 8 x N bytes.

1: COUNT[8:4] defines a value N. Synchronization period is 2N bytes. N must be in the range of 0d12 to 0d27 inclusive; other values lead to unpredictable results.

Bits 11:3 COUNT[8:0]: number of bytes between synchronization packets

Indicates the counter value for the number of bytes between synchronization packets. Reads return the value of this register.

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

STM auxiliary control register (STM_AUXCR)

Address offset: 0xE94

Reset value: 0x0000 0000

This register is used for implementation defined STM controls.

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.QHWEVOVERRIDERes.Res.Res.Res.PRIORINVDISASYNCPPEFIFOAF
rwrwrwrw

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

Bit 7 QHWEVOVERRIDE: override control for the Q-Channels

0: no override. Q-Channel is able to accept a quiescence request when hardware event tracing is enabled.

1: override. Q-Channel denies a quiescence request when hardware event tracing is enabled.

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

Bit 2 PRIORINVDIS: AXI vs. HW flush arbitration

Controls arbitration between AXI and HW during flush.

0: priority inversion. When AXI flush is finished, HW gets priority until HW flush is done.

1: priority inversion disabled. AXI always has priority over HW.

Bit 1 ASYNCPPE: ASYNC priority

0: ASYNC priority is always lower than trace

1: ASYNC priority increases on second synchronization request

Bit 0 FIFOAF: auto-flush

0: auto-flush disabled

1: auto-flush enabled

STM features 1 register (STM_FEAT1R)

Address offset: 0xEA0

Reset value: 0x0065 87D1

This register indicates the features of the STM in conjunction with registers STM_FEAT2R and STM_FEAT3R.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.SWOEN[1:0]SYNCEN[1:0]HWTEN[1:0]TSPRESCALE[1:0]
rrrrrrrr
1514131211109876543210
TRIGCTL[1:0]TRACEBUS[3:0]SYNC[1:0]FORCETSTSFREQTS[1:0]PROT[3:0]
rrrrrrrrrrrrrrrr

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

Bits 23:22 SWOEN[1:0]: SWOEN support

Support of bit SWOEN of register STM_TCSR.

0x1: bit SWOEN of register STM_TCSR is not implemented

Bits 21:20 SYNCEN[1:0]: SYNCEN support

Support of bit SYNCEN of register STM_TCSR.

0x2: bit SYNCEN of register STM_TCSR is implemented but always reads as 1

Bits 19:18 HWTEN[1:0]: HWTEN support

Support of bit HWTEN of register STM_TCSR.

0x1: bit HWTEN of register STM_TCSR is not implemented

Bits 17:16 TSPRESCALE[1:0]: timestamp prescale support

0x1: timestamp prescale not implemented

Bits 15:14 TRIGCTL[1:0]: trigger control support

0x2: multi-shot and single-shot triggers supported. STM_TRIGCSR is implemented.

Bits 13:10 TRACEBUS[3:0]: trace bus support

0x1: CoreSight™ ATB plus ATB trigger support implemented. Field TRACEID of register STM_TCSR, and bits ATBTRIGEN_DIR and ATBTRIGEN_TE of register STM_SPTRIGCSR are implemented.

Bits 9:8 SYNC[1:0]: STM_SYNC support

0x3: STM_SYNC implemented with MODE control

Bit 7 FORCETS: STM_TSSTIMR support

1: bit FORCETS of register STM_TSSTIMR is implemented

Bit 6 TSFREQ: Timestamp frequency indication configuration

1: STM_TSFREQR is read-write

Bits 5:4 TS[1:0]: Timestamp support

0x1: absolute timestamps implemented

Bits 3:0 PROT[3:0]: Protocol

0x1: STPv2 protocol

STM features 2 register (STM_FEAT2R)

Address offset: 0xEA4

Reset value: 0x0001 14F2

This register indicates the features of the STM in conjunction with registers STM_FEAT1R and STM_FEAT3R.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SPTYPE[1:0]
rr
1514131211109876543210
DSIZE[3:0]Res.SPTRTYPE[1:0]PRIVMASK[1:0]SPOVERRIDESPCOMP[1:0]Res.SPERSPTER[1:0]
rrrrrrrrrrrrrr

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

Bits 17:16 SPTYPE[1:0]: stimulus port type support

0x1: only extended stimulus ports implemented

Bits 15:12 DSIZE[3:0]: fundamental data size

0x1: 64-bit data

Bit 11 Reserved, must be kept at reset value.

Bits 10:9 SPTRTYPE[1:0]: stimulus port transaction type support

0x2: both invariant timing and guaranteed transactions are supported

Bits 8:7 PRIVMASK[1:0]: STM_PRIVMASKR support

0x1: STM_PRIVMASKR is not implemented

Bit 6 SPOVERRIDE: STM_OVERRIDER support

1: STM_SPOVERRIDER and STM_SPMOVERRIDER are implemented

Bits 5:4 SPCOMP[1:0]: data compression on stimulus ports support

0x3: data compression support is programmable. Bit COMPEN of register STM_TCSR is implemented.

Bit 3 Reserved, must be kept at reset value.

Bit 2 SPER: STM_SPER presence

0: STM_SPER is implemented

Bits 1:0 SPTER[1:0]: STM_SPTER support

0x2: STM_SPTER is implemented

STM features 3 register (STM_FEAT3R)

Address offset: 0xEA8

Reset value: 0x0000 007F

This register indicates the features of the STM in conjunction with registers STM_FEAT1R and STM_FEAT2R.

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.NUMMAST[6:0]
rrrrrrr

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

Bits 6:0 NUMMAST[6:0]: number of stimulus ports masters implemented, minus 1
0x7F: 128 masters are implemented

STM integration test for cross-trigger outputs register (STM_ITTRIGGER)

Address offset: 0xEE8

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.ASYNCOUT_WTRIGOUTHETE_WTRIGOUTSW_WTRIGOUTSPTE_W
wwww

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

Bit 3 ASYNCOUT_W : sets the value of the ASYNCOUT output in integration modeBit 2 TRIGOUTHETE_W : sets the value of the TRIGOUTHETE output in integration modeBit 1 TRIGOUTSW_W : sets the value of the TRIGOUTSW output in integration modeBit 0 TRIGOUTSPTE_W : sets the value of the TRIGOUTSPTE output in integration mode

STM integration mode ATB data 0 register (STM_ITATBDATA0)

Address offset: 0xEEC

Reset value: 0x0000 0000

This register controls the value of the ATDATAM output in integration mode.

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.ATDATAM63_WATDATAM55_WATDATAM47_WATDATAM39_WATDATAM31_WATDATAM23_WATDATAM15_WATDATAM7_WATDATAM0_W
wwwwwwwww

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

Bit 8 ATDATAM63_W : sets the value of the ATDATAM[63] output

1: drives logic 1 on ATDATAM[63] output

0: drives logic 0 on ATDATAM[63] output

Bit 7 ATDATAM55_W : sets the value of the ATDATAM[55] output

1: drives logic 1 on ATDATAM[55] output

0: drives logic 0 on ATDATAM[55] output

Bit 6 ATDATAM47_W : sets the value of the ATDATAM[47] output

1: drives logic 1 on ATDATAM[47] output

0: drives logic 0 on ATDATAM[47] output

Bit 5 ATDATAM39_W : sets the value of the ATDATAM[39] output

1: drives logic 1 on ATDATAM[39] output

0: drives logic 0 on ATDATAM[39] output

Bit 4 ATDATAM31_W : sets the value of the ATDATAM[31] output

1: drives logic 1 on ATDATAM[31] output

0: drives logic 0 on ATDATAM[31] output

Bit 3 ATDATAM23_W : sets the value of the ATDATAM[23] output

1: drives logic 1 on ATDATAM[23] output

0: drives logic 0 on ATDATAM[23] output

Bit 2 ATDATAM15_W : sets the value of the ATDATAM[15] output

1: drives logic 1 on ATDATAM[15] output

0: drives logic 0 on ATDATAM[15] output

Bit 1 ATDATAM7_W : sets the value of the ATDATAM[7] output

1: drives logic 1 on ATDATAM[7] output

0: drives logic 0 on ATDATAM[7] output

Bit 0 ATDATAM0_W : sets the value of the ATDATAM[0] output

1: drives logic 1 on ATDATAM[0] output

0: drives logic 0 on ATDATAM[0] output

STM integration mode ATB control 2 register (STM_ITATBCTR2)

Address offset: 0xEF0

Reset value: 0x0000 0000

This register returns the value of the ATREADYM and AFVALIDM inputs in integration mode.

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.AFVALIDM_RATREADYM_R
rr

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

Bit 1 AFVALIDM_R: reads the value of the AFVALIDM input

1: pin is at logic 1

0: pin is at logic 0

Bit 0 ATREADYM_R: reads the value of the ATREADYM input

1: pin is at logic 1

0: pin is at logic 0

STM integration mode ATB identification register (STM_ITATBID)

Address offset: 0xEF4

Reset value: 0x0000 0000

This register controls the value of the ATIDM output in integration mode.

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.ATIDM_W[6:0]
wwwwwww

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

Bits 6:0 ATIDM_W[6:0]: sets the value of the ATIDM output

STM integration mode ATB control 0 register (STM_ITATBCTR0)

Address offset: 0xEF8

Reset value: 0x0000 0000

This register controls the value of the ATVALIDM, AFREADYM, and ATBYTESM outputs in integration mode.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.ATBYTESM_W[2:0]Res.Res.Res.Res.Res.Res.AFREADYM_WATVALIDM_W
wwwww

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

Bits 10:8 ATBYTESM_W[2:0]: sets the value of the ATBYTESM output

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

Bit 1 AFREADYM_W: sets the value of the AFREADYM output

Bit 0 ATVALIDM_W: sets the value of the ATVALIDM output

STM integration mode control register (STM_ITCTRL)

Address offset: 0xF00

Reset value: 0x0000 0000

This register is used to enable topology detection. Refer to CoreSight™ Architecture Specification for more information. This register enables the component to switch between functional mode and integration mode. The default behavior is functional mode. In integration mode the inputs and outputs of the STM can be directly controlled for integration testing and topology solving.

Note: When a device has been in integration mode, it might not function with the original behavior. After performing integration or topology detection, the system must be reset to ensure correct behavior of CoreSight™ and other connected system components that are affected by the integration or topology detection.

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.IME
rw

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

Bit 0 IME: component mode switch enable

Enables the component to switch between functional mode and integration mode.

1: enables integration mode

0: disables integration mode

STM claim tag set register (STM_CLAIMSET)

Address offset: 0xFA0

Reset value: 0x0000 000F

This register is used in conjunction with the Claim Tag Clear register (STM_CLAIMCLR). This register forms one half of the claim tag value. This location allows individual bits to be set (write) and returns the number of bits that can be set (read).

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.SET[3:0]
rwrwrwrw

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

Bits 3:0 SET[3:0]: claim tag bit implementation

0xF: claim tag bits are present within the claim tag field

STM claim tag clear register (STM_CLAIMCLR)

Address offset: 0xFA4

Reset value: 0x0000 0000

This register is used in conjunction with the Claim Tag Set register (STM_CLAIMSET). This register forms one half of the claim tag value. This location enables individual bits to be cleared (write) and returns the current claim tag value (read).

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.CLR[3:0]
rwrwrwrw

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

Bits 3:0 CLR[3:0]: claim tag current setting

STM lock access register (STM_LAR)

Address offset: 0xFB0

Reset value: 0x0000 0000

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

Bits 31:0 KEY[31:0]: device register write access enable

A write of 0xC5ACCE55 enables further write access to the device. An invalid write has the effect of removing write access.

0xC5ACCE55: unlocks the protection register to enable write access

STM lock status register (STM_LSR)

Address offset: 0xFB4

Reset value: 0x0000 0003

This register indicates the status of the lock control mechanism that prevents accidental writes by the code under debug. The lock mechanism does not impact accesses to the extended stimulus port registers. This register is needed even in the absence of any lock access control mechanism. Where it is present and locked, the lock mechanism blocks the write accesses to any register but the STM_LAR. The lock mechanism is only present for accesses with PADDRDBG31 signal low.

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: STM_LAR size indicator

Indicates if the STM implements the STM_LAR as 8-bit or 32-bit.

0: 32-bit

Bit 1 SLK: lock current status

0: enables write access to the STM. For read accesses to the STM_LSR when the PADDRDBG31 signal is high, this bit is always 0.

1: blocks write access to the STM. The STM ignores all write accesses to the registers when the PADDRDBG31 signal is low. Reads are permitted.

Bit 0 SLI: lock control mechanism existence

Indicates that a lock control mechanism exists for this device.

0: no lock control mechanism exists. The STM ignores writes to the STM_LAR. For read accesses to the STM_LSR when the PADDRDBG31 signal is high, this bit is always 0.

1: lock control mechanism is present. For read accesses to the STM_LSR when the PADDRDBG31 signal is low, this bit is always 1.

STM authentication status register (STM_AUTHSTATUS)

Address offset: 0xFB8

Reset value: 0x0000 00AA

This register reports the required security level and current status of the authentication interface.

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

0x2: disabled

0x3: enabled

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

0x2: disabled

0x3: enabled

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

STM device architecture register (STM_DEVARCH)

Address offset: 0xFBC

Reset value: 0x4771 0A63

This register indicates the architect and architecture of the STM. For the STM-500, the architect is Arm®, and the architecture is STMv1.1.

31302928272625242322212019181716
ARCHITECT[10:0]PRESENTREVISION[3:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
Res.ARCHID[14:0]
rrrrrrrrrrrrrrr

Bits 31:21 ARCHITECT[10:0]: component architect

Defines the architect of the component. Bits[31:28] indicate the DEP106 continuation code of the architect. Bits[27:21] indicate the JEP106 identification code of the architect. Refer to the Standard Manufacturers Identification Code for information about JEP106.

0x23B: the architect of the STM-500 is Arm®

Bit 20 PRESENT: STM_DEVARCH register presence

1: the STM_DEVARCH register is present

Bits 19:16 REVISION[3:0]: architecture revision

Returns the revision of the architecture that the ARCHID field specifies. For the STM-500, this value is 0x1, indicating the STMv1.1 architecture.

0x1: STMv1.1 architecture

Bit 15 Reserved, must be kept at reset value.

Bits 14:0 ARCHID[14:0]: architecture ID

Returns a value that identifies the architecture of the component. For the STM-500, this value is 0x0A63, indicating the STMv1 architecture.

0x0A63: STMv1 architecture

STM device configuration register (STM_DEVID)

Address offset: 0xFC8

Reset value: 0x0001 0000

This register indicates the capabilities of the CoreSight™ STM.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NUMSP[16]
r
1514131211109876543210
NUMSP[15:0]
rrrrrrrrrrrrrrrr

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

Bits 16:0 NUMSP[16:0]: number of stimulus ports implemented

0x10000: 65 536 stimulus ports are implemented

STM device type identifier register (STM_DEVTYPE)

Address offset: 0xFCC

Reset value: 0x0000 0063

This register provides a debugger with component information when the part number is not recognized. The debugger can then report this information.

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.SUB[3:0]MAJOR[3:0]
rrrrrrrr

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

Bits 7:4 SUB[3:0]: sub-classification within the major category

0x6: CoreSight™ STM. The component generates trace based on software and hardware stimulus.

Bits 3:0 MAJOR[3:0]: major classification for debug or trace component

0x3: the component is a trace source

STM peripheral ID4 register (STM_PIDR4)

Address offset: 0xFD0

Reset value: 0x0000 0004

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.

0x4: indicates that Arm® JEDEC identity code is on the 5th bank

STM peripheral ID0 register (STM_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 0063 (0x0000 00FF)

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.

0x63: CoreSight™ STM Part Number[7:0]. Eight least significant bits of the part number (0x963).

STM peripheral ID1 register (STM_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00B9

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.

0xB: least significant four bits of the JEP106 identity code.

Bits 3:0 PART_1[3:0]: bits [11:8] of the component part number

Specified by the designer of the component.

0x9: CoreSight™ STM part number[11:8]. Most significant four bits of the part number (0x963).

STM peripheral ID2 register (STM_PIDR2)

Address offset: 0xFE8

Reset value: 0x0000 001B

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.

0x1: this device is at r0p1.

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.

0x3: most significant three bits of the JEP106 identity code

STM peripheral ID3 register (STM_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

STM component ID0 register (STM_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

STM component ID1 register (STM_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]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.
0x9: indicates that the component is a 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

STM component ID2 register (STM_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
ST logo
ST logo

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

STM component ID3 register (STM_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

System trace macrocell registers map

Table 556. STM registers map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xD00STM_HEERHEE[31:0]
Reset value--------------------------------
0xD04
to
0xD1C
ReservedRes.Res.Res.Res.Res.Res.Res.Res.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
0xD20STM_HETERHETE[31:0]
Reset value--------------------------------
0xD24
to
0xD5C
ReservedRes.Res.Res.Res.Res.Res.Res.Res.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
0xD60STM_HEBSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HEBS
Reset value-
0xD64STM_HEMCRRes.Res.Res.Res.Res.Res.Res.Res.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 value0ATBTRIGENTRIGCLEARTRIGSTATUSTRIGCTL0ERRDETECTCOMPENEN

Table 556. STM registers map and reset values (continued)

RM0441column_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 19 18 17 16 1514 13 12 1 1 10 9 8 7 6 5 4 3 2 1 0
STM_HEEXTMUXR 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. EXTMUX[7:0]
Reset value- - - - - - - -
0xD6C Reserved 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. toR 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.
STM_HEMASTR 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.MASTER[15:0]
Reset value0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
S H E M A T R
H E E R R
H E T E R
SIZ H E E X T M U X E[2:0]
C O P[1:0] H E M
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.
Reset value 0 1 1 0 0 1 0 0 0 0 0 01 1 0 1 1
STM_HEIDR 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.
CLA S S R E V[3:0]
CLA S S[3:0]
V E N D S P E C[3:0]
0xE04 Reserved 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. toR 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.
R e s.
R e s.
R e s.
toR e s.
O C P R T T L[1: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.
Reset value - - - - - - - - - - - -0 0
S C M A T T L
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.
Reset value - - - - - - --0
RM0441 Rev 73539/ 3787

Table 556. STM registers map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xE68STM_SPOVERRID
ER
PORTSEL[16:0]ResResResResResResResResResResResResResResResResOVERTSOVERCTL[1:0]
Reset value-----------------------------000
0xE6CSTM_SPMOVERRI
DER
ResResResResResResResResResResMASTSEL[7:0]ResResResResResResResResResResResResResResResResMASTCTL
Reset value------------------------------00
0xE70STM_SPTRIGCSRResResResResResResResResResResResResResResResResResResResResResResResResResResResResATBTRIGEN DIRATBTRIGEN TETRIGCLEARTRIGSTATUS
Reset value---------------------------00--0
0xE74
to
0xE7C
ReservedResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value--------------------------------
0xE80STM_TCSRResResResResResResResResBUSYTRACEID[6:0]ResResResResResResResResResResResCOMPENResResSYNCENTSENEN
Reset value--------0----------------0--1000
0xE84STM_TSSTIMRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResFORCETS-
Reset value--------------------------------
0xE88ReservedResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value--------------------------------
0xE8CSTM_TSFREQRFREQ[31:0]
Reset value00000000000000000000000000000000
0xE90STM_SYNCRResResResResResResResResResResResResResResResResResResResMODECOUNT[8:0]ResResResRes
Reset value-------------------0000000000---
0xE94STM_AUXCRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResPRIORINVDISASYNCPFIFOAF
Reset value-----------------------------000
0xE98
to
0xE9C
ReservedResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value--------------------------------

Table 556. STM registers map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xEA0STM_FEAT1RResResResResResResResResSWOEN[1:0]SYNCEN[1:0]HWTEN[1:0]TSPRESCALE[1:0]TRIGCTL[1:0]TRACEBUS[3:0]SYNC[1:0]FORCETSTSFREQTS[1:0]PROT[3:0]
Reset value011001011000011111010001
0xEA4STM_FEAT2RResResResResResResResResResResResResResResSPTYPE[1:0]DSIZE[3:0]Res.SPTRTYPE[1:0]PRIVMASK[1:0]SPOVERRIDESPCOMP[1:0]Res.SPERSPTER[1:0]
Reset value0100011001111010
0xEA8STM_FEAT3RResResResResResResResResResResResResResResResResResResResResResResResNUMMAST[6:0]
Reset value111111111
0xEAC
to
0xEE4
ReservedResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value
0xEE8STM_ITTRIGGERResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value
0xEECSTM_ITATBDATA0ResResResResResResResResResResResResResResResResResResResResResResResATDATAM63_WATDATAM55_WATDATAM47_WATDATAM39_WATDATAM31_WATDATAM23_WATDATAM15_WATDATAM7_WATDATAM0_W
Reset value---------
0xEF0STM_ITATBCTR2ResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value
0xEF4STM_ITATBIDResResResResResResResResResResResResResResResResResResResResResResResATIDM_W[6:0]
Reset value---------
0xEF8STM_ITATBCTR0ResResResResResResResResResResResResResResResResResResResResResResATBYTESM_W[2:0]ResResResResResResResRes
Reset value----------

Table 556. STM registers map and reset values (continued)

column_1Debug support (DBG)column_3column_4RM0441
OffsetRegister name reset value31 3 0 2 9 2 8 2 7 2 6 2 5 2 4 2 3 2 2 21 2 0 19 18 17 161514 13 12 1 1 10 9 8 7 6 5 4 3 2 1 0
0xEFCReservedR 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.
0xF00Reset value STM_ITCTRLR 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. IM E
Reset valueR 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.
0xF04 0xF04 to 0xF9CReserved Reserved Reset value
STM_CLAIMSETR 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.
0xFA0S E T[3:0] CLR[3:0]
0xFA4STM_CLAIMCLRR 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.
0xFA8 to 0xFACReset value Reserved Reset valueR 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.
0xFB0STM_LAR Reset value Reset valueKEY[31: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 0 0
0xFB4STM_LSRR 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. N T T S L K S LI
Reset value STM_AUTHSTATUN S NID[1:0] SID[1:0] N S NID[1:0] SID[1:0]
0xFB8SR 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.
Reset value1 - 1 - 1 - 1 -
STM_DEVARCHARCHITECT[10:0]ARCHID[14:0]
S P R E E N T
VISIO R E N[3:0]
0xFBCR e s.
Reset value0 1 0 0 0 1 1 1 0 1 1 1 0 0 0 10 0 0 1 0 1 0 0 1 1 0 0 0 1 1
0xFC0 to 0xFC4Reserved Reset valueR 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.
0xFC8STM_DEVIDR 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.NUMSP[16:0]
0xFCCReset value STM_DEVTYPER 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. SUB[3:0] MAJOR[3:0]
0xFD0Reset value STM_PIDR4R 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]
ST logo
ST logo

Table 556. STM registers map and reset values (continued)

Ethernet (ETH): gigabit media access control (GMAC) with DMA controllercolumn_2RM0441
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
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.
STM_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]
C JE D E
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 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]
STM_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
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.
CLA S S[3:0]
STM_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]
STM_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]
RM0441 Rev 73543/ 3787

63.10.9 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 or Standby), the clock to the processor, the subsystem clocks or, in the case of Standby mode, the core power

ST logo
ST logo

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 DBGSTBY, DBGSTOP and DBGSLEEP bits in the DBGMCU_CR register. These bits 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 DBGSTBY 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 one or more processors are 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 one or both processors enter debug state. The clocks remain stopped until the processor is restarted.

The following peripherals support this feature:

There is a pair of freeze registers for each peripheral bus (APB), to control the peripherals on that bus. One register of each pair controls whether the peripheral is sensitive to the Cortex®-A7 debug state, the other to the Cortex®-M4. It is recommended to use the register that corresponds to the processor responsible for rearming the peripheral timeout.

The Cortex®-M4 debug state corresponds to a high level on the M4 core HALTED signal (HALTED remains asserted while the core is in debug). That of the Cortex®-A7 is the DBGACK signal (the core asserts DBGACK to indicate that the system has entered debug state). Hence if the CA7 core enters debug and the corresponding bit in the Peripheral Freeze register is set, then the peripheral clock will be frozen.

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 CDBGRSTREQ/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 both processors at base address 0x50081000

Note: The DBGMCU is not a standard CoreSight™ component and so does not appear in the system ROM table.

DBGMCU identity code register (DBGMCU_IDC)

Address offset: 0x000

Reset value: 0xXXXX X500

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
0x500: STM32MP15xx

DBGMCU configuration register (DBGMCU_CR)

Address offset: 0x004

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.TRGOENRes.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.Res.DBGSTBYDBGSTOPDBGSLEEP
rwrwrw

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

Bit 28 TRGOEN: external trigger output enable
This bit controls the direction of the DBTRGIO bi-directional trigger pin.
0: input. DBTRGIO is connected to DBTRGI
1: output. DBTRGIO is connected to DBTRGO

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

ST logo
ST logo

Bit 2 DBGSTBY: Standby mode debug enable

0: normal operation. All clocks are disabled and the \(V_{DDCORE}\) domain powered down automatically in Standby mode.

1: automatic clock stop/power down disabled. All active clocks and oscillators continue to run during Standby mode, and the \(V_{DDCORE}\) domain supply is maintained, allowing full debug capability. On exit from Standby mode, a system reset is performed.

Bit 1 DBGSTOP: Stop mode debug enable

0: normal operation. In Stop or CStop mode, clocks may be stopped.

1: automatic clock stop disabled. All active clocks and oscillators continue to run during Stop, LP-Stop or CStop mode, allowing full debug capability. On exit from low-power mode, the clock settings are set to the normal low-power mode exit state.

Bit 0 DBGSLEEP: Sleep mode debug enable

0: normal operation. Processor clock is stopped automatically in CSleep mode.

1: automatic clock stop disabled. Processor clock continues to run, allowing full debug capability.

Note: this bit only affects the Cortex®-M4, the Cortex®-A7 debug clock continues to run even when the core clocks are stopped (PxSTOP mode).

DBGMCU APB4 peripheral freeze register MPU (DBGMCU_APB4FZ1)

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

0: normal operation. IWDG2 continues to operate while Cortex®-A7 is in debug mode.

1: stop in debug. IWDG2 is frozen while the Cortex®-A7 core is in debug mode. No accesses are allowed on its APB interface.

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

DBGMCU APB1 peripheral freeze register MPU (DBGMCU_APB1FZ1)

Address offset: 0x034

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.I2C5I2C3I2C2I2C1Res.Res.
rwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.WWDG1LPTIM1TIM14TIM13TIM12TIM7TIM6TIM5TIM4TIM3TIM2
rwrwrwrwrwrwrwrwrwrwrw

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

Bit 21 I2C5: I2C5 SMBUS timeout stop in debug

Bit 20 I2C3: I2C3 SMBUS timeout stop in debug

Bit 19 I2C2: I2C2 SMBUS timeout stop in debug

Bit 18 I2C1: I2C1 SMBUS timeout stop in debug

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

Bit 10 WWDG1: WWDG1 stop in debug

Bit 9 LPTIM1: LPTIM1 stop in debug

Bit 8 TIM14: TIM14 stop in debug

Bit 7 TIM13: TIM13 stop in debug

Bit 6 TIM12: TIM12 stop in debug

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 APB1 peripheral freeze register MCU (DBGMCU_APB1FZ2)

Address offset: 0x038

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.I2C5I2C3I2C2I2C1Res.Res.
rwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.WWDG1LPTIM1TIM14TIM13TIM12TIM7TIM6TIM5TIM4TIM3TIM2
rwrwrwrwrwrwrwrwrwrwrw

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

Bit 21 I2C5: I2C5 SMBUS timeout stop in debug

Bit 20 I2C3: I2C3 SMBUS timeout stop in debug

Bit 19 I2C2: I2C2 SMBUS timeout stop in debug

Bit 18 I2C1: I2C1 SMBUS timeout stop in debug

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

Bit 10 WWDG1: WWDG1 stop in debug

Bit 9 LPTIM1: LPTIM1 stop in debug

Bit 8 TIM14: TIM14 stop in debug

Bit 7 TIM13: TIM13 stop in debug

Bit 6 TIM12: TIM12 stop in debug

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 MPU (DBGMCU_APB2FZ1)

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
Res.Res.Res.Res.Res.Res.Res.TIM17TIM16TIM15Res.Res.Res.Res.TIM8TIM1
rwrwrwrwrw

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

Bit 8 TIM17: TIM17 stop in debug

Bit 7 TIM16: TIM16 stop in debug

Bit 6 TIM15: TIM15 stop in debug

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

Bit 1 TIM8: TIM8 stop in debug

Bit 0 TIM1: TIM1 stop in debug

DBGMCU APB2 peripheral freeze register MCU (DBGMCU_APB2FZ2)

Address offset: 0x040

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.TIM17TIM16TIM15Res.Res.Res.Res.TIM8TIM1
rwrwrwrwrw

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

Bit 8 TIM17: TIM17 stop in debug

Bit 7 TIM16: TIM16 stop in debug

Bit 6 TIM15: TIM15 stop in debug

Bits 5: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 MPU (DBGMCU_APB3FZ1)

Address offset: 0x044

Reset value: 0x0000 0000

Bit 31Bit 30Bit 29Bit 28ReservedBit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.LPTIM5 LPTIM4 LPTIM3 LPTIM2Res.
rwrwrwrw
Bit 4LPTIM5: LPTIM5 stop in debug
0: normal operation. LPTIM5continues to operate while Cortex®-A7 is in debug mode.
Bit 3LPTIM4: LPTIM4 stop in debug
0: normal operation. LPTIM4continues to operate while Cortex®-A7 is in debug mode.
Bit 2LPTIM3: LPTIM3 stop in debug
0: normal operation. LPTIM3continues to operate while Cortex®-A7 is in debug mode.
Bit 1LPTIM2: LPTIM2 stop in debug
0: normal operation. LPTIM2continues to operate while Cortex®-A7 is in debug mode.
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.LPTIM5 LPTIM4 LPTIM3 LPTIM2Res.
rwrwrwrw
RM0441 Rev 73551/3787

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 APB3 peripheral freeze register MCU (DBGMCU_APB3FZ2)

Address offset: 0x048

Reset value: 0x0000 0000

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 MPU (DBGMCU_APB5FZ1)

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.I2C6Res.Res.Res.Res.RTCIWDG1I2C4Res.Res.
rwrwrwrw

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

Bit 9 I2C6: I2C6 stop in debug

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

Bit 4 RTC: RTC stop in debug

Bit 3 IWDG1: independent watchdog 1 stop in debug

Bit 2 I2C4: I2C4 stop in debug

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

DBGMCU APB5 peripheral freeze register MCU (DBGMCU_APB5FZ2)

Address offset: 0x050

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.I2C6Res.Res.Res.Res.RTCRes.I2C4Res.Res.
rwrwrw

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

Bit 9 I2C6 : I2C6 stop in debug0: normal operation. I2C6 continues to operate while Cortex ® -M4 is in debug mode.1: stop in debug. I2C6 is frozen while Cortex ® -M4 is in debug mode.

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

Bit 4 RTC : RTC stop in debug0: normal operation. RTC continues to operate while Cortex ® -M4 is in debug mode.1: stop in debug. RTC is frozen while Cortex ® -M4 is in debug mode.

Bit 3 Reserved, must be kept at reset value.

Bit 2 I2C4 : I2C4 stop in debug0: normal operation. I2C4 continues to operate while Cortex ® -M4 is in debug mode.1: stop in debug. I2C4 is frozen while Cortex ® -M4 is in debug mode.

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

Microprocessor controller debug unit registers map

Table 557. DBGMCU registers map and reset values
OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000DBGMCU_IDCREV_ID[15:0]Res.Res.Res.Res.DEV_ID[11:0]
Reset valuexxxxxxxxxxxxxxx0101000000000
0x004DBGMCU_CRRes.Res.Res.TRGOENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBGSTBYDBGSTOPDBGSLEEP
Reset value00000
0x008
to
0x028
ReservedRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
0x02CDBGMCU_APB4FZ1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IWDG2Res.Res.
Reset value0
0x030ReservedRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

Table 557. DBGMCU registers map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x034DBGMCU_APB1FZ1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.I2C5I2C3I2C2I2C1Res.Res.Res.Res.Res.Res.Res.WWDG1LPTIM1TIM14TIM13TIM12TIM7TIM6TIM5TIM4TIM3TIM2
Reset value00000000000000
0x038DBGMCU_APB1FZ2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.I2C5I2C3I2C2I2C1Res.Res.Res.Res.Res.Res.Res.WWDG1LPTIM1TIM14TIM13TIM12TIM7TIM6TIM5TIM4TIM3TIM2
Reset value00000000000000
0x03CDBGMCU_APB2FZ1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TIM17TIM16TIM15Res.Res.Res.Res.TIM8TIM1
Reset value00000
0x040DBGMCU_APB2FZ2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TIM17TIM16TIM15Res.Res.Res.Res.TIM8TIM1
Reset value00000
0x044DBGMCU_APB3FZ1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LPTIM5LPTIM4LPTIM3LPTIM2Res.
Reset value0000
0x048DBGMCU_APB3FZ2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LPTIM5LPTIM4LPTIM3LPTIM2Res.
Reset value0000
0x04CDBGMCU_APB5FZ1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.I2C6Res.Res.Res.Res.RTCIWDG1I2C4Res.Res.
Reset value0000
0x050DBGMCU_APB5FZ2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.I2C6Res.Res.Res.Res.RTCRes.I2C4Res.Res.
Reset value000
0x054-0xFFCReservedRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

63.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 both Cortex®-A7 and Cortex®-M4 via the system interconnect.

63.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 [9].

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 WRP

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

Bit 15 DEVIDIMP: Debug Device ID register (DBGDEVID) implemented.

1: Implemented

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
ST logo
ST logo

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

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
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bit 30 RXFULL: DBGDTRRX register full.

Bit 29 TXFULL: DBGDTRTX register full.

Bit 28 Reserved, must be kept at reset value.

Bit 27 RXFULL_L: Latched RXfull.

Bit 26 TXFULL_L: Latched TXfull.

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.

Bit 3 CSPA: Clear Sticky Pipeline Advance bit.

Bit 2 CSE: Clear Sticky Exception bits..

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.

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.

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.CDRST
AT
Res.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]
rrrrrrrrrrrrrrrr
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.

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.

Bit 30 H: Sampled Hyp mode. Indicates whether the last PC sample read from DBG_PCSR was associated with 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
ST logo
ST logo

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.

0: Secure and Non-secure state

1: Non-secure state only

2: Secure state only

3: Hyp mode only (with HMC=1 and PMC = 0)

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.
0: Breakpoint does not match in Hyp mode
1: Breakpoint can match in Hyp mode

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:
The breakpoint type field being programmed for instruction address match or mismatch.
The instruction set state of the processor, indicated by the CPSR.J and CPSR.T bits.
This field must be programmed to 0xF if the DBG_BVR.BT is programmed for Linked or Unlinked Context ID match.

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.
0: PL0, Supervisor and System modes only
1: PL1 and PL2 modes only
2: PL0 mode only
3: All modes

Bit 0 E: Breakpoint Enable.

0: Breakpoint disabled
1: Breakpoint enabled

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.

0: Secure and Non-secure state

1: Non-secure state only

2: Secure state only

3: Hyp mode only (with HMC=1 and PAC = 0)

Bit 13 HMC: Hyp Mode Control.

This field controls whether the watchpoint matches in Hyp mode.

0: Watchpoint does not match in Hyp mode

1: Watchpoint can match 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:

00000001: Watch byte 0

00000011: Watch bytes 1 and 0

00000010: Watch byte 1

00000111: Watch bytes 2, 1 and 0

11110000: Watch bytes 7,6,5 and 4

etc.

Bits 4:3 LSC[1:0]: Load/store access control.

This field enables watchpoint matching conditional on the type of access being made.

0: Reserved

1: Match on any Load, Load-Exclusive or Swap

2: Match on any Store, Store-Exclusive, or Swap

3: Match on either type of access

Bits 2:1 PAC[1:0]: Privileged Access Control.

This field enables watchpoint matching conditional on the mode of the processor.

0: PL0, Supervisor and System modes only

1: PL1 and PL2 modes only

2: PL0 mode only

3: All modes

Bit 0 E: Watchpoint Enable.

0: Watchpoint disabled

1: Watchpoint enabled

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_OSLSR)

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.

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

ST logo
ST logo

DBG device power-down and reset control register (DBG_PRCR)

Address offset: 0x310

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.CORE
PURQ
HCWRCWRRCORE
NPDR
Q
rwrwrwrw

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.DLKOSLKHALTE
D
SRRSPDPU
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

Bits 31:24 IMPLEMENTER[7:0]: Implementer code

0x41: Arm® Limited

Bits 23:20 VARIANT[3:0]: Variant (major revision number)

0x0: r0pn

Bits 19:16 ARCH[3:0]: Architecture
0xF: Arm® v7

Bits 15:4 PART[11:0]: Primary part number
0xC07: Cortex-A7 MPCore

Bits 3:0 REVISION[3:0]: Revision (minor revision number)
0x5: rnp5

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

Bits 31:29 FORMAT[2:0]: CTR format
0x4: Arm®v7 format

Bit 28 Reserved, must be kept at reset value.

Bits 27:24 CWG[3:0]: Cache write-back granule
Number of words of the maximum size of memory that can be overwritten as a result of the eviction of a cache entry that has had a memory location in it modified.
0x4: 16 words

Bits 23:20 ERG[3:0]: Exclusives reservation granule.
Number of words of the maximum size of the reservation granule that has been implemented for the Load-Exclusive and Store-Exclusive instructions.
0x4: 16 words

Bits 19:16 DMINLINE[3:0]: Minimum data cache line.
Number of words in the smallest cache line of all the data and unified caches that the processor controls.
0x4: 16 words

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.

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

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 access

Bits 15:12 CTMOD[3:0]: Coprocessor trace model

0: Processor does not support Arm® trace architecture, with CP14 access

Bits 11:8 MMDBGMOD[3:0]: Memory mapped debug model.

5: Processor supports v7.1 debug architecture, with memory mapped access

Bits 7:4 CSDBGMOD[3:0]: Coprocessor secure debug model.

1: Processor supports v7.1 debug architecture, with CP14 access

Bits 3:0 CDBGMOD[3:0]: Coprocessor debug model.

1: Processor supports v7.1 debug 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

Bits 31:28 INNERSH[3:0]: Innermost shareability.

1: Processor implements hardware coherency support

Bits 27:24 FCSE[3:0]: Fast context switch extension.

0: Processor does not support FCSE

Bits 23:20 AUXREGS[3:0]: Auxiliary registers.

1: Processor supports the auxiliary control register only

Bits 19:16 TCM[3:0]: TCM and associated DMA.

0: Processor does not support TCM

Bits 15:12 SHLVLS[3:0]: Shareability levels

1: Processor implements two levels of shareability

Bits 11:8 OUTERSH[3:0]: Outermost shareability

1: Processor supports hardware coherency

Bits 7:4 PMSA[3:0]: Protected memory system architecture.

1: Processor does not support PMSA

Bits 3:0 VMSA[3:0]: Virtual memory system architecture.

1: Processor supports: VMSAv7 with support for remapping and the access flag; Privileged execute never (PXN) within the first level descriptors; 64-bit address translation descriptors

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)

Bits 19:16 UNIFTLB[3:0]: Unified TLB maintenance operations.
4: Processor supports: Invalidate all entries in TLB; Invalidate TLB entry by MVA; Invalidate TLB entries by ASID match; Invalidate TLB entries by MVA all ASID; Invalidate unified hyp TLB entry by MVA; Invalidate entire non-secure non-hyp unified TLB; Invalidate entire hyp unified TLB

Bits 15:12 HVDTLB[3:0]: Harvard TLB maintenance operations.
0: Not supported

Bits 11:8 L1HRANGE[3:0]: L1 Harvard cache maintenance operation range
0: Not supported

Bits 7:4 L1HBGFTCH[3:0]: L1 Harvard cache background prefetch operations
0: Not supported

Bits 3:0 L1HFGFTCH[3:0]: L1 Harvard cache foreground prefetch operations

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]BPMMAINT[3:0]CMAINTSW[3:0]CMAINTMVA[3:0]
rrrrrrrrrrrrrrrr

Bits 31:28 SUPERSECT[3:0]: Supersection support.

0: Processor supports supersections

Bits 27:24 CMEMSIZE[3:0]: Cache physical memory size.

2: Caches support 40-bit memory address

Bits 23:20 COHWALK[3:0]: Coherent walk.

1: Updates to the translation tables do not require a clean to the point of unification to ensure visibility by subsequent translation table walks.

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

Bits 15:12 MAINTBCST[3:0]: Maintenance broadcast

2: Cache, TLB and branch predictor operations affect structures according to shareability and defined behavior of instructions.

Bits 11:8 BPMMAINT[3:0]: Branch predictor maintenance.

2: Processor supports: Invalidate entire branch predictor array; Invalidate branch predictor by MVA.

Bits 7:4 CMAINTSW[3:0]: Cache maintenance by set/way.

1: Processor supports: Invalidate data cache by set/way; Clean data cache by set/way; Clean and invalidate data cache by set/way.

Bits 3:0 CMAINTMVA[3:0]: Cache maintenance by MVA

1: Processor supports: Invalidate data cache by MVA; Clean data cache by MVA; Clean and invalidate data cache by MVA; Invalidate instruction cache by MVA; Invalidate all instruction cache entries.

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

Bits 31:28 JAZINST[3:0]: Jazelle extension instructions.

1: Processor supports: BXJ instruction, and the J bit in the PSR

Bits 27:24 INTWKINST[3:0]: Interworking instructions.

3: Processor supports: BX instruction, and the T bit in the PSR; BLX instruction, and PC loads have BX-like behavior; Data-processing instructions in the Arm® instruction set with the PC as the destination and the S bit cleared to 0, have BX-like behavior

Bits 23:20 IMMINST[3:0]: Immediate instructions.

1: Processor supports: MOVT instruction; MOV instruction encodings with zero-extended 16-bit immediates; Thumb ADD and SUB instruction encodings with zero-extended 12-bit immediates, and other ADD, ADR, and SUB encodings cross-referenced by the pseudocode for those encodings.

Bits 19:16 IFTHENINST[3:0]: Thumb If-then instructions.

1: Processor supports the IT instructions, and the IT bits in the PSRs

ST logo
ST logo

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
ST logo
ST logo

DBG processor instruction set attribute 3 register (DBG_ISAR3)

Address offset: 0xD4C

Reset value: 0x1111 2131

31302928272625242322212019181716
TEEXTINST[3:0]TRNOPIINST[3:0]THCPYINST[3:0]TABBRINST[3:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
SYNPRIINST[3:0]SVCINST[3:0]SIMDINST[3:0]SATINST[3:0]
rrrrrrrrrrrrrrrr

DBG processor instruction set attribute 4 register (DBG_ISAR4)

Address offset: 0xD50

Reset value: 0x1001 1142

ST logo
ST logo
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:.

Bits 27:24 PSRMINST[3:0]: M profile instructions to modify the PSRs.

Bits 23:20 SPINSFRAC[3:0]: Synchronisation primitive instructions.

Bits 19:16 BARRINST[3:0]: Barrier instructions.

Bits 15:12 SMCINST[3:0]: SMC instructions.

Bits 11:8 WRBKINST[3:0]: Write-back addressing modes.

Bits 7:4 WSHFTINST[3:0]: Instructions with shifts.

Bits 3:0 UNPRIVINST[3:0]: Unprivileged instructions.

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
ST logo
ST logo

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

Bits 7:0 SET[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

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

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
ST logo
ST logo

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.

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

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
ST logo
ST logo

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

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.

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 code
0x4: 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
ST logo
ST logo

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 558. 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]DEVIDIMPNSUHDIMPPCSRIMPSEIMPRes.Res.Res.Res.VARIANT[3:0]REVISION[3:0]
Reset value0011010100010101111100000101
0x018DBG_WFARADDRESS[31:0]
Reset value0000000000000000000000000000000
0x01CDBG_VCRNSFNSIRes.NSDNSPNSCNSURes.NSHFNSHINSHENSHDNSHPNSHCNSHURes.MFMIRes.MDMPMSRes.Res.SFSIRes.SDSPSSSUR
Reset value0000000000000000000000000
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.OSUICE
Reset value0
0x080DBG_DTRRXDATA[31:0]
Reset value00000000000000000000000000000000
0x084DBG_ITRINSTRUCTION[31:0]
Reset value00000000000000000000000000000000
Table 558. Debug unit register map and reset values (continued)
OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x088DBG_DSCRRes.RXFULLTXFULLRes.RXFULL_LTXFULL_LPIPEADVINSTRCOMPL_LRes.Res.EXTDCMODE[1:0]ADADISCARDNSSPNIDISSPIDDISMDBGENHDBGENITRENUDCCDISINTDISDBGACKFSUND_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
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 value000000000000000000
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 value000000000000000000
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 value000000000000000000

Table 558. Debug unit register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
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.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.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.Res.PMC
[1:0]
E
Reset value00000000000000000
0x180DBGWVR0ADDRESS[31:0]Res.Res.
Reset value00000000000000000000000000000000
0x184DBGWVR1ADDRESS[31:0]Res.Res.
Reset value00000000000000000000000000000000
0x188DBGWVR2ADDRESS[31:0]Res.Res.
Reset value00000000000000000000000000000000
0x18CDBGWVR3ADDRESS[31:0]Res.Res.
Reset value00000000000000000000000000000000
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 value0000000000000000000000
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 value0000000000000000000000
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 value0000000000000000000000
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 value00000000000000000000000000000000
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 value0000000000000000000000000000000
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]NTTOSLK
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.COREPURQHCWRCWRR
Reset value0000000000000000000000000000000

Table 558. Debug unit register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
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 value0000000
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.Res.IMINLINE[3:0]
Reset value10001000100010000011
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.MTRes.Res.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]BPMMAINT[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
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 value0001001100010001001000100010001
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 value00100001001000110010000010000001
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 value0001000100010001001000100110001

Table 558. Debug unit register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
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.Res.SET[7:0]
Reset value00000000
0xFA4DBG_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[7:0]
Reset value00000000
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.NTTSLKSLI
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.SNISNESISENSNINSNENSINSE
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.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.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.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
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

Table 558. Debug unit register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
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 [9].

63.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 [9].

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 [9].

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.

0: Count events when executing at PL1

1: Do not count events when executing at PL1

Bit 30 U: Unprivileged execution filtering.

0: Count events when executing at PL0

1: Do not count events when executing at PL0

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:

P=NSK: In Non-secure state, count events when executing at PL1

P!=NSK: In Non-secure state, do not count events when executing at PL1

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:

U=NSU: In Non-secure state, count events when executing at PL0

U!=NSU: In Non-secure state, do not count events when executing at PL0

Bit 27 NSH: Non-secure PL2 enable.

0: In Non-secure state, do not count events when executing at PL2

1: In Non-secure state, count events when executing at PL2

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.

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: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

Bit 31 C: Cycle counter enable.

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

Bit 3 P3: Event counter 3 enable.

Bit 2 P2: Event counter 2 enable.

Bit 1 P1: Event counter 1 enable.
0: disabled (read), no effect (write)
1: enabled (read), enable event counter (write)

Bit 0 P0: Event counter 0 enable.
0: disabled (read), no effect (write)
1: enabled (read), enable event counter (write)

PMU count enable clear register (PM_CNTENCLR)

Address offset: 0xC20

Reset value: 0XXXXX XXXX

Disables the cycle counter and event counters, PMN0..3.

Bit 31Bit 30Bit 29Bit 28ReservedBit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
31302928272625242322212019181716
C rwRes.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
rwrwrwrw
Bit 31 C: Cycle counter disable.
Bit 3 P3: Event counter 3 disable.
Bit 2 P2: Event counter 2 disable.
Bit 1 P1: Event counter 1 disable.
Bit 0 P0: Event counter 0 disable.
RM0441 Rev 73601/3787

Bit 31 C: Cycle counter disable.
0: disabled (read), no effect (write)
1: enabled (read), disable cycle counter (write)

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

Bit 3 P3: Event counter 3 disable.
0: disabled (read), no effect (write)
1: enabled (read), disable event counter (write)

Bit 2 P2: Event counter 2 disable.
0: disabled (read), no effect (write)
1: enabled (read), disable event counter (write)

Bit 1 P1: Event counter 1 disable.
0: disabled (read), no effect (write)
1: enabled (read), disable event counter (write)

Bit 0 P0: Event counter 0 disable.
0: disabled (read), no effect (write)
1: enabled (read), disable event counter (write)

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.

Bit 31Bit 30Bit 29Bit 28ReservedBit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
31302928272625242322212019181716
C rwRes.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
rwrwrwrw
Bit 31 C: Cycle counter overflow.
Bit 3 P3: Event counter 3 overflow.
Bit 2 P2: Event counter 2 overflow.
Bit 1 P1: Event counter 1 overflow.
Bit 0 P0: Event counter 0 overflow.
RM0441 Rev 73603/3787

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
ST logo
ST logo

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

PMU lock access register (PM_LAR)

Address offset: 0xFB0
Reset value: 0XXXXX XXXX

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

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

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 559. 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 559. 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_CNTENSETCResResResResResResResResResResResResResResResResResResResResResResResResResResResP3P2P1P0
Reset value
0xC20PM_CNTENCLRCResResResResResResResResResResResResResResResResResResResResResResResResResResResP3P2P1P0
Reset value
0xC40PM_INTENSETCResResResResResResResResResResResResResResResResResResResResResResResResResResResP3P2P1P0
Reset value
0xC60PM_INTENCLRCResResResResResResResResResResResResResResResResResResResResResResResResResResResP3P2P1P0
Reset value
0xC80PM_OVSRCResResResResResResResResResResResResResResResResResResResResResResResResResResResP3P2P1P0
Reset value
0xCA0PM_SWINCResResResResResResResResResResResResResResResResResResResResResResResResResResResResP3P2P1P0
Reset value
0xE00PM_CFGRResResResResResResResResResResResResUENResResEXCCDCCSIZE[5:0]N[7:0]
Reset value101101111100000100
0xE04PM_CRIMP[7:0]IDCODE[7:0]N[4:0]ResResResResResDPXDCPE
Reset value0100000100000011111011000100
0xE08PM_USERENRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResEN
Reset value
0xE20PM_CEID0EVENTID[31:0]
Reset value00111111

Table 559. Performance monitoring unit registers map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFB0PM_LARKEY[31:0]
Reset valuexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
0xFB4PM_LSRResResResResResResResResResResResResResResResResResResResResResResResResResResResResNTTSLKSLI
Reset value0111
0xFB8PM_AUTHSTATResResResResResResResResResResResResResResResResResResResResResResResResSNISNESISENSNINSNENSINSE
Reset value10001000
0xFCCPM_DEVTYPEResResResResResResResResResResResResResResResResResResResResResResResResSUBTYPE [3:0]MAJORTYP E[3:0]
Reset value00010110
0xFD0PM_PIDR4ResResResResResResResResResResResResResResResResResResResResResResResResSIZE[3:0]JEP106CO N[3:0]
Reset value00000100
0xFD4PM_PIDR5ResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value
0xFD8PM_PIDR6ResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value
0xFDCPM_PIDR7ResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value
0xFE0PM_PIDR0ResResResResResResResResResResResResResResResResResResResResResResResResPARTNUM [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 559. Performance monitoring unit registers map and reset values (continued)
OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
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

63.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 [6].

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 [6].

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

ETM configuration code register (ETM_CCR)

Address offset: 0x004

Reset value: 0x8D29 4024

31302928272625242322212019181716
IDREGRes.Res.Res.SWAC
C
START
STOP
CONXTIDCMP
[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]
rrrrrrrrrrrrrrr

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

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.

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 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

Bit 31Bit 30Bit 29Bit 28ReservedBit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
313029282726252423222120191817 NOFTC16
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HCOM P rRes.
1514131211109876543210
Res.SUPPROC[2:0]PMPSMAXPSFF
SUPPSUPP[3]SUPPRes.Res.Res.Res.Res.MAXPS[2:0]
rrrrrrrrrr
Bit 17 NOFTCHCOMP: No fetch comparisons
Bits 14:12SUPPROC[2:0]: Number of supported processors
Bit 11 PMSUPP: Port mode support
Bit 10 PSSUPP: Port size support
RM0441 Rev 73623/3787

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 TSSSEN: Trace start/stop trace enable control

Bit 24 INCEXCCTL: Trace start/stop trace enable control

Bits 23:8 INCEXCMMDSEL[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]
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 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]CTXTIDCOMP
[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

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.

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 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

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.

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-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.

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.

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.

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 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.

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 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.

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.

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

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.

Bit 1 SWPTO: SWP or SWPB instruction order

Identifies the order for a SWP or SWPB instruction.

0: The Load transfer is traced before the Store transfer

Bit 0 RFETO: RFE instruction order

Identifies the order for a RFE instruction.

0: The PC transfer is traced before the CPSR transfer

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

Bits 31:0 KEYVALUE[31:0]: ETM register lock access

0xC5ACCE55: Disable access

Other values: Enable access

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.

ST logo
ST logo

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

ST logo
ST logo
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

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 560. ETM registers map and reset values
OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000ETM_CRRes.VMIDTRCENRes.TSENPROCSEL[2:0]Res.Res.Res.PORTSIZE[3]DATAONLYFILTERCPRTSUPPDATAPORTMODE[1:0]CONTXTIDSIZE[1:0]PORTMODE[2]CYCLEACCETMPORTSELETMPROGDBGRQCTLBRANCHOUTPUTRes.PORTSIZE[2:0]DATAACC[1:0]MONITORCPRTETMPDN
Reset value00000000000000000000010001100001
0x004ETM_CCRIDREGRes.Res.Res.SWACCSTARTSTOPCONTXTIDCMP[1:0]FIFOFULLRes.EXTOUTPUTS[1:0]EXTINPUTS[2:0]Res.SEQUENCERCOUNTERS[2:0]MMAPDECS[4:0]DATACOMPS[3:0]ADCOMPPRS[3:0]
Reset value100011010010100101000000100100
0x008ETM_TRIGGERRes.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]Res.PMSUPPPSSUPPMAXPS[3]FFSUPPRes.Res.Res.Res.MAXPS[2:0]
Reset value00000000000000100000011000000110
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.FCN
[2:0]
RESOURCEB[6:0]RESOURCEA[6:0]
Reset value000000000000000000
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

Table 560. 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]RESOURCEB[6:0]RESOURCEA[6: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]CTXTIDCOMP[1:0]EXACTMATCHDCOMP[1:0]COMPACCSIZE[1:0]ACCTYPE
Reset value000000000000000
0x084ETM_ACTR2Res.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[2:0]
Reset value000000000000000
ST logo
ST logo

Table 560. 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

Table 560. ETM registers map and reset values (continued)

Debug support (DBG)column_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 560. ETM registers map and reset values (continued)RM0441
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
3666/3787RM0441 Rev 7

Table 560. 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_EXTOUTEVR1Res.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_EXTOUTEVR2Res.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.TSSIZETSENCCNTNCVIRTEXTRes.Res.Res.TIMSTMPETMEIBCRTSSBLKEMBICEWP
S[3:0]
INSTRE
S[2:0]
DACOMPSARRPMUEVENTREGS[7:0]EEISELS
Reset value11011000000000100011110010
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.Res.FCN
[2:0]
RESOURCEB[6:0]RESOURCEA[6:0]
Reset value0000000000000000
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

Table 560. 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
ST logo
ST logo

Table 560. 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]JEDEC
JEP106I
D
[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

63.11.4 Cross trigger interface (CTI)

See Section 63.10.3.

63.12 Cortex®-M4 debug features

The Cortex®-M4 subsystem integrates the following CoreSight™ components:

These components are accessible by the debugger via the Cortex®-M4 AHB-AP.

63.12.1 ROM tables

The ROM table is a CoreSight™ component that contains the base addresses of all the CoreSight™ debug components accessible via the AHB-AP. These tables allow a debugger to discover the topology of the CoreSight™ system automatically.

There is one ROM table in the Cortex®-M4 subsystem. This table is pointed to by the BASE register in the Cortex®-M4 AHB-AP. It contains the base address pointer for the System Control Space registers, which allow the debugger to identify the CPU core, as well as for the FPB, DWT, ITM, ETM and CTI.

The Cortex®-M4 CPU ROM table described in Table 561 occupies a 4-Kbyte, 32-bit wide chunk of address space, from 0xE00F F000 to 0xE00F FFFC.

Table 561. Cortex®-M4 CPU ROM table

Address in
ROM table
Component
name
Component
base address
Component
address offset
SizeEntry
0xE00F F000SCS0xE000 E0000xFFF0 F0004 Kbyte0xFFF0 F003
0xE00F F004DWT0xE000 10000xFFF0 20004 Kbyte0xFFF0 2003
0xE00F F008FPB0xE000 20000xFFF0 30004 Kbyte0xFFF0 3003
0xE00F F00CITM0xE000 00000xFFF0 10004 Kbyte0xFFF01 003
0xE00F F010TPIU(1)0xE004 00000xFFF4 10004 Kbyte0xFFF4 1002
0xE00F F014ETM0xE004 10000xFFF4 20004 Kbyte0xFFF4 2003
0xE00F E018CTI0xE004 30000xFFF4 50004 Kbyte0xFFF4 5003
0xE00F F01CTop of table---0x0000 0000
0xE00F F020
to
0xE00F FFC8
Reserved---0x0000 0000
0xE00F FFCC
to
0xE00F FFFC
ROM table
registers
---See Table 562

1. The TPIU is included in this table by default, but bit 0 is reset to indicate that it is not present.

The topology for the CoreSight™ components in the Cortex®-M4 subsystem is shown in Figure 775.

Figure 775. Cortex®-M4 CoreSight™ topology

Figure 775. Cortex®-M4 CoreSight™ topology diagram showing the AHB-AP connection to the Cortex-M4 ROM table and its mapping to various CoreSight components.

The diagram illustrates the CoreSight topology for the Cortex-M4 subsystem. It shows the AHB-AP connected to the Cortex-M4 ROM table at address 0xE00FF000. The BASE register (0xF8) points to offset 0xE00FF000. The ROM table contains pointers to various components:

MSv46867V1

Figure 775. Cortex®-M4 CoreSight™ topology diagram showing the AHB-AP connection to the Cortex-M4 ROM table and its mapping to various CoreSight components.

Cortex®-M4 ROM registers

CM4ROM memory type register (CM4ROM_MEMTYPE)

Address offset: 0xFCC

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.Res.Res.Res.Res.Res.Res.Res.SYSMEM
r

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

Bit 0 SYSMEM: system memory

0x1: system memory is present on this bus

CM4ROM CoreSight peripheral identity register 4 (CM4ROM_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: No continuation code

CM4ROM CoreSight peripheral identity register 0 (CM4ROM_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 0050

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]

0x50: ROM table part number bits [7:0]

CM4ROM CoreSight peripheral identity register 1 (CM4ROM_PIDR1)

Address offset: 0xFE4

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.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 identity code bits [3:0]

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

CM4ROM CoreSight peripheral identity register 2 (CM4ROM_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 identity code bits [6:4]

CM4ROM CoreSight peripheral identity register 3 (CM4ROM_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

CM4ROM CoreSight component identity register 0 (CM4ROM_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

CM4ROM CoreSight peripheral identity register 1 (CM4ROM_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

CM4ROM CoreSight component identity register 2 (CM4ROM_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

CM4ROM CoreSight component identity register 3 (CM4ROM_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

Cortex®-M4 ROM registers map

Table 562. Cortex®-M4 CPU ROM table register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFCCCM4ROM_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 value1
0xFD0CM4ROM_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 value000000000
0xFD4CM4ROM_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
0xFD8CM4ROM_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
0xFDCCM4ROM_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
0xFE0CM4ROM_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 value010100000
Table 562. Cortex® -M4 CPU ROM table register map and reset values (continued)
OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFE4CM4ROM_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 value00000100
0xFE8CM4ROM_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 value00001010
0xFECCM4ROM_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
0xFF0CM4ROM_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
0xFF4CM4ROM_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 value00010000
0xFF8CM4ROM_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
0xFFCCM4ROM_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

63.12.2 Data watchpoint and trace unit (DWT)

The DWT provides four comparators that can be used as:

It also contains counters for:

A DWT comparator compares one of the following with the value held in its DWT_COMP register:

For address matching, the comparator can use a mask, so it matches a range of addresses.

On a successful match, the comparator generates one of the following:

A watchpoint debug event either generates a Debug Monitor exception, or causes the processor to halt execution and enter Debug state.

For more details on how to use the DWT, refer to the Arm®v7-M Architecture Reference Manual [5].

Data watchpoint and trace unit registers

The Cortex®-M4 DWT registers are located at address range 0xE0001000 to 0xE0001FFC.

DWT control register (DWT_CTRL)

Address offset: 0x000

Reset value: 0x4000 0000

31302928272625242322212019181716
NUMCOMP[3:0]NOTRCPKTNOEXTTRIGNOCYCCNTNOPRFCNTRes.CYCEVTENAFOLDEVTENALSUEVTENASLEEPEVTENAEXCEVTENACPIEVTENAEXCTRCENA
rrrrrrrrrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.PCSAMPLENASYNCTAP[1:0]CYCTAPPOSTINIT[3:0]POSTPRESET[3:0]CYCCNTENA
rwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 NUMCOMP[3:0]: number of comparators implemented

0x4: four comparators

Bit 27 NOTRCPKT: trace sampling and exception tracing support

0x0: supported

Bit 26 NOEXTTRIG: external match signal, CMPMATCH support

0x0: supported

Bit 25 NOCYCCNT: cycle counter support

0x0: supported

Bit 24 NOPRFCNT: profiling counter support

0x0: supported

Bit 23 Reserved, must be kept at reset value.

Bit 22 CYCEVTENA: enable for POSTCNT underflow event counter packet generation

0x0: disabled

0x1: enabled

Bit 21 FOLDEVTENA: enable for folded instruction counter overflow event generation

0x0: disabled

0x1: enabled

Bit 20 LSUEVTENA: enable for LSU counter overflow event generation

0x0: disabled

0x1: enabled

Bit 19 SLEEPEVTENA: enable for Sleep mode counter overflow event generation

0x0: disabled

0x1: enabled

Bit 18 EXCEVTENA: enable for exception overhead counter overflow event generation

0x0: disabled

0x1: enabled

Bit 17 CPIEVTENA: enable for CPI counter overflow event generation

0x0: disabled

0x1: enabled

Bit 16 EXCTRCENA: enable for exception trace generation

0x0: disabled

0x1: enabled

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

Bit 12 PCSAMPLENA: PC sample enable

Enables the use of the POSTCNT counter as a timer for periodic PC sample packet generation.

0x0: disabled

0x1: enabled

Bits 11:10 SYNCTAP[1:0]: synchronization tap position

Selects the position of the synchronization packet counter tap on the CYCCNT counter. This determines the synchronization packet rate.

0x0: disabled. No synchronization packets

0x1: tap at CYCCNT[24]

0x2: tap at CYCCNT[26]

0x3: tap at CYCCNT[28]

Bit 9 CYCTAP: CYCCNT tap position

Selects the position of the POSTCNT tap on the CYCCNT counter.

0x0: tap at CYCCNT[6]

0x1: tap at CYCCNT[10]

Bits 8:5 POSTINIT[3:0]: POSTCNT counter initial value

Writes to this field are ignored if POSTCNT counter is enabled (meaning that CYCEVTENA or PCSAMPLENA must be reset prior to writing POSTINIT).

Bits 4:1 POSTPRESET[3:0]: POSTCNT counter reload value

Bit 0 CYCCNTENA: CYCCNT counter enable

0x0: disabled

0x1: enabled

DWT cycle count register (DWT_CYCCNT)

Address offset: 0x004

Reset value: 0x0000 0000

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

Bits 31:0 CYCCNT[31:0]: processor clock cycle counter

DWT CPI count register (DWT_CPICNT)

Address offset: 0x008

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.CPICNT[7:0]
rwrwrwrwrwrwrwrw

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

Bits 7:0 CPICNT[7:0]: CPI counter

Counts additional cycles required to execute multi-cycle instructions, except those recorded by DWT_LSUCNT, and counts any instruction fetch stalls.

DWT exception count register (DWT_EXCCNT)

Address offset: 0x00C

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.EXCCNT[7:0]
rwrwrwrwrwrwrwrw

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

Bits 7:0 EXCCNT[7:0]: exception overhead cycle counter

Counts the number of cycles spent in exception processing.

DWT Sleep mode count register (DWT_SLPCNT)

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.SLEEPCNT[7:0]
rwrwrwrwrwrwrwrw

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

Bits 7:0 SLEEPCNT[7:0]: sleep mode cycle counter

Counts the number of cycles spent in Sleep mode (WFI, WFE, sleep-on-exit).

DWT LSU count register (DWT_LSUCNT)

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.LSUCNT[7:0]
rwrwrwrwrwrwrwrw

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

Bits 7:0 LSUCNT[7:0]: load store counter

Counts the additional cycles required to execute load and store instructions.

DWT fold count register (DWT_FOLDCNT)

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.FOLDCNT[7:0]
rwrwrwrwrwrwrwrw

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

Bits 7:0 FOLDCNT[7:0]: folded instruction counter

Increments on each instruction that takes 0 cycles.

DWT program counter sample register (DWT_PCSR)

Address offset: 0x01C

Reset value: 0x0000 0000

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

Bits 31:0 EIASAMPLE[31:0]: executed instruction address sample value

Samples the current value of the program counter.

DWT comparator x registers (DWT_COMPx)

Address offset: 0x020 + 0x010 * x, (x = 0 to 3)

Reset value: 0x0000 0000

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

Bits 31:0 COMP[31:0]: reference value for comparison

DWT comparator mask x registers (DWT_MASKx)

Address offset: 0x024 + 0x010 * x,(x = 0 to 3)

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.MASK[4:0]
rwrwrwrwrw

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

Bits 4:0 MASK[4:0]: comparator mask size

Provides the size of the ignore mask applied to the access address for address range matching by comparator x. A debugger can write 11111 to this field and then read the register back to determine the maximum mask size supported.

DWT comparator function x registers (DWT_FUNCTx)

Address offset: 0x028 + 0x010 * x, (x = 0 to 3)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.MATCHEDRes.Res.Res.Res.DATAVADDR1[3:0]
rrwrwrwrw
1514131211109876543210
DATAVADDR0[3:0]DATAVSIZE[1:0]LNK1ENADATA/MATCHCYCMATCHRes.EMITRANGERes.FUNCTION[3:0]
rwrwrwrwrwrwrrwrwrwrwrwrwrw
ST logo
ST logo

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

Bit 24 MATCHED: comparator match

Indicates if a comparator match has occurred since the register was last read.

0: no match

1: match occurred

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

Bits 19:16 DATAVADDR1[3:0]: second comparator number

When the DATAVMATCH and LNK1ENA bits are both 1, this field can hold the comparator number of a second comparator to use for linked address comparison.

Bits 15:12 DATAVADDR0[3:0]: comparator number

When the DATAVMATCH and LNK1ENA bits are both 1, this field can hold the comparator number of a comparator to use for linked address comparison.

Bits 11:10 DATAVSIZE[1:0]: data comparison size

For data value matching, specifies the size of the required data comparison.

0x0: byte

0x1: half word

0x2: word

0x3: reserved

Bit 9 LNK1ENA: second linked comparator support

Indicates whether use of a second linked comparator is supported.

0x1: supported

Bit 8 DATAVMATCH: cycle comparison enable

0x0: performs address comparison

0x1: performs data value comparison

Bit 7 CYCMATCH: cycle count comparison enable

Enables cycle count comparison on comparator 0. This field is reserved for other comparators.

0x0: no cycle count comparison

0x1: compares DWT_COMP0 with the cycle counter, DWT_CYCCNT

Bit 6 Reserved, must be kept at reset value.

Bit 5 EMITRANGE: address offset data trace enable

Enables generation of data trace address offset packets (containing data address bits 0 to 15).

0x0: disabled

0x1: enabled

Bit 4 Reserved, must be kept at reset value.

Bits 3:0 FUNCTION[3:0]: comparator match action

Selects the action to take on comparator match. The meaning of this bit field depends on the setting of the DATAVMATCH and CYCMATCH fields. See [5].

DWT CoreSight peripheral identity register 4 (DWT_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

DWT CoreSight peripheral identity register 0 (DWT_PIDR0)

Address offset: 0xFE0

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.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]

0x02: DWT part number

DWT CoreSight peripheral identity register 1 (DWT_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00B0

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]

0x0: DWT part number

DWT CoreSight peripheral identity register 2 (DWT_PIDR2)

Address offset: 0xFE8

Reset value: 0x0000 003B

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

0x3: r0p4

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

DWT CoreSight peripheral identity register 3 (DWT_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

DWT CoreSight component identity register 0 (DWT_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

DWT CoreSight peripheral identity register 1 (DWT_CIDR1)

Address offset: 0xFF4

Reset value: 0x0000 00E0

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

0xE: trace generator component

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

0x0: common ID value

DWT CoreSight component identity register 2 (DWT_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

DWT CoreSight component identity register 3 (DWT_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]

0x05: common ID value

DWT register map

Table 563. DWT register map and reset values
OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000DWT_CTRLNUMCOMP[3:0]NOTRCPKTNOEXTTRIGNOCYCCNTNOPRFCNTRes.CYCEVTENAFOLDEVTENALSUEVTENASLEEPEVTENAEXCEVTENACPIEVTENAEXCTRCENARes.Res.Res.PCSAMPLENASYNCTAPCYCTAPPOSINIT[3:0]POSTPRESETCYCCNTENA
Reset value0100000000000000000000000000
0x004DWT_CYCCNTCYCCNT[31:0]
Reset value00000000000000000000000000000000
0x008DWT_CPICNTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CPICNT[7:0]
Reset value000000000
0x00CDWT_EXCCNTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EXCCNT[7:0]
Reset value000000000
0x010DWT_SLPCNTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SLEEPCNT[7:0]
Reset value000000000
0x014DWT_LSUCNTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LSUCNT[7:0]
Reset value000000000
0x018DWT_FOLDCNTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FOLDCNT[7:0]
Reset value000000000
0x01CDWT_PCSREIASAMPLE[31:0]
Reset value00000000000000000000000000000000
0x020DWT_COMP0COMP[31:0]
Reset value00000000000000000000000000000000

Table 563. DWT register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x024DWT_MASK0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MASK[4:0]
Reset value00000
0x028DWT_FUNCT0Res.Res.Res.Res.Res.Res.Res.MATCHEDRes.Res.Res.Res.Res.DATAVADDR1[3:0]DATAVADDR0[3:0]DATAVSIZE[1:0]LNK1ENADATAVMATCHCYCMATCHRes.EMITRANGERes.FUNCTION[3:0]
Reset value0000000000000000000
0x02CReservedRes.Res.Res.Res.Res.Res.Res.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
0x030DWT_COMP1COMP[31:0]
Reset value0000000000000000000000000000000
0x034DWT_MASK1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MASK[4:0]
Reset value00000
0x038DWT_FUNCT1Res.Res.Res.Res.Res.Res.Res.MATCHEDRes.Res.Res.Res.Res.DATAVADDR1[3:0]DATAVADDR0[3:0]DATAVSIZE[1:0]LNK1ENADATAVMATCHCYCMATCHRes.EMITRANGERes.FUNCTION[3:0]
Reset value0000000000000000000
0x03CReservedRes.Res.Res.Res.Res.Res.Res.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
0x040DWT_COMP2COMP[31:0]
Reset value0000000000000000000000000000000
0x044DWT_MASK2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MASK[4:0]
Reset value00000
0x048DWT_FUNCT2Res.Res.Res.Res.Res.Res.Res.MATCHEDRes.Res.Res.Res.Res.DATAVADDR1[3:0]DATAVADDR0[3:0]DATAVSIZE[1:0]LNK1ENADATAVMATCHCYCMATCHRes.EMITRANGERes.FUNCTION[3:0]
Reset value0000000000000000000
0x04CReservedRes.Res.Res.Res.Res.Res.Res.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
0x050DWT_COMP3COMP[31:0]
Reset value0000000000000000000000000000000
0x054DWT_MASK3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MASK[4:0]
Reset value00000

Table 563. DWT register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x058DWT_FUNCT3Res.Res.Res.Res.Res.Res.Res.MATCHEDRes.Res.Res.Res.Res.DATAVADDR1[3:0]DATAVADDR0[3:0]DATAVSIZE[1:0]LNK1ENADATAVMATCHCYCMATCHRes.EMITRANGERes.FUNCTION[3:0]
Reset value000000000000000000
0x05C
to
0xFCC
ReservedRes.Res.Res.Res.Res.Res.Res.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
0xFD0DWT_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
0xFD4DWT_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
0xFD8DWT_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
0xFDCDWT_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
0xFE0DWT_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 value00000010
0xFE4DWT_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 value10110000
0xFE8DWT_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 value00111011
0xFECDWT_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
0xFF0DWT_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
0xFF4DWT_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 value11100000

Table 563. DWT register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFF8DWT_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
0xFFCDWT_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

63.12.3 Instrumentation trace macrocell (ITM)

The ITM generates trace information as packets. There are four sources that can generate packets. If multiple sources generate packets at the same time, the ITM arbitrates the order in which packets are output. The four sources in decreasing order of priority are:

1. Software trace.

Software can write directly to any of 32 x 32-bit ITM stimulus registers to generate packets. The permission level for each port can be programmed. When software writes to an enabled stimulus port, the ITM combines the identity of the port, the size of the write access, and the data written, into a packet that it writes to a FIFO. The ITM outputs packets from the FIFO onto the trace bus. Reading a stimulus port register returns the status of the stimulus register (empty or pending) in bit 0.

2. Hardware trace.

The DWT generates trace packets in response to a data trace event, a PC sample or a performance profiling counter wraparound. The ITM outputs these packets on the trace bus.

3. Local timestamping.

The ITM contains a 21-bit counter clocked by the (pre-divided) processor clock. The counter value is output in a timestamp packet on the trace bus. The counter is reset to zero every time a timestamp packet is generated. The timestamps thus indicate the time elapsed since the previous timestamp packet.

4. Global system timestamping.

Timestamps can also be generated using the system-wide 64-bit count value coming from the Timestamp Generator component.

Instrumentation trace macrocell registers

The ITM registers are located at address range 0xE0000000 to 0xE0000FFC.

ITM stimulus x registers (ITM_STIMx)

Address offset: 0x000 + 0x004 *x, (x = 0 to 31)

Reset value: 0XXXXX XXXX

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

Bits 31:0 STIMULUS[31:0]: stimulus port indicator

Write data is output on the trace bus as a software event packet. When reading, bit 0 is a FIFOREADY indicator.

0: stimulus port buffer is full (or port is disabled)

1: stimulus port can accept new write data

ITM trace enable register (ITM_TER)

Address offset: 0x080

Reset value: 0x0000 0000

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

Bits 31:0 STIMENA[31:0]: stimulus port enable

Each bit x (0:32) enables the stimulus port associated with the ITM_STIMx register.

0: port disabled

1: port enabled

ITM trace privilege register (ITM_TPR)

Address offset: 0xE00

Reset value: 0x0000 0000

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

Bits 31:0 PRIVMASK[31:0]: unprivileged access enable

Enables unprivileged access to ITM stimulus ports. Each bit controls eight stimulus ports.

XXX0: unprivileged access permitted on ports 0 to 7

XXX1: only privileged access permitted on ports 0 to 7

XX0X: unprivileged access permitted on ports 8 to 15

XX1X: only privileged access permitted on ports 8 to 15

X0XX: unprivileged access permitted on ports 16 to 23

X1XX: only privileged access permitted on ports 16 to 23

0XXX: unprivileged access permitted on ports 24 to 31

1XXX: only privileged access permitted on ports 24 to 31

ITM trace control register (ITM_TCR)

Address offset: 0xE80

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.BUSYTRACEBUSID[6:0]
rrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.GTSFREQ[1:0]TSPRESCALE[1:0]Res.Res.Res.SWOENATXENASYNCENATSENAITMENA
rwrwrwrwrrwrwrwrw

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

Bit 23 BUSY: ITM busy

Indicates whether the ITM is currently processing events.

0: not busy

1: busy

Bits 22:16 TRACEBUSID[6:0]: identifier for multi-source trace stream formatting

If multi-source trace is in use, the debugger must write a non-zero value to this field.

Different IDs must be used for each trace source in the system.

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

Bits 11:10 GTSFREQ[1:0]: global timestamp frequency

Defines how often the ITM generates a global timestamp, based on the global timestamp clock frequency, or disables generation of global timestamps.

The possible values are:

0x0: disable generation of global timestamps

0x1: generate timestamp request whenever the ITM detects a change in global timestamp counter bits [47:7]. This is approximately every 128 cycles.

0x2: generate timestamp request whenever the ITM detects a change in global timestamp counter bits [47:13]. This is approximately every 8192 cycles.

0x3: generate a timestamp after every packet, if the output FIFO is empty.

Bits 9:8 TSPRESCALE[1:0]: local timestamp prescaler

This field is used with the trace packet reference clock.

The possible values are:

0x0: no prescaling

0x1: divide by 4

0x2: divide by 16

0x3: divide by 64

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

Bit 4 SWOENA: Enables asynchronous clocking of the timestamp counter

0: timestamp counter uses processor clock

Bit 3 TXENA: Enables forwarding of hardware event packets from the DWT unit to the trace port

0: disabled

1: enabled

Bit 2 SYNCENA: synchronisation packet transmission enable

If a debugger sets this bit it must also configure the DWT_CTRL register SYNCTAP field in the DWT for the correct synchronisation speed.

0: disabled

1: enabled

Bit 1 TSENA: local timestamp generation enable

0: disabled

1: enabled

Bit 0 ITMENA: ITM enable

0: disabled

1: enabled

ITM CoreSight peripheral identity register 4 (ITM_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

ITM CoreSight peripheral identity register 0 (ITM_PIDR0)

Address offset: 0xFE0

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.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: ITM part number

ITM CoreSight peripheral identity register 1 (ITM_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00B0

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]
0x0: ITM part number

ITM CoreSight peripheral identity register 2 (ITM_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.

ST logo
ST logo

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

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

ITM CoreSight peripheral identity register 3 (ITM_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

ITM CoreSight component identity register 0 (ITM_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

ITM CoreSight peripheral identity register 1 (ITM_CIDR1)

Address offset: 0xFF4

Reset value: 0x0000 00E0

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
0xE: trace generator component

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

ITM CoreSight component identity register 2 (ITM_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

ITM CoreSight component identity register 3 (ITM_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

Table 564. ITM register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000ITM_STIM0STIMULUS[31:0]
Reset value-------------------------------
0x004ITM_STIM1STIMULUS[31:0]
Reset value-------------------------------
0x008ITM_STIM2STIMULUS[31:0]
Reset value-------------------------------
0x00CITM_STIM3STIMULUS[31:0]
Reset value-------------------------------
0x010ITM_STIM4STIMULUS[31:0]
Reset value-------------------------------
0x014ITM_STIM5STIMULUS[31:0]
Reset value-------------------------------
0x018ITM_STIM6STIMULUS[31:0]
Reset value-------------------------------
0x01CITM_STIM7STIMULUS[31:0]
Reset value-------------------------------
0x020ITM_STIM8STIMULUS[31:0]
Reset value-------------------------------
0x024ITM_STIM9STIMULUS[31:0]
Reset value-------------------------------
0x028ITM_STIM10STIMULUS[31:0]
Reset value-------------------------------
0x02CITM_STIM11STIMULUS[31:0]
Reset value-------------------------------
0x030ITM_STIM12STIMULUS[31:0]
Reset value-------------------------------
0x034ITM_STIM13STIMULUS[31:0]
Reset value-------------------------------
0x038ITM_STIM14STIMULUS[31:0]
Reset value-------------------------------
0x03CITM_STIM15STIMULUS[31:0]
Reset value-------------------------------
0x040ITM_STIM16STIMULUS[31:0]
Reset value-------------------------------
0x044ITM_STIM17STIMULUS[31:0]
Reset value-------------------------------
0x048ITM_STIM18STIMULUS[31:0]
Reset value-------------------------------

Table 564. ITM register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x04CITM_STIM19STIMULUS[31:0]
Reset value--------------------------------
0x050ITM_STIM20STIMULUS[31:0]
Reset value--------------------------------
0x054ITM_STIM21STIMULUS[31:0]
Reset value--------------------------------
0x058ITM_STIM22STIMULUS[31:0]
Reset value--------------------------------
0x05CITM_STIM23STIMULUS[31:0]
Reset value--------------------------------
0x060ITM_STIM24STIMULUS[31:0]
Reset value--------------------------------
0x064ITM_STIM25STIMULUS[31:0]
Reset value--------------------------------
0x068ITM_STIM26STIMULUS[31:0]
Reset value--------------------------------
0x06CITM_STIM27STIMULUS[31:0]
Reset value--------------------------------
0x070ITM_STIM28STIMULUS[31:0]
Reset value--------------------------------
0x074ITM_STIM29STIMULUS[31:0]
Reset value--------------------------------
0x078ITM_STIM30STIMULUS[31:0]
Reset value--------------------------------
0x07CITM_STIM31STIMULUS[31:0]
Reset value--------------------------------
0x080
to
0xDFC
ReservedRes.Res.Res.Res.Res.Res.Res.Res.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
0x0E00ITM_TERSTIMENA[31:0]
Reset value
0xE04
to
0xE3C
ReservedRes.Res.Res.Res.Res.Res.Res.Res.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
0x0E40ITM_TPRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PRIVMASK[3:0]
Reset value0000

Table 564. ITM register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xE44
to
0xE7C
ReservedRes.Res.Res.Res.Res.Res.Res.Res.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
0xE80ITM_TCRRes.Res.Res.Res.Res.Res.Res.Res.BUSYTRACEBUSID[6:0]Res.Res.Res.Res.GTSFREQ[1:0]TSPRESCALE[1:0]Res.Res.Res.SWOENATXENASYNCENATSENAITMENA
Reset value000000000000000000
0xE84
to
0xFCC
ReservedRes.Res.Res.Res.Res.Res.Res.Res.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
0xFD0ITM_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
0xFD4ITM_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
0xFD8ITM_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
0xFDCITM_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
0xFE0ITM_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 value000000001
0xFE4ITM_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 value101100000
0xFE8ITM_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 value000010111
0xFECITM_PIDR3Res.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 value0000000000
0xFF0ITM_CIDR0Res.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 value0000110101

Table 564. ITM register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFF4ITM_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 value11100000
0xFF8ITM_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
0xFFCITM_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

63.12.4 Breakpoint unit (FPB)

The FPB allows hardware breakpoints to be set. It contains six comparators which monitor the instruction fetch address and two literal address comparators. If a match occurs, the address is remapped to an address in system memory, defined by the FPB_REMAP register plus an offset corresponding to the matching comparator. Alternatively, the instruction comparators can be configured to generate a breakpoint instruction.

Breakpoint unit registers

The Cortex®-M4 FPB registers are located at address range 0xE000 2000 to 0xE000 2FFC.

FPB control register (FPB_CTRL)

Address offset: 0x000

Reset value: 0x0000 0080

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.NUM_CODE[6:4]NUM_LIT[3:0]NUM_CODE[3:0]Res.Res.KEYENABL
E
rrrrrrrrrrrrwrw

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

Bits 11:8 NUM_LIT[3:0]: number of literal address comparators supported

0x2: two literal comparators supported.

Bits 14, 13, 12, 7, 6, NUM_CODE[6:0]: number of instruction address comparators supported

5, 4 0x6: 6 instruction comparators supported

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

Bit 1 KEY: write protect key

A write to FPB_CTRL register will be ignored if this bit is not set to 1.

Bit 0 ENABLE: FPB enable

0x0: disable

0x1: enable

FPB remap register (FPB_REMAP)

Address offset: 0x004

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.RMPSP
T
REMAP[23:11]
rrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
REMAP[10:0]Res.Res.Res.Res.Res.
rwrwrwrwrwrwrwrwrwrwrw

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

Bit 29 RMPSP: flash patch remap support

Indicates whether flash patch remap is supported.

0x1: remapping supported.

Bits 28:5 REMAP[23:0]: remap target address

Bits [28:5] of the base address in SRAM to which the FPB remaps the address. The remap base address must be aligned to the number of words required to support the implemented comparators, that is to (NUM_CODE + NUM_LIT) words, with a minimum alignment of 8 words. Because remap is into the SRAM memory region, 0x2000 0000-0x3FFF FFFF, bits [31:29] of the remap address are 001.

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

FPB comparator x registers (FPB_COMPx)

Address offset: 0x008 + 0x004 * x, (x = 0 to 7)

Reset value: 0x0000 0000

31302928272625242322212019181716
REPLACE[1:0]Res.COMP[26:14]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
COMP[13:0]Res.ENABL
E
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:30 REPLACE[1:0]: behavior at comparison match

Defines the behavior when a match occurs between the COMP field and the instruction fetch/literal address(1).

0x0: remap to address defined in FPB_REMAP register, plus 4n, where n is the comparator number.

0x1: breakpoint on lower half-word, upper half-word is unaffected

0x2: breakpoint on upper half-word, lower half-word is unaffected

0x3: breakpoint on both upper and lower half-words

Bit 29 Reserved, must be kept at reset value.

Bits 28:2 COMP[26:0]: value to compare with address bits 28:2 of accesses to instruction code memory (0x0000 0000 to 0x1FFF FFFF). If a match occurs, the action to be taken is defined by the REPLACE field.

Bit 1 Reserved, must be kept at reset value.

Bit 0 ENABLE: comparator enable

The comparator is only enabled if both this bit and the FPB ENABLE bit in the FPB_CTRL register are set.

0: disabled

1: enabled

1. FPB_COMP(0:5) correspond to the instruction address comparators. FPB_COMP(6:7) correspond to the literal address comparators.

FPB CoreSight peripheral identity register 4 (FPB_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

FPB CoreSight peripheral identity register 0 (FPB_PIDR0)

Address offset: 0xFE0

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.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]

0x03: FPB part number

FPB CoreSight peripheral identity register 1 (FPB_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00B0

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]

0x0: FPB part number

FPB CoreSight peripheral identity register 2 (FPB_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: r0p4

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

FPB CoreSight peripheral identity register 3 (FPB_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

FPB CoreSight component identity register 0 (FPB_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

FPB CoreSight peripheral identity register 1 (FPB_CIDR1)

Address offset: 0xFF4

Reset value: 0x0000 00E0

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
0xE: trace generator component

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

FPB CoreSight component identity register 2 (FPB_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

FPB CoreSight component identity register 3 (FPB_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

Table 565. FPB register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000FPB_CTRLRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NUM_CODE[6:4]NUM_LUT[3:0]NUM_CODE[3:0]Res.Res.KEYENABLE
Reset value0000010011000
0x004FPB_REMAPRes.Res.RMPSPREMAP[23:0]Res.Res.Res.Res.Res.Res.Res.Res.
Reset value000000000000000000000000000
0x008FPB_COMP0REPLACE[1:0]Res.COMP[26:0]Res.ENABLE
Reset value0000000000000000000000000000000
0x00CFPB_COMP1REPLACE[1:0]Res.COMP[26:0]Res.ENABLE
Reset value0000000000000000000000000000000
0x010FPB_COMP2REPLACE[1:0]Res.COMP[26:0]Res.ENABLE
Reset value0000000000000000000000000000000
0x014FPB_COMP3REPLACE[1:0]Res.COMP[26:0]Res.ENABLE
Reset value0000000000000000000000000000000
0x018FPB_COMP4REPLACE[1:0]Res.COMP[26:0]Res.ENABLE
Reset value0000000000000000000000000000000
0x01CFPB_COMP5REPLACE[1:0]Res.COMP[26:0]Res.ENABLE
Reset value0000000000000000000000000000000

Table 565. FPB register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x020FPB_COMP6REPLACE[1:0]Res.COMP[26:0]Res.ENABLE
Reset value000000000000000000000000000000
0x024FPB_COMP7REPLACE[1:0]Res.COMP[26:0]Res.ENABLE
Reset value000000000000000000000000000000
0x028
to
0xFCC
ReservedRes.Res.Res.Res.Res.Res.Res.Res.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
0xFD0FPB_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
0xFD4FPB_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
0xFD8FPB_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
0xFDCFPB_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
0xFE0FPB_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 value00000011
0xFE4FPB_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 value10110000
0xFE8FPB_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 value00101011
0xFECFPB_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

Table 565. FPB register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFF0FPB_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
0xFF4FPB_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 value11100000
0xFF8FPB_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
0xFFCFPB_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

63.12.5 Embedded trace macrocell (ETM)

The Cortex®-M4 ETM is a CoreSight™ component closely coupled to the CPU. The ETM generates trace packets that allow the execution of the Cortex®-M4 core to be traced. In STM32MP151, the ETM is configured for instruction trace only, meaning that data accesses are not included in the trace information.

The ETM receives information from the CPU over the processor trace interface, including:

For more information, refer to the Arm® CoreSight™ ETM™-Cortex®-M4 technical reference manual [7].

Embedded trace macrocell registers

The ETM registers are accessed by the debugger via the Cortex®-M4 AHB-AP, at address range 0xE004 1000 to 0xE004 1FFC.

Cortex-M4 ETM registers

ETM control register (M4_ETM_CR)

Address offset: 0x000

Reset value: 0x0000 0411

31302928272625242322212019181716
Res.Res.Res.Res.TSENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.ETMENPROGDBRQBOSTALLRes.Res.Res.Res.Res.Res.PDN
rwrwrwrwrwrw

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

Bit 27 TSEN: Timestamp enable
0: Timestamping disabled
1: Timestamping enabled

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

Bit 11 ETMEN: ETM enable
0: Trace output disabled
1: Trace output enabled

Bit 10 PROG: ETM programming
This bit must be set to 1 before programming the ETM. Tracing is prevented while this bit is set to 1.
0: ETM operational
1: ETM in programming state

Bit 9 DBRQ: Debug request.
When set to 1 and the trigger event occurs, the ETMDBGRQ output is asserted until HALTED is observed. This enables the Arm® processor to be forced into Debug state.

Bit 8 BO: Branch output
When set to 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.
When this bit is set to 1, more trace data is generated, and this may affect the performance of the trace system. Information about the execution of a branch is traced regardless of the state of this bit.

Bit 7 STALL: Stall processor
The FIFOFULL output can be used to stall the processor to prevent overflow. The FIFOFULL output is only enabled when the stall processor bit is set to 1. When the bit is 0 the FIFOFULL output remains low at all times and the FIFO overflows if there are too many trace packets.
Trace resumes without corruption once the FIFO has drained, if overflow does occur.

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

Bit 0 PDN: ETM power down
This bit can be used by an implementation to control if the ETM is in a low power state. This bit must be cleared by the trace software tools at the beginning of a debug session.
When this bit is set to 1, writes to some registers and fields might be ignored. The following registers and fields are still write-accessible:
– ETMCR bit [0]
– ETMLAR
– ETMCLAIMSET register
– ETMCLAIMCLR register
When the ETMCR is written with this bit set to 1, bits other than bit [0] might be ignored.

ETM configuration code register (M4_ETM_CCR)

Address offset: 0x004

Reset value: 0x8C80 2000

31302928272625242322212019181716
IDPRESRes.Res.Res.CPMACTSPRESCIDCMP[1:0]FFPRESNEXTO[2:0]NEXTI[2:0]SEQPRES
rrrrrrrrrrrrr
1514131211109876543210
NCNT[2:0]NMMDEC[4:0]NDVCMP[3:0]NADCMP[3:0]
rrrrrrrrrrrrrrrr
Bit 31 IDPRES: 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 CPMAC: Co-processor and memory access

1: Memory-mapped access to registers is supported

Bit 26 TSPRES: Trace start/stop block present

1: Trace start/stop block is present

Bits 25:24 CIDCMP[1:0]: Number of context ID comparators

0x0: Context ID comparators are not implemented.

Bit 23 FFPRES: FIFOFULL logic present

To use FIFOFULL the system must also support the function, as indicated by bit[8] of ETMSCR.

1: FIFOFULL logic is present in the ETM

Bits 22:20 NEXTO[2:0]: Number of external outputs

0x0: No external outputs are supported

Bits 19:17 NEXTI[2:0]: Number of external inputs

0x2: Two external inputs are supported

Bit 16 SEQPRES: Sequencer present

0: The sequencer is not present in the ETM.

Bits 15:13 NCNT[2:0]: Number of counters

0x1: One counter is implemented

Bits 12:8 NMMDEC[4:0]: Number of memory map decoders

0x0: No memory map decoder inputs are implemented.

Bits 7:4 NDVCMP[3:0]: Number of data value comparators

0x0: No data value comparators are implemented.

Bits 3:0 NADCMP[3:0]: Number of address comparator pairs

0x0: No address comparator pairs are implemented.

ETM trigger register (M4_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

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.

0x20: Embedded-ICE watchpoint comparators 1 (from DWT)
0x21: Embedded-ICE watchpoint comparators 2 (from DWT)
0x22: Embedded-ICE watchpoint comparators 3 (from DWT)
0x23: Embedded-ICE watchpoint comparators 4 (from DWT)
0x40: Counter 1 at zero
0x5F: Trace start/stop resource
0x60: External inputs 1
0x61: External inputs 2
0x6F: Hard-wired input, always true
Others: Reserved

ETM status register (M4_ETM_SR)

Address offset: 0x010

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.Res.Res.Res.Res.TRIGFLTSSRSTATPROGVALUOVFL
rwrwrr

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

Bit 3 TRIGFL: Trigger flag

Set when the trigger occurs, and prevents the trigger from being output until the ETM is programmed again.

Bit 2 TSSRSTAT: 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 PROGVAL: Programming bit value (read-only)

The current effective value of the ETM Programming bit, bit [10] of the M4_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 M4_ETM_OSLSR register.

Bit 0 UOVFL: 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 M4_ETM_CR register) is set to 1.

ETM configuration register (M4_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.
1514131211109876543210
Res.NSUPPROC[2:0]PORTMODESUPPORTSIZESUPMAXPORTSIZE[3]FFSUPRes.Res.Res.Res.Res.MAXPORTSIZE[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 NSUPPROC[2:0]: Number of supported processors

0x0: One processor supported

ETM trace enable event register (M4_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
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.

0x20: Embedded-ICE watchpoint comparators 1 (from DWT)

0x21: Embedded-ICE watchpoint comparators 2 (from DWT)

0x22: Embedded-ICE watchpoint comparators 3 (from DWT)

0x23: Embedded-ICE watchpoint comparators 4 (from DWT)

0x40: Counter 1 at zero

0x5F: Trace start/stop resource

0x60: External inputs 1

0x61: External inputs 2

0x6F: Hard-wired input, always true

Others: Reserved

ETM trace enable control 1 register (M4_ETM_TECR1)

Address offset: 0x024

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.ENON
OFF
Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

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

Bit 25 ENONOFF: 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

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

ETM FIFOFULL level register (M4_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.LEVEL[7:0]
rwrwrwrwrwrwrwrw

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

Bits 7:0 LEVEL[7:0]: Threshold for FIFOFULL signal

The number of bytes left in the FIFO, below which the FIFOFULL signal is asserted. For example, setting this value to 15 causes processor stalling, if enabled, when there are less than 15 free bytes in the FIFO.

ETM counter reload value 1 register (M4_ETM_CNTRLDVR1)

Address offset: 0x140

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
INICNT[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 15:0 INICNT[15:0]: Initial count

Specifies the counter reload value.

ETM synchronization frequency register (M4_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.FREQUENCY[11:0]
rrrrrrrrrrrr

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

Bits 11:0 FREQUENCY[11:0]: Distance of synchronization points

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).

0x400: fixed synchronization packet generation every 1024 bytes of trace

ETM ID register (M4_ETM_IDR)

Address offset: 0x1E4

Reset value: 0x4114 F250

31302928272625242322212019181716
DESIGNER[7:0]Res.Res.Res.ABPESXSUP
P
T32SU
PP
Res.LDPCF
rrrrrrrrrrrr
1514131211109876543210
PROCFAM[3:0]ETMARCHMAJ[3:0]ETMARCHMIN[3:0]REVISION[3:0]
rrrrrrrrrrrrrrrr

Bits 31:24 DESIGNER[7:0]: Implementer code
0x41: Arm®

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

Bit 20 ABPE: Alternative ranch packet encoding
1: ABPE is implemented.

Bit 19 SXSUPP: Security extensions support
0: ETM behaves as if the processor is in secure mode at all times

Bit 18 T32SUPP: 32-bit Thumb instruction tracing
1: 32-bit Thumb instructions are traced as single instructions

Bit 17 Reserved, must be kept at reset value.

Bit 16 LDPCF: Load PC first
0: Data tracing is not supported

Bits 15:12 PROCFAM[3:0]: Processor family
0xF: Processor family is not identified in this register

Bits 11:8 ETMARCHMAJ[3:0]: Major ETM architecture version
0x2: Version 3

Bits 7:4 ETMARCHMIN[3:0]: Minor ETM architecture version
0x5: Version 5

Bits 3:0 REVISION[3:0]: Implementation revision
0x0: Revision 0

ETM configuration code extension register (M4_ETM_CCER)

Address offset: 0x1E8

Reset value: 0x1854 1800

31302928272625242322212019181716
Res.Res.TSSIZETSENCRFCRes.Res.Res.Res.TSIMPEIIMPTSSU
WP
NUMWPIN[3:0]
rrrrrrrrrr
1514131211109876543210
NUMIR[2:0]SUPP
DAC
RRXXINBUS[7:0]XXINSEL[2:0]
rrrrrrrrrrrrrrrr

ETM trace enable start/stop embedded ICE control register (M4_ETM_TESSEICR)

Address offset: 0x1F0

Reset value: 0x0000 0000

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

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

Bits 19:16 STOPRS[3:0]: Stop resource selection
Setting any of these bits to 1 selects the corresponding EmbeddedICE watchpoint input as a TraceEnable stop resource. Bit [16] corresponds to input 1, bit [17] corresponds to input 2, bit [18] corresponds to input 3, and bit [19] corresponds to input 4.

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

Bits 3:0 STARTRS[3:0]: Start resource selection
Setting any of these bits to 1 selects the corresponding EmbeddedICE watchpoint input as a TraceEnable start resource. Bit [0] corresponds to input 1, bit [1] corresponds to input 2, bit [2] corresponds to input 3, and bit [3] corresponds to input 4.

ETM timestamp event register (M4_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.

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.

0x20: Embedded-ICE watchpoint comparators 1 (from DWT)
0x21: Embedded-ICE watchpoint comparators 2 (from DWT)
0x22: Embedded-ICE watchpoint comparators 3 (from DWT)
0x23: Embedded-ICE watchpoint comparators 4 (from DWT)
0x40: Counter 1 at zero
0x5F: Trace start/stop resource
0x60: External inputs 1
0x61: External inputs 2
0x6F: Hard-wired input, always true
Others: Reserved

ETM trace ID register (M4_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.Res.TRACEID[6:0]
rwrwrwrwrwrwrw

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

Bits 6:0 TRACEID[6: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 register 2 (M4_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.SWPTORFE TO
rr

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

Bit 1 SWPTO : SWP or SWPB instruction order

Identifies the order for a SWP or SWPB instruction.

0: The Load transfer is traced before the Store transfer

Bit 0 RFETO : RFE instruction order

Identifies the order for a RFE instruction.

0: The PC transfer is traced before the CPSR transfer

ETM device power-down status register 2 (M4_ETM_PDSR)

Address offset: 0x314

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.Res.Res.Res.Res.Res.Res.Res.POWER
r

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

Bit 0 POWER : ETM powered

1: ETM powered; trace registers can be accessed.

ETM claim tag set register (M4_ETM_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]: Set claim tag bits

Read:

0xF: Indicates there are four bits in claim tag

ETM claim tag clear register (M4_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.Res.Res.Res.Res.CLAIMCLR[3:0]
rwrwrwrw

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

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

Read: Returns current value of claim tag

ETM lock access register (M4_ETM_LAR)

Address offset: 0xFB0

Reset value: 0XXXXX XXXX

ST logo
ST logo
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 (M4_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 (M4_ETM_AUTHSTAT)

Address offset: 0xFB8

Reset value: 0x0000 000A

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.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

ETM CoreSight device identity register (M4_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

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 (M4_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 (M4_ETM_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 0025

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]

0x25: ETM part number

ETM CoreSight peripheral identity register 1 (M4_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 (M4_ETM_PIDR2)

Address offset: 0xFE8

Reset value: 0x0000 002B

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: r0p1

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 (M4_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 (M4_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 (M4_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 (M4_ETM_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

ETM CoreSight component identity register 3 (M4_ETM_CIDR3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

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[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

Embedded trace macrocell registers map

Table 566. Embedded trace macrocell register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000M4_ETM_CRRes.Res.Res.Res.TSENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ETMENPROGDBRQBOSTALLRes.Res.Res.Res.Res.PDN
Reset value0010001
0x004M4_ETM_CCRIDPRESRes.Res.Res.CPMACTSPRESCIDCMPFFPRESNEXTTONEXTISEQPRESNCNTNMMDECNDVCMPNADCMP
Reset value11100100000010000000000000000
0x008M4_ETM_TRIGGERRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCNRESOURCEBRESOURCEA
Reset value0000000000000000000
0x010M4_ETM_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.TRGFLTSSRSTATPROGVALUOVFL
Reset value0000
0x014M4_ETM_SCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NOFTCHCOMPRes.Res.NSUPPROCPORTMODESUPPORTSIZESUPMAXPORTSIZEFFSUPRes.Res.Res.Res.Res.Res.MAXPORTSIZERes.Res.
Reset value10001101001
0x020M4_ETM_TEEVRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCNRESOURCEBRESOURCEA
Reset value0000000000000000000
0x024M4_ETM_TECR1Res.Res.Res.Res.Res.ENONOFFRes.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 value0
0x028M4_ETM_FFLRRes.Res.Res.Res.Res.Res.Res.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
0x140M4_ETM_CNTRLDVR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.INICNT[15:0]
Reset value000000000000000
0x1E0M4_ETM_SYNCFRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FREQUENCY[11:0]
Reset value010000000000000
ST logo
ST logo

Table 566. Embedded trace macrocell register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x1E4M4_ETM_IDRDESIGNER[7:0]Res.Res.Res.ABPESXSUPPT32SUPPRes.LDPCFPROCFAM [3:0]10ETMARCHMAJ [3:0]ETMARCHMIN [3:0]REVISION [3:0]
Reset value01000001101001111001001010000
0x1E8M4_ETM_CCERRes.Res.TSSIZETSENCRFCRes.Res.Res.Res.TSIMPEIMPTSSUWPNUMWPIN [3:0]NUMIR [3:0]SUPPDACRRXXINBUS [7:0]XXINSEL [2:0]
Reset value01110101000001100000000000
0x1F0M4_ETM_TESSEICRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.STOPRS [3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.STARTRS [3:0]
Reset value00000000
0x1F8M4_ETM_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 value0000000000000000
0x200M4_ETM_TRACEIDRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRACEID [6:0]
Reset value0000000
0x208M4_ETM_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 value000
0x314M4_ETM_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.Res.Res.Res.Res.Res.POWER
Reset value1
0xFA0M4_ETM_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.CLAIMSET [3:0]
Reset value1111
0xFA4M4_ETM_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.CLAIMCLR [3:0]
Reset value0000
0xFB0M4_ETM_LARACCESS_W[31:0]
Reset valuexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
0xFB4M4_ETM_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
0xFB8M4_ETM_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]SID [1:0]NSNID [1:0]NSID [1:0]NSID [1:0]NSID [1:0]NSID [1:0]NSID [1:0]
Reset value00001010
0xFCCM4_ETM_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 value00010011
0xFD0M4_ETM_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
0xFE0M4_ETM_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 value00100101

Table 566. Embedded trace macrocell register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0xFE4M4_ETM_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
0xFE8M4_ETM_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 value00101011
0xFECM4_ETM_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
0xFF0M4_ETM_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
0xFF4M4_ETM_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
0xFF8M4_ETM_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 value00001001
0xFFCM4_ETM_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

63.12.6 Cross trigger interface (CTI)

See Section 63.10.3.

63.13 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 0403D (ID100710) - Arm® v7-M Architecture Reference Manual, Issue Derrata2010_Q3, November 2010
  6. 6. DDI 0468A (ID101712) - Arm® CoreSight™ ETM™-A7 r0p0, Issue A, 12 Sept 2011
  7. 7. DDI 0440C (ID070610) - Arm® CoreSight™ ETM™-M4 r0p1 Technical Reference Manual, Issue C, 29 June 2012
  8. 8. DDI 0528B (ID062514) - Arm® CoreSight™ STM-500 System Trace Macrocell r0p1 Technical Reference Manual, Issue B, 11 March 2014
  9. 9. DDI 0464F (ID051113) - Arm® Cortex®-A7 MPCore™ r0p5 Technical Reference Manual, Issue F, 11 April 2013
  10. 10. IHI 0022E (ID022613)- Arm AMBA AXI and ACE Protocol Specification, Issue E, 22 February 2013
  11. 11. Arm IHI 0033A - Arm AMBA 3 AHB-Lite Protocol v1.0, Issue A, 6 June 2006
  12. 12. Arm IHI 0024C (ID041610) - Arm AMBA Protocol v2.0, Issue C, 13 April 2010