66. Debug support (DBG)

66.1 DBG introduction

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

The debug features can be controlled via a JTAG/Serial-wire debug access port, using industry-standard debugging tools. A trace port allows data to be captured for logging and analysis.

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

The debug features are accessible by the debugger via the AHB-AP.

Additional information can be found in the Arm® documents referenced in Section 66.13.

66.2 DBG functional description

66.2.1 DBG block diagram

Figure 977. Block diagram of debug support infrastructure

Block diagram of debug support infrastructure showing the connection between the JTAG/Serial-wire port, DAP, CPU Cortex-M33, and Trace port.

The diagram illustrates the debug support infrastructure. On the left, the JTAG/Serial-wire port includes pins JTMS/SWDIO, JTDI, JTDO, JTCK/SWCLK, and nJTRST. These connect to the SWJ-DP within the DAP (Debug Access Port). The DAP also contains APB-AP and AHB-AP. The AHB-AP connects to the AHB bus, which links to the CPU Cortex-M33. The CPU contains several blocks: DWT, BPU, ITM, TPIU, Core, ETM, CTI, Processor ROM table, and MCU ROM table. The TPIU connects to the Trace port pins TRACECK, TRACED[3:0], and TRACESWO. The ETM connects to the TPIU via the PPB. The Core connects to the CTI. The APB bus connects to the APB mux, which also receives input from the System bus matrix and connects to the System ROM table and DBG_MCU.

Block diagram of debug support infrastructure showing the connection between the JTAG/Serial-wire port, DAP, CPU Cortex-M33, and Trace port.

66.2.2 DBG pins and internal signals

Table 853. JTAG/Serial-wire debug port pins

Pin nameJTAG debug portSW debug portPin assignment
TypeDescriptionTypeDescription
JTMS/SWDIOIJTAG test mode selectIOSerial-wire data in/outPA13
JTCK/SWCLKIJTAG test clockISerial-wire clockPA14
JTDI(1)IJTAG test data input--PA15
JTDOOJTAG test data output--PB3
nJTRSTIJTAG test reset--PB4

Table 854. Trace port pins

Pin nameTypeDescriptionPin assignment
TRACED0OTrace synchronous data out 0Refer to the datasheet
TRACED1Trace synchronous data out 1
TRACED2Trace synchronous data out 2
TRACED3Trace synchronous data out 3
TRACECKTrace clock

Table 855. Single-wire trace port pins

Pin nameTypeDescriptionPin assignment
TRACESWOOSingle-wire trace asynchronous data outPB3(1)
  1. 1. TRACESWO is multiplexed with JTDO. This means that a single-wire trace is only available when using the serial-wire debug interface, and not when using JTAG.

66.2.3 DBG reset and clocks

The debug port (SWJ-DP) is reset by a power-on reset and when waking up from Standby mode.

The debugger supplies the clock for the debug port via the debug interface pin JTCK/SWCLK. This clock is used to register the serial input data in both serial-wire and JTAG modes, as well as to operate the state machines and internal logic of the debug port. This clock 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 DCLK domain that covers the rest of the SWJ-DP and the access port.

The DCLK is a gated version of the system clock.

The DCLK domain is enabled by the debugger using the CDBGPWRUPREQ bit in the DP control and status register (DP_CTRLSTATR). The clock must be enabled before the debugger can access any of the debug features on the device. The availability of the clock is reflected in the CDBGPWRUPACK bit in DP_CTRL/STATR. The DCLK is disabled at power-up, and must be disabled when the debugger is disconnected, to avoid wasting energy.

The debug and trace components included in the processor are clocked with the processor clock.

66.2.4 DBG power domains

The debug components are located in the core power domain. This means that the debugger connection is not possible in Shutdown or Standby low-power mode. To avoid losing the connection when the device enters Standby mode, the power can be maintained to the core by setting a bit in the DBGMCU configuration register (DBGMCU_CR). This also keeps the processor clocks active and holds off the reset, so that the debug session is maintained.

66.2.5 Debug and low-power modes

The devices include power-saving features that allow the core power domain to be switched off or stopped when not required. If the power is switched off or if the core is not clocked, all debug components are inaccessible to the debugger. To avoid this, power-saving mode emulation is implemented. If the emulation is enabled for a domain, the domain still enters power-saving mode, but its clock and power are maintained. In other words, the domain behaves as if it is in power-saving mode, but the debugger does not lose the connection.

The emulation mode is programmed in the microcontroller debug (DBGMCU) unit. For more information, refer to Section 66.12.

66.2.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 cannot 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 nonsecure code.

Debugger access to secure memory (when permitted) must be performed using secure transactions on the debug AHB, that is, with the PROT[6] bit set in the AP1 control/status word register (AP1_CSWR).

Debugger access is disabled while the processor is booting from system flash memory.

The following authentication signals are used by the system to determine which debug features are enabled or disabled:

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

The state of the signals is set according to the debug state as shown in Table 856, when TrustZone® is enabled (TZEN = 0xB4), and Table 857 when TrustZone is disabled (TZEN = 0xC3).

Table 856. Authentication signal states with TrustZone enabled (TZEN = 0xB4)

Debug stateAuthentication signal stateDescription
OPENdbgen = 1
spiden = 1
niden = 1
spniden = 1
Debug and trace is enabled whatever the state of the processor. Debugger access to secure memory is permitted.
CLOSED SECUREdbgen = 1
spiden = 0
niden = 1
spniden = 0
Debug and trace is enabled when the processor is in nonsecure state. Debugger access to nonsecure memory is permitted. Debugger access to secure memory is disabled.
CLOSEDdbgen = 0
spiden = 0
niden = 0
spniden = 0
Debug and trace is disabled.

Table 857. Authentication signal states with TrustZone disabled (TZEN = 0xC3)

Debug stateAuthentication signal stateDescription
OPENdbgen = 1
spiden = 1
niden = 1
spniden = 1
Debug and trace is enabled whatever the state of the processor. All memory and resources are considered nonsecure and accessible to the debugger.
CLOSEDdbgen = 0
spiden = 0
niden = 0
spniden = 0
Debug and trace is disabled.

The state of the authentication signals can be read from the DAUTHSTATUS register in the system control space (SCS) of the Cortex®-M33.

The debug state depends upon the product life cycle state and the debug authentication state (see Section 66.2.7).

Table 858. Life cycle state and debug states

Product life cycle stateDebug state
OPENOPEN
TZ_CLOSEDCLOSED-SECURE
CLOSED (debug not authenticated)CLOSED

Table 858. Life cycle state and debug states

Product life cycle stateDebug state
CLOSED (debug constrained)OPEN/CLOSED-SECURE(1)
LOCKEDCLOSED

1. Depends on authorization level.

66.2.7 Debug authentication

Figure 978. Product life cycle states and debug authentication

Flowchart showing the product life cycle and debug authentication states. It starts with a 'CLOSED' state, leading into a 'Debug authentication' block. Inside this block, a decision diamond 'Debug authentication' branches into 'Constrained-Debug' and 'NS-Regression'. 'Constrained-Debug' leads to 'Regression', which then leads to 'TZ-CLOSED/ TZ1-CLOSED'. There are feedback loops from 'Constrained-Debug' back to the 'Debug authentication' decision and from 'NS-Regression' back to the 'Debug authentication' block.
graph TD; CLOSED[CLOSED] --> DebugAuth[Debug authentication]; subgraph DebugAuthBlock [Debug authentication]; DebugAuth{Debug authentication} --> ConstrainedDebug[Constrained-Debug]; DebugAuth --> NSRegression[NS-Regression]; ConstrainedDebug --> Regression[Regression]; end; Regression --> TZClosed[TZ-CLOSED/ TZ1-CLOSED]; ConstrainedDebug --> DebugAuth; NSRegression --> DebugAuth;

MSv67391V4

Flowchart showing the product life cycle and debug authentication states. It starts with a 'CLOSED' state, leading into a 'Debug authentication' block. Inside this block, a decision diamond 'Debug authentication' branches into 'Constrained-Debug' and 'NS-Regression'. 'Constrained-Debug' leads to 'Regression', which then leads to 'TZ-CLOSED/ TZ1-CLOSED'. There are feedback loops from 'Constrained-Debug' back to the 'Debug authentication' decision and from 'NS-Regression' back to the 'Debug authentication' block.

Figure 978 shows the product life cycle and debug authentication states.

If the device is in CLOSED (product life cycle) state, the debug state is CLOSED. The debug authentication procedure allows a trusted debugger to reopen access without compromising sensitive information called the Root Of Trust (ROT).

Reopening the debug is possible only if sensitive asset security is ensured (and TrustZone is enabled (TZEN = 0xB4). This is called Constrained Debug, as constraints ensure the security of the ROT information.

Alternatively, a partial or full regression mechanism can be used when security of sensitive information cannot be guaranteed. This is called Regression, as regression ensures removal of the sensitive information before reopening the debug.

Debug authentication control principle

The debug authentication is one of the most critical security features of the system considering that with a debugger the user can access a large part of the system.

To control the reopening of the debug, the device imposes a debug authentication protocol.

The protocol implements a challenge response mechanism based on asymmetric cryptography to authenticate the host. It relies on a key pair, with a Public Key stored in the device, and a Private Key from the host library, used to sign a random value (the challenge) generated by the device.

The protocol implements a bidirectional communication between the host and the device through a mailbox interface located in the DBGMCU.

The host can write to the mailbox via the JTAG/SWD interface. It expects to get responses and messages from the device via the same mailbox.

The debug authentication protocol is launched on a power-on reset of the device, when an “open request” message is posted by the host.

The protocol is based on:

The implementation is ensured by code embedded in the system flash. This code is called automatically after reset if an initial message has been posted by the host in the mailbox.

After a first sequence of mutual authentication to align on protocol version, type of device, and similar parameters, the device generates a random value that to be signed by the host with a private key when building the response.

The STMicroelectronics implementation is based on the Arm® PSA-ADAC solution for debug authentication.

The debug authentication can be implemented using a proprietary or open-source protocol.

As this feature is critical for security, the STM32H5 devices come with debug authentication provisioned in system flash. STMicroelectronics provides the host tools integrated with some debug environments (IDEs).

Debug authentication provisioning

Debug authentication is natively supported by the STM32H5 platform. The data used by ST debug authentication (ST-DA) must be provisioned at a defined location in the secure key storage area (OBKeys defined in flash memory).

The debug authentication configuration must be done only when the PRODUCT_STATE is “Provisioning”, cannot be performed when PRODUCT_STATE is “Open”.

The following data must be provisioned (refer to Section 7.7.2: RSS user functions):

The data to provision are defined in Table 859. They depend upon the TZEN option byte setting (enabled or disabled).

Table 859. Definition of data to provision

Data sizeTZEN enabled (certificates)TZEN disabled (password: only full regression is allowed)
32 bytesSHA256 of the overall blob ([hash of root public key or password] and [permission mask] and [128 bits of zeros])
SHA256 of the ROT certificate public keySHA256 of the password
16 bytes128-bit permission mask (see Table 860)
128 bits are reserved, to be set to 0

Caution: Configure debug authentication as explained above before changing to states different from Open or Provisioning.

Table 860. Permission mask (Endianness: Little Endian)

Bit(s)Description
Bit 0When set it allows Intrusive debug from HDPL1 – NS
Bit 1When set it allows Intrusive debug from HDPL2 – NS
Bit 2When set it allows Intrusive debug from HDPL3 – NS
Bit 3Reserved
Bit 4When set it allows Intrusive debug from HDPL1 – S
Bit 5When set it allows Intrusive debug from HDPL2 – S
Bit 6When set it allows Intrusive debug from HDPL3 – S
Bits 7:11Reserved
Bit 12Regression to TZ-Closed, when 1 regression to TZ-Closed is allowed
Bit 13Reserved
Bit 14Regression (Full regression), when 1 full regression is allowed
Bit 15:127Reserved

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

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

By default, the JTAG-DP is selected after a system or a 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.

In SW-DP mode, the unused JTAG pins JTDI, JTDO, and nJTRST can be used for other functions.

Note: All SWJ port I/Os can be reconfigured to other functions by software, but debugging is no longer possible.

Note: The NRST pin is required to run debug authentication.

66.3.1 JTAG debug port

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

Figure 979. JTAG TAP state machine

A state machine diagram for the JTAG TAP state machine. It shows transitions between states based on JTMS=1 or JTMS=0 inputs. States include Test-Logic-Reset, Run-Test/Idle, Select-DR-Scan, Select-IR-Scan, Capture-DR, Capture-IR, Shift-DR, Shift-IR, Exit1-DR, Exit1-IR, Pause-DR, Pause-IR, Exit2-DR, Exit2-IR, Update-DR, and Update-IR. Transitions are labeled with JTMS=1 or JTMS=0.
graph TD
    TLR[Test-Logic-Reset] -- JTMS=1 --> TLR
    TLR -- JTMS=0 --> RTI[Run-Test/Idle]
    RTI -- JTMS=0 --> RTI
    RTI -- JTMS=1 --> SDR[Select-DR-Scan]
    SDR -- JTMS=1 --> SIR[Select-IR-Scan]
    SIR -- JTMS=1 --> TLR
    SDR -- JTMS=0 --> CDR[Capture-DR]
    SIR -- JTMS=0 --> CIR[Capture-IR]
    CDR -- JTMS=1 --> SDR
    CDR -- JTMS=0 --> SDR
    CDR -- JTMS=1 --> ShiftDR[Shift-DR]
    ShiftDR -- JTMS=0 --> ShiftDR
    ShiftDR -- JTMS=1 --> E1DR[Exit1-DR]
    E1DR -- JTMS=0 --> ShiftDR
    E1DR -- JTMS=1 --> PDR[Pause-DR]
    PDR -- JTMS=0 --> ShiftDR
    PDR -- JTMS=1 --> E2DR[Exit2-DR]
    E2DR -- JTMS=0 --> ShiftDR
    E2DR -- JTMS=1 --> UDR[Update-DR]
    UDR -- JTMS=0 --> SDR
    UDR -- JTMS=1 --> SDR
    CIR -- JTMS=1 --> SIR
    CIR -- JTMS=0 --> SIR
    CIR -- JTMS=1 --> ShiftIR[Shift-IR]
    ShiftIR -- JTMS=0 --> ShiftIR
    ShiftIR -- JTMS=1 --> E1IR[Exit1-IR]
    E1IR -- JTMS=0 --> ShiftIR
    E1IR -- JTMS=1 --> PIR[Pause-IR]
    PIR -- JTMS=0 --> ShiftIR
    PIR -- JTMS=1 --> E2IR[Exit2-IR]
    E2IR -- JTMS=0 --> ShiftIR
    E2IR -- JTMS=1 --> UIR[Update-IR]
    UIR -- JTMS=0 --> SIR
    UIR -- JTMS=1 --> SIR

MSv67392V1

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

The operation of the JTAG-DP is as follows:

  1. 1. When the TAPSM goes through the Capture-IR state, 0b0001 is transferred to the instruction register (IR) scan chain. The IR scan chain is connected between JTDI and JTDO.
  2. 2. 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:
    • – The LSB of the IR scan chain is output on JTDO.
    • – Bit[n] of the IR scan chain is transferred to bit[n-1].
    • – The value on JTDI is transferred to the MSB of the IR scan chain.
  3. 3. When the TAPSM goes through the Update-IR state, the value scanned into the IR scan chain is transferred to the instruction register.
  4. 4. When the TAPSM goes through the Capture-DR state, a value is transferred from one of the data registers to one of the DR scan chains, connected between JTDI and JTDO.
  5. 5. The value held in the instruction register determines which data register, and associated DR scan chain, are selected.
  6. 6. This data is then shifted while the TAPSM is in the Shift-DR state, in the same manner as the IR shifts in the Shift-IR state.
  7. 7. When the TAPSM goes through the Update-DR state, the value scanned into the DR scan chain is transferred to the selected data register.
  8. 8. When the TAPSM is in the Run-Test/Idle state, no special actions occur. The IDCODE instruction is loaded in IR.

When active, the nJTRST signal resets the state machine asynchronously to the test-logic-reset state.

The data registers corresponding to the 4-bit IR instructions are listed in the table below.

Table 861. JTAG-DP data registers

IR instructionDR registerScan chain lengthDescription
0000 to 0111(BYPASS)1Not implemented: BYPASS selected
1000ABORT35ABORT register
– bits 34:3 = APABORT[31:0]: Write 0x0000 0001 to abort an ongoing access port transaction
– bits 2:1 = A[3:2] = 00
– bit 0 = RnW = 0: write only
1001(BYPASS)1Reserved: BYPASS selected

Table 861. JTAG-DP data registers (continued)

IR instructionDR registerScan chain lengthDescription
1010DPACC35Debug port access register
Initiates the debug port and gives 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 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 gives 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 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
1110IDCODE32Identification code
0x6BA0 0477: Cortex®-M33 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 (see Section 66.13).

66.3.2 Serial-wire debug port

The serial-wire debug protocol uses the following 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, see Table 862
  2. 2. Acknowledge response (3 bits) transmitted by the target, see Table 863
  3. 3. Data transfer (33 bits) transmitted by the host (in case of a write) or target (in case of a read), see Table 864

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 862. Packet request

Bit fieldNameDescription
0StartMust be 1
1APnDP– 0: DP register access - see Section 66.3.3
– 1: AP register access - see Section 66.4
2RnW– 0: write request
– 1: read request
4:3A(3:2)Address field of the DP or AP register (refer to Table 866 or Table 868)
5ParitySingle bit parity of preceding bits
6Stop0
7ParkNot driven by host, must be read as 1 by target

Table 863. ACK response

Bit fieldNameDescription
2:0ACK– 000: FAULT
– 010: WAIT
– 100: OK

Table 864. Data transfer

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

In the case of a FAULT or WAIT ACK response from the target, the data transfer phase is canceled, unless overrun detection is enabled: in this case, the data is 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 in 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.

66.3.3 Debug port registers

Both the SW-DP and the JTAG-DP access the debug port (DP) registers listed in Table 866.

The debugger can access the DP registers as follows:

  1. 1. Program the A(3:2) field in the DPACC 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 reset (see Table 862). The write data are sent in the data phase.
  2. 2. To access one of the banked DP registers at the address 0x4, the register number must first be written to the DP_SELECTR register at the address 0x8. Any subsequent read or write to address 0x4 accesses the register corresponding to the contents of the DP_SELECTR register.

Table 865. Debug port registers

AddressA(3:2) valueR/WDescription
0x000RDP debug port identification register (DP_DPIDR) contains the IDCODE for the debug port.
WDP abort register (DP_ABORTR)(1) aborts the current AP transaction. This register is also used to clear the error flags in the DP_CTRLSTATR register.
0x401R/WIf DP_SELECTR.DPBANKSEL[3:0] = 0x0, DP control and status register (DP_CTRLSTATR) controls the DP and provides status information.
If DP_SELECTR.DPBANKSEL[3:0] = 0x1, DP data link control register (DP_DLCR)(2) controls the operating mode of the SWD data link.
If DP_SELECTR.DPBANKSEL[3:0] = 0x2, DP target identification register (DP_TARGETIDR) provides target identification information.
If DP_SELECTR.DPBANKSEL[3:0] = 0x3, DP data link protocol identification register (DP_DLPIDR)(2) provides the SWD protocol version.
0x810RDP event status register (DP_RESENDR)(2) 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 access port select register (DP_SELECTR) selects the access port, access port register bank, and DP register at the address 0x4.
0xC11RDP read buffer register (DP_RDBUFFR)
– Via JTAG-DP, this register allows the debugger to get the final result after a sequence of operations (without requesting new JTAG-DP operation)
– Via SW-DP, this register contains the result of the preceding AP read access, allowing a new AP access to be avoided.

1. Access to the AP ABORT register from the JTAG-DP is done using the ABORT instruction.

2. 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_ABORTR)

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.ORUNERRCLRWDERRCLRSTKERRCLRRes.DAPABORT
wwww
ST logo
ST logo

Bit 3 WDERRCLR: write data error clear

0: no effect

1: WDATAERR bit cleared in DP_CTRL/STATR register

Bit 2 STKERRCLR: sticky error clear

0: no effect

1: STICKYERR bit cleared in DP_CTRL/STATR register

Bit 1 Reserved, must be kept at reset value.

Bit 0 DAPABORT: current AP transaction aborted if excessive number of WAIT responses returned

This bit indicates that the transaction is stalled.

0: no effect

1: transaction aborted

DP control and status register (DP_CTRLSTATR)

Address offset: 0x4

Reset value: 0x0000 0000

This register is accessible when DP_SELECTR.DPBANKSEL[3:0] = 0x0.

31302928272625242322212019181716
Res.Res.CDBGPWRUPACKCDBGPWRUPREQRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.WDATAERRREADOKSTICKYERRRes.Res.Res.STICKYORUNORUNDETECT
rrrrr

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

Bit 29 CDBGPWRUPACK: debug power-up acknowledge

See description in Section 66.2.5: Debug and low-power modes.

0: DCLK gated

1: DCLK enabled

Bit 28 CDBGPWRUPREQ: debug power-up request

This bit controls the DCLK enable request signal.

0: requests DCLK gating

1: requests DCLK enable

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

Bit 7 WDATAERR: write data error (read-only) in SW-DP

This bit indicates that there is a parity or framing error on the data phase of a write, or a write accepted by the DP is then discarded without being submitted to the AP.

This bit is reset by writing 1 to the ABORT.WDERRCLR bit.

0: no error

1: an error occurred

Note: This bit is reserved in JTAG-DP.

Bit 6 READOK: AP read response (read-only) in SW-DP

This bit 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 (read-only in SW-DP, read/write in JTAG-DP)

This bit indicates that an error occurred in an AP transaction. It is reset by writing 1 to the DP_ABORTR.STKERRCLR bit (in SW-DP and JTAG-DP)

0: no error

1: an error occurred

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

Bit 1 STICKYORUN: overrun (read-only in SW-DP, read/write in JTAG-DP).

This bit indicates that an overrun occurred (new transaction received before previous transaction completed). This bit is only set if the ORUNDETECT bit is set. It is reset by writing 1 to the DP_ABORTR.ORUNERRCLR bit (in SW-DP and JTAG-DP).

0: no overrun

1: an overrun occurred

Bit 0 ORUNDETECT: overrun detection mode enable.

0: disabled

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

Address offset: 0x4

Reset value: 0x0000 0000

This register is accessible when DP_SELECTR.DPBANKSEL[3:0] = 0x1.

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]WIREMODE[1:0]Res.Res.Res.Res.Res.Res.
rrrr

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

Bits 7:6 WIREFMODE[1:0]: SW-DP mode
0x0: synchronous mode

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

DP target identification register (DP_TARGETIDR)

Address offset: 0x4

Reset value: 0xXXXX 0041

This register is accessible when DP_SELECTR.DPBANKSEL[3:0] = 0x2.

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

Bits 27:12 TPARTNO[15:0]: target part number
0x4840: STM32H562/563/573
0x4780: STM32H523/533
0x47C0: STM32H543/553

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

This register is accessible when DP_SELECTR.DPBANKSEL[3:0] = 0x3.

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
this field defines the instance number for the device in a multi-drop system.
0x0: instance number 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 event status register (DP_RESENDR)

Address offset: 0x8

Reset value: 0x0000 0000

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

Bits 31:0 RESEND[31:0]: value returned by the last AP read or DP_RDBUFF read
This register is used in the event of a corrupted read transfer.

DP access port select register (DP_SELECTR)

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

Bits 31:24 APSEL[7:0]: access port select
This field selects the access port for the next transaction.
0x00: AP0 - System debug access port (APB-AP)
0x01: AP1 - Cortex®-M33 debug access port (AHB-AP)
Others: reserved

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

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

Bits 3:0 DPBANKSEL[3:0]: DP register bank select

This field selects the register at the 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_RDBUFFR)

Address offset: 0xC

Reset value: 0x0000 0000

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

Bits 31:0 RDBUFF[31:0]: value returned by the last AP read access

The value returned by an AP read access can be obtained using a second read access to the same address (initiates a new transaction on the corresponding bus), or can be read from this register, in which case no new AP transaction occurs.

66.3.4 Debug port register map and reset values

These registers are not on the CPU memory bus. They are accessed only through the SW-DP and JTAG-DP debug interfaces.

The debug port address offset is 4-bit wide, where the two most significant bits are defined in the JTAG-DP register DPACC or SW-DP packet request A[3:2] field. The two least significant bits are 00.

Table 866. Debug port register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x0DP_DPIDRREVISION [3:0]PARTNO[7:0]Res.Res.Res.MINVERSION [3:0]DESIGNER[10:0]Res.
Reset value01101011101000010010001110111
0x0DP_ABORTRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ORUNERRCLRWDERRCLRSTKERRCLRRes.DAPABORT
Reset value0000

Table 866. Debug port register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x4(1)DP_CTRLSTATRRes.Res.CDBGPWUPACKCDBGPWUPREQRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WDATAERRREADOKSTICKYERRRes.Res.Res.STICKYORUNORUNDETECT
Reset value0000000
0x4(2)DP_DLCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TURNROUND[1:0]WIREDMODE[1:0]Res.Res.Res.Res.Res.Res.
Reset value0000
0x4(3)DP_TARGETIDRTREVISION
[3:0]
TPARTNO[15:0]TDESIGNER[10:0]Res.
Reset valueXXXXXXXXXXXXXXXX000000000100000
0x4(4)DP_DLPIDRTINSTANCE[3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PROTSVN[3:0]
Reset value00000001
0x8DP_RESENDRRESEND[31:0]
Reset value00000000000000000000000000000000
0x8DP_SELECTRAPSEL[7:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.APBANKSEL[3:0]DPBANKSEL[3:0]
Reset valuexxxxxxxxxxxxxxxx
0xCDP_RDBUFFRRDBUFF[31:0]
Reset value00000000000000000000000000000000
  1. 1. DP_SELECTR.DPBANKSEL[3:0] = 0x0.
  2. 2. DP_SELECTR.DPBANKSEL[3:0] = 0x1.
  3. 3. DP_SELECTR.DPBANKSEL[3:0] = 0x2.
  4. 4. DP_SELECTR.DPBANKSEL[3:0] = 0x3.

66.4 Access ports

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

66.4.1 Access port registers

The access ports are of type MEM-AP: the debug and trace component registers are mapped in the address space of the AHB. The AP is seen by the debugger as a set of 32-bit registers organized 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 868.

The address of the AP registers is composed of the following fields:

The content of the DP_SELECTR.APSEL[3:0] field defines which MEM-AP is being accessed.

Table 867. MEM-AP registers

AddressAPBANKSELA(3:2)NameDescription
0x000x00CSWRControl/status word register
0x040x01TARTransfer address register
Target address for the bus transaction.
0x08---Reserved
0x0C0x03DRWRData read/write register
Access to this register triggers a corresponding transaction on the debug bus to the address in TAR[31:0]
0x100x10BD0RBanked data 0 register
Access to this register triggers a corresponding transaction on the debug bus to the address in TAR[31:4] + 0x0.
0x140x11BD1RBanked data 1 register
Access to this register triggers a corresponding transaction on the debug bus to the address in TAR[31:4] + 0x4.
0x180x12BD2RBanked data 2 register
Access to this register triggers a corresponding transaction on the debug bus to the address in TAR[31:4] + 0x8.
0x1C0x13BD3RBanked data 3 register
Access to this register triggers a corresponding transaction on the debug bus to the address in TAR[31:4] + 0xC.
0x20---Reserved
0x24 to 0xEC---Reserved
0xF0---Reserved
0xF40xF1CFGRConfiguration register (read only)
0xF80xF2BASERDebug base address register (read only)
Base address of the ROM table

Table 867. MEM-AP registers (continued)

RM0481Address 0xFCcolumn_30xF (see (x = 0, 1)Table 862 .3IDRcolumn_8column_9column_10column_11Descriptioncolumn_13column_14column_15to to initiate
Architecture Specification[1] .
31 DBGS302928272625242322212019181716
WEN rwRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.MODE[3:0]TRINDEVIC
PROGEENADDRINC[1:0]Res.SIZE[2:0]
rwrwrwrwrrrwrwrrr
Bit 31DBGSWEN: software access enable

The debugger can access the AP registers as follows:

  1. 1. Program the APSEL[3:0] field in the DP access port select register (DP_SELECTR) to choose the AP, and the APBANKSEL[3:0] field in DP_SELECTR to select the register bank to be accessed.
  2. 2. Program the A(3:2) field in the APACC data 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 862). The write data is sent in the data phase.

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

  1. 1. Program the transaction target address in the APx transfer address register (APx_TAR) (x = 0, 1).
  2. 2. Program the AP1 control/status word register (AP1_CSWR), if necessary, with the transfer parameters (Addrlnc for example).
  3. 3. Write to or read from the APx data read/write register (APx_DRWR) (x = 0, 1) to initiate a bus transaction at the address held in AP_TAR. Alternatively, a read or write to the APx banked data n register (APx_BDnR) (x = 0, 1) triggers access to the TAR[31:4] + n address, allowing up to four consecutive addresses to be accessed without changing the address in the AP_TAR register.

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

AP0 control/status word register (AP0_CSWR)

Address offset: 0x0

Reset value: 0x8000 0042

Bit 31 DBGSWEN: software access enable

Enables or disables software access to the APB bus

0: disable software access

1: enable software access

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

AP1 control/status word register (AP1_CSWR)

Address offset: 0x0

Reset value: 0x43X0 00X2

31302928272625242322212019181716
Res.SPROTRes.Res.PROT[3:0]SPSTATUSRes.Res.Res.Res.Res.Res.Res.
rwrwrwrwrwr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.TRINPROGDBGSTATUSADDRINC[1:0]Res.SIZE[2:0]
rrrwrwrwrwrw
ST logo
ST logo

Bits 27:24 PROT[3:0]: bus transfer protection

This field sets the protection attributes HPROT[3:0] of the bus transfer.

0bXXX0: instruction access

0bXXX1: data access

0bXX0X: user mode

0bXX1X: privilege mode

0bX0XX: nonbufferable

0bX1XX: bufferable

0b0XXX: nonshareable, no look-up, nonmodifiable

0b1XXX: shareable, look-up, modifiable

Bit 23 SPISTATUS: secure debug authentication status

This field indicates the state of the SPIDEN signal

0: No secure AHB transfers allowed

1: Secure AHB transfers allowed

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

Bit 7 TRINPROG: transfer in progress (read only)

This field indicates whether a transfer is currently in progress on the APB master port

0: No AHB transfer in progress

1: AHB transfer in progress

Bit 6 DBGSTATUS: debug enable (DBGGEN) status

0: AHB transfers blocked

1: AHB transfers 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 incremented by the size of the transaction (SIZE field), in bytes. Single transfer.

0x2: address incremented by the size of the transaction (SIZE field), in bytes. Packs four 8-bit or two 16-bit transfers into a 32-bit DAP transfer. Multiple transactions are carried out on the AHB interface.

Others: 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-bit)

0x1: halfword (16-bit)

0x2: word (32-bit)

Others: reserved

APx transfer address register (APx_TAR) (x = 0, 1)

Address offset: 0x04

Reset value: 0xXXXXX XXXX

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

Bits 31:0 TA[31:0]: address of current transfer. In AP0, TA[1:0] are fixed at 0.

APx data read/write register (APx_DRWR) (x = 0, 1)

Address offset: 0x0C

Reset value: 0xXXXXX XXXX

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

Bits 31:0 TD[31:0]: data of current transfer

APx banked data n register (APx_BDnR) (x = 0, 1)

Address offset: 0x10 + 0x4 * n, (n = 0 to 3)

Reset value: 0x0000 0000

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

Bits 31:0 DATA[31:0]: banked data of current transfer to address TA [31:4] + 4 * n.

Auto address incrementing is not performed on APx_BD0-3R. Banked transfers are only supported for word transfers.

APx base address register (APx_BASER) (x = 0, 1)

Address offset: 0xF8

Reset value: AP 0: 0xE00E 0003

Reset value: AP 1: 0xE00F E003

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

Bits 31:12 BASEADDR[31:12]: base address (bits 31 to 12) of the first ROM table
The 12 LSBs are zero since the ROM table must be aligned on a 4-Kbyte boundary.
0xE00E0: AP0
0xE00FE: AP1

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 components presence
Indicates that debug components are present on the access port bus.
1: debug components present

APx identification register (APx_IDR) (x = 0, 1)

Address offset: 0xFC

Reset value: AP 0: 0x5477 0002

Reset value: AP 1: 0x8477 0001

31302928272625242322212019181716
REVISION[3:0]JEDECBANK[3:0]JEDECCODE[6:0]CLASS[3]
rrrrrrrrrrrrrrrr
1514131211109876543210
CLASS[2:0]Res.Res.Res.Res.Res.IDENTITY[7:0]
rrrrrrrrrrr

Bits 31:28 REVISION[3:0]: revision number
0x5: r1p0
0x8: r0p9

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

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

ST logo
ST logo

Bits 16:13 CLASS[3:0]:

0x1: MEM-AP

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

Bits 7:0 IDENTITY[7:0]:

0x1: AHB-AP

0x2: APB-AP

66.4.2 Access port register map

These registers are not on the CPU memory bus. They are only accessed through SW-DP and JTAG-DP debug interfaces.

The access port address is 8-bit wide, defined by DP_SELECTR.APBANKSEL[3:0] field and by JTAG-DP register DPACC or SW-DP packet request A[3:2] field.

Table 868. Access port register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x00AP0_CSWRDBGSWENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MODE[3:0]TRINPROGDEVICEENADDRINC[1:0]Res.SIZE[2:0]
Reset value100000100010
0x00AP1_CSWRRes.SPROTRes.Res.PROT[3:0]SPSTATUSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MODE[3:0]TRINPROGDBGSTATUSADDRINC[1:0]Res.SIZE[2:0]
Reset value10011X00000X00010
0x04APx_TARTA[31:0]
Reset valueXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0x08ReservedReserved
0x0CAPx_DRWRTD[31:0]
Reset valueXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0x10APx_BD0RDATA[31:0]
Reset value00000000000000000000000000000000
0x14APx_BD1RDATA[31:0]
Reset value00000000000000000000000000000000
0x18APx_BD2RDATA[31:0]
Reset value00000000000000000000000000000000
0x1CAPx_BD3RDATA[31:0]
Reset value00000000000000000000000000000000
0x20 to 0xF4Reserved
0xF8AP0_BASERBASEADDR[31:12]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FORMATENTRYPRESENT
Reset value1110000000000111000011

Table 868. Access port register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xF8AP1_BASERBASEADDR[31:12]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FORMATENTRY
Reset value1110000000001111111011
0xFCAP0_IDRREVISION[3:0]JEDECBANK[3:0]JEDECCODE[6:0]CLASS[3:0]Res.Res.Res.Res.Res.IDENTITY[7:0]
Reset value010101000111011100000000010
0xFCAP0_IDRREVISION[3:0]JEDECBANK[3:0]JEDECCODE[6:0]CLASS[3:0]Res.Res.Res.Res.Res.IDENTITY[7:0]
Reset value100001000111011100000000001

66.5 ROM tables

The ROM table is a CoreSight component that contains the base addresses of the CoreSight debug components accessible via the access port to which it is attached. These tables allow a debugger to discover the topology of the CoreSight system automatically.

There is one top-level ROM table behind each access port, APn. The base address of this ROM table can be obtained by reading the APn_BASER register of the access port. The top-level ROM table may point in turn to other ROM tables.

The system ROM table is pointed to by the AP0 base register, AP0_BASER. It contains the base address pointer for the DBGMCU.

The system ROM table occupies a 4-Kbyte, 32-bit wide chunk of address space, from 0xE00E 4000 to 0xE00E 4FFC, when accessed by the debugger. It can be accessed by the CPU at the address range 0x4402 4000 to 0x4402 4FFC.

Table 869. System ROM table

Address offset in ROM tableComponent nameComponent base addressComponent address offsetSize (Kbytes)Entry
0x000DBGMCU0xE00E 4000 (debugger)
0x4402 4000 (CPU)
0x0000 400040x0000 4003
0x004Top of table---0x0000 0000
0x008 to 0xFC8Reserved---0x0000 0000
0xFCC to 0xFFCROM table registers---See Table 872
ST logo
ST logo

There are two ROM tables in the CPU subsystem. The MCU ROM table is pointed to by the AP1 base register, AP1_BASER. It contains the base-address pointer for the processor ROM table and for the TPIU registers.

The MCU ROM table (see the table below) occupies a 4-Kbyte, 32-bit wide chunk of address space, from 0xE00F E000 to 0xE00F EFFC.

Table 870. MCU ROM table

Address offset 0x000 0x004Component Processor ROM table TPIUComponent 0xE00F F000 0xE004 0000Component 0x0000 1000 0xFFF4 2000Size 4 40x0000 1003 0xFFF4 2003
0x008Reserved---0x1FF0 2002
0x00CReserved---0x1FF0 2002
0x010Top of table---0x0000 0000
0x014 to 0xFC8Reserved---0x0000 0000
0xFCC to 0xFFCROM table registers---See Table 873
DWT, ITM, ETM, and CTI. The processor ROM table (seeTable 871) occupies a 4-Kbyte, 32-bit wide chunk of address
AddressComponentTable 871. Processor ROM table ComponentComponentSize
in ROM tablenamebase addressaddress offset
0xE00F F000SCS0xE000 E0000xFFF0 F00040xFFF0 F003
0xE00F F004DWT0xE000 10000xFFF0 200040xFFF0 2003
0xE00F F008BPU0xE000 20000xFFF0 300040xFFF0 3003
0xE00F F00CITM0xE000 00000xFFF0 100040xFFF0 1003
0xE00F F010Reserved---0xFFF4 1002
0xE00F F014ETM0xE004 10000xFFF4 200040xFFF4 2003
0xE00F F018CTI0xE004 20000xFFF4 300040xFFF4 3003
0xE00F F01CReserved---0xFFF4 4002
0xE00F F020Top of table---0x0000 0000
0xE00F F024 to 0xE00F FFC8Reserved---0x0000 0000
0xE00F FFCC to 0xE00F FFFCROM table registers---See Table 874

The processor ROM table contains the base-address pointer for the system control space (SCS) registers, that allow the debugger to identify the CPU core, as well as for the BPU, DWT, ITM, ETM, and CTI.

The processor ROM table (see Table 871) occupies a 4-Kbyte, 32-bit wide chunk of address space, from 0xE00F F000 to 0xE00F FFFC.

Table 871. Processor ROM table

Figure 980. CoreSight topology

CoreSight topology diagram showing various components and their memory-mapped registers. The diagram is organized into several sections: AP1 (AHB-AP), MCU ROM table, AP0 (APB-AP), System ROM table, Processor ROM table, Trace port (TPIU), MCU debug (DBGMCU), System control space (SCS), Breakpoint unit (BPU), Embedded trace (ETM), Data watchpoint/trace (DWT), Instrumentation trace (ITM), and Cross trigger (CTI). Each section contains a list of registers with their offsets and descriptions. Arrows indicate the mapping of these registers to specific memory addresses in the system's address space.

AP1 (AHB-AP)
Base register (0xF8)
0xE00FE000

MCU ROM table @0xE00FE000
0x000 Offset: 0x00001000
0x004 Offset: 0xFFF42000
0x008 Reserved
0x00C Reserved
0x010 Top of table
0xFD0 PIDR4
0xFFC CIDR3

AP0 (APB-AP)
Base register (0xF8)
0xE00E0000

System ROM table @0xE00E0000
0x000 Offset: 0x00004000
0x004 Top of table
0xFD0 PIDR4
0xFFC CIDR3

Processor ROM table @0xE00FF000
0x000 Offset: 0xFFF0F000
0x004 Offset: 0xFFF02000
0x008 Offset: 0xFFF03000
0x00C Offset: 0xFFF01000
0x010 Reserved
0x014 Offset: 0xFFF42000
0x018 Offset: 0xFFF43000
0x01C Reserved
0x020 Top of table
0xFD0 PIDR4
0xFFC CIDR3

Trace port (TPIU) @0xE0040000
0x000 Register file base
0xFD0 PIDR4
0xFFC CIDR3

MCU debug (DBGMCU) @0xE00E4000
0x000 Register file base
0xFD0 PIDR4
0xFFC CIDR3

System control space (SCS) @0xE000E000
0x000 Register file base
0xFD0 PIDR4
0xFFC CIDR3

Breakpoint unit (BPU) @0xE0002000
0x000 Register file base
0xFD0 PIDR4
0xFFC CIDR3

Embedded trace (ETM) @0xE0041000
0x000 Register file base
0xFD0 PIDR4
0xFFC CIDR3

Data watchpoint/trace (DWT) @0xE0001000
0x000 Register file base
0xFD0 PIDR4
0xFFC CIDR3

Instrumentation trace (ITM) @0xE0000000
0x000 Register file base
0xFD0 PIDR4
0xFFC CIDR3

Cross trigger (CTI) @0xE0042000
0x000 Register file base
0xFD0 PIDR4
0xFFC CIDR3

MSv67393V1

CoreSight topology diagram showing various components and their memory-mapped registers. The diagram is organized into several sections: AP1 (AHB-AP), MCU ROM table, AP0 (APB-AP), System ROM table, Processor ROM table, Trace port (TPIU), MCU debug (DBGMCU), System control space (SCS), Breakpoint unit (BPU), Embedded trace (ETM), Data watchpoint/trace (DWT), Instrumentation trace (ITM), and Cross trigger (CTI). Each section contains a list of registers with their offsets and descriptions. Arrows indicate the mapping of these registers to specific memory addresses in the system's address space.

66.5.1 System ROM table registers

System ROM memory type register (SYSROM_MEMTYPER)

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 present on this bus

System ROM 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: The register file occupies a single 4-Kbyte region.

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

0x0: STMicroelectronics JEDEC continuation code

System ROM CoreSight peripheral identity register 0 (SYSROM_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 00XX

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

0x84: STM32H562/563/573

0x78: STM32H523/533

0x7C: STM32H543/553

System ROM CoreSight peripheral identity register 1 (SYSROM_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 000X

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

0x4: STM32H5 series

System ROM 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: rev r0p0

Bit 3 JEDEC: JEDEC assigned value
1: designer identification specified by JEDEC

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

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

System ROM 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 identification bits [7:0]
0x0D: Common identification value

System ROM 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 identification bits [15:12] - component class
0x1: ROM table component

Bits 3:0 PREAMBLE[11:8]: Component identification bits [11:8]
0x0: Common identification value

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

System ROM 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 identification bits [31:24]
0xB1: Common identification value

66.5.2 System ROM table register map

Table 872. System ROM table register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xFCCSYSROM_
MEMTYPER
Res.Res.Res.Res.Res.Res.Res.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
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
0xFD4 to
FDC
Reserved
0xFE0SYSROM_PIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PARTNUM[7:0]
Reset valueXXXXXXXX
0xFE4SYSROM_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 value0000XXXX
0xFE8SYSROM_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
0xFECSYSROM_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
0xFF0SYSROM_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
0xFF4SYSROM_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
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

Refer to Table 869 for register boundary addresses.

66.5.3 MCU ROM table registers

MCU ROM memory type register (MCUROM_MEMTYPER)

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 present on this bus

MCU ROM CoreSight peripheral identity register 4 (MCUROM_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: The register file occupies a single 4-Kbyte region.

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

0x0: STMicroelectronics JEDEC continuation code

MCU ROM CoreSight peripheral identity register 0 (MCUROM_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 00XX

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

0x84: STM32H562/563/573

0x78: STM32H523/533

0x7C: STM32H543/553

MCU ROM CoreSight peripheral identity register 1 (MCUROM_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 000X

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

0x4: STM32H5 series

MCU ROM CoreSight peripheral identity register 2 (MCUROM_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: rev r0p0

Bit 3 JEDEC : JEDEC assigned value

1: designer identification specified by JEDEC

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

0x2: STMicroelectronics JEDEC code

MCU ROM CoreSight peripheral identity register 3 (MCUROM_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

MCU ROM CoreSight component identity register 0 (MCUROM_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 identification bits [7:0]

0x0D: Common identification value

MCU ROM CoreSight peripheral identity register 1 (MCUROM_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 identification bits [15:12] - component class

0x1: ROM table component

Bits 3:0 PREAMBLE[11:8] : Component identification bits [11:8]

0x0: Common identification value

MCU ROM CoreSight component identity register 2 (MCUROM_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 identification bits [23:16]

0x05: common identification value

MCU ROM CoreSight component identity register 3 (MCUROM_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 identification bits [31:24]

0xB1: Common identification value

66.5.4 MCU ROM table register map

Table 873. MCU ROM table register map and reset values
OffsetRegister name313029282726252423222120191817161514131211109876543210
0xFCCMCUROM_MEMTYPERRes.Res.Res.Res.Res.Res.Res.Res.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 value1
0xFD0MCUROM_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.Res.
Reset value00000000
0xFD4 to FDCReserved

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xFE0MCUROM_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 valueXXXXXXXX
0xFE4MCUROM_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 value0000XXXX
0xFE8MCUROM_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
0xFECMCUROM_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
0xFF0MCUROM_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
0xFF4MCUROM_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
0xFF8MCUROM_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
0xFFCMCUROM_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

Refer to Table 870 for register boundary addresses.

66.5.5 Processor ROM table registers

CPU ROM memory type register (CPUROM_MEMTYPER)

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

1: system memory present on this bus

CPU ROM CoreSight peripheral identity register 4 (CPUROM_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: The register file occupies a single 4-Kbyte region.

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

CPU ROM CoreSight peripheral identity register 0 (CPUROM_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 00C9

31302928272625242322212019181716
Res.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]0xC9: Cortex ® -M33

CPU ROM CoreSight peripheral identity register 1 (CPUROM_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00B4

31302928272625242322212019181716
Res.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 codeBits 3:0 PARTNUM[11:8] : part number bits [11:8]0x4: Cortex ® -M33

CPU ROM CoreSight peripheral identity register 2 (CPUROM_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: rev r0p0

Bit 3 JEDEC : JEDEC assigned value

1: Designer ID specified by JEDEC

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

CPU ROM CoreSight peripheral identity register 3 (CPUROM_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

CPU ROM CoreSight component identity register 0 (CPUROM_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 identification bits [7:0]

0x0D: Common identification value

CPU ROM CoreSight peripheral identity register 1 (CPUROM_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 identification bits [15:12] - component class
0x1: ROM table component

Bits 3:0 PREAMBLE[11:8]: Component identification bits [11:8]
0x0: Common identification value

CPU ROM CoreSight component identity register 2 (CPUROM_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 identification bits [23:16]
0x05: common identification value

CPU ROM CoreSight component identity register 3 (CPUROM_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 identification bits [31:24]

0xB1: common identification value

66.5.6 Processor ROM table register map

Table 874. CPU ROM table register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xFCCCPUROM_MEMTYPERRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SYSEMEM
Reset value1
0xFD4 to FDCReserved
0xFD0CPUROM_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.SIZE [3:0]JEP106CON [3:0]
Reset value00000100
0xFE0CPUROM_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.PARTNUM[7:0]
Reset value11001001
0xFE4CPUROM_PIDR1Res.Res.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 value10110100
0xFE8CPUROM_PIDR2Res.Res.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 value00001011
0xFECCPUROM_PIDR3Res.Res.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
0xFF0CPUROM_CIDR0Res.Res.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
0xFF4CPUROM_CIDR1Res.Res.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
0xFF8CPUROM_CIDR2Res.Res.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
0xFFCCPUROM_CIDR3Res.Res.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

Refer to Table 871 for register boundary addresses.

66.6 Data watchpoint and trace unit (DWT)

The DWT provides four comparators that can be used as one of the following:

It also contains counters for:

A DWT comparator compares the value held in its DWT comparator x register (DWT_COMPxR) with one of the following:

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 DebugMonitor exception, or causes the processor to halt execution and enter the debug state.

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

66.6.1 DWT registers

The DWT registers are located at the address range 0xE000 1000 to 0xE000 1FFC.

DWT control register (DWT_CTRLR)

Address offset: 0x000

Reset value: 0x4000 0000

31302928272625242322212019181716
NUMCOMP[3:0]NOTRCPKTNOEXTTRIGNOCYCCNTNOPRFCNTCYCDISSCYCEVTENAFOLDEVTENALSUEVTENASLEEPEVTENAEXCEVTENACPIEVTENAEXCTRCENA
rrrrrrrrrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.PCSAMPLENASYNCTAP[1:0]CYCTAPPOSTINIT[3:0]POSTRESET[3:0]CYCCNTENA
rwrwrwrwrwrwrwrwrwrwrwrwrw
Bits 31:28 NUMCOMP[3:0] : number of comparators implemented (read only)

0x4: four comparators

Bit 27 NOTRCPKT : trace sampling and exception tracing support (read only)

0: supported

Bit 26 NOEXTTRIG : external match signal, CMPMATCH support (read only)

0: supported

Bit 25 NOCYCCNT : cycle counter support (read only)

0: supported

Bit 24 NOPRFCNT : profiling counter support (read only)

0: supported

Bit 23 CYCDISS : cycle counter disabled secure.

Controls whether the cycle counter is disabled in secure mode.

0: no effect

1: disable incrementing of the cycle counter when the processor is in secure state

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

0: disabled

1: enabled

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

0: disabled

1: enabled

Bit 20 LSUEVTENA : enable for LSU counter overflow event generation

0: disabled

1: enabled

Bit 19 SLEEPEVTENA : enable for sleep counter overflow event generation

0: disabled

1: enabled

DWT cycle count register (DWT_CYCCNTR)

Address offset: 0x004

Reset value: 0x0000 0000

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

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

DWT CPI count register (DWT_CPICNTR)

Address offset: 0x008

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.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_LSUCNTR, and counts any instruction fetch stalls.

DWT exception count register (DWT_EXCCNTR)

Address offset: 0x00C

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.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 count register (DWT_SLPCNTR)

Address offset: 0x010

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

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

Bits 7:0 SLEEP_CNT[7:0]: sleep cycle counter

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

DWT LSU count register (DWT_LSUCNTR)

Address offset: 0x014

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

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

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

Counts additional cycles required to execute load and store instructions.

DWT fold count register (DWT_FOLDCNTR)

Address offset: 0x018

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.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: 0xXXXX XXXX

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 register (DWT_COMPxR)

Address offset: 0x020 + 0x010 * x, (x = 0 to 3)
Reset value: 0xXXXX XXXX

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

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

DWT function register 0 (DWT_FUNCTR0)

Address offset: 0x028
Reset value: 0x5800 0000

31302928272625242322212019181716
ID[4:0]Res.Res.MATCHEDRes.Res.Res.Res.Res.Res.Res.Res.
rrrrrr
1514131211109876543210
Res.Res.Res.Res.DATAVSIZE[1:0]Res.Res.Res.Res.ACTION[1:0]MATCH[3:0]
rwrwrwrwrwrwrwrw

Bits 31:27 ID[4:0]: capability identification
Identifies the capability for match for comparator 0.
0b01011: Cycle Counter, Instruction Address, Data Address and Data Address With Value

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

ST logo
ST logo

Bit 24 MATCHED: comparator match

Indicates if a comparator match has occurred since the register was last read.
0: no match
1: a match occurred

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

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

Defines the size of the object being watched for by Data Value and Data Address comparators.
0x0: 1 byte
0x1: 2 bytes
0x2: 4 bytes
0x3: reserved

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

Bits 5:4 ACTION[1:0]: action on match

0x0: trigger only
0x1: generate debug event
0x2: For a Cycle Counter, Instruction Address, Data Address, Data Value or Linked Data Value comparator, generate a Data Trace Match packet. For a Data Address With Value comparator, generate a Data Trace Data Value packet.
0x3: For a Data Address Limit comparator, generate a Data Trace Data Address packet. For a Cycle Counter, Instruction Address Limit, or Data Address comparator, generate a Data Trace PC Value packet. For a Data Address With Value comparator, generate both a Data Trace PC Value packet and a Data Trace Data Value packet.

Bits 3:0 MATCH[3:0]: match type

Controls the type of match generated by comparator 0.
For possible values of this field, refer to [4].

DWT function register 1 (DWT_FUNCTR1)

Address offset: 0x038

Reset value: 0xD000 0000

31302928272625242322212019181716
ID[4:0]Res.Res.MATCHEDRes.Res.Res.Res.Res.Res.Res.Res.
rrrrr
1514131211109876543210
Res.Res.Res.Res.DATAVSIZE[1:0]Res.Res.Res.Res.ACTION[1:0]MATCH[3:0]
rwrwrwrwrwrwrwrw

Bits 31:27 ID[4:0]: capability identification

Identifies the capability for match for comparator 1.
0b11010: Instruction Address, Instruction Address Limit, Data Address, Data Address Limit, and Data Address With Value

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

ST logo
ST logo

Bit 24 MATCHED: Comparator match

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

0: no match

1: a match occurred

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

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

Defines the size of the object being watched for by Data Value and Data Address comparators.

0x0: 1 byte

0x1: 2 bytes

0x2: 4 bytes

0x3: reserved

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

Bits 5:4 ACTION[1:0]: action on match

0x0: trigger only

0x1: generate debug event

0x2: For a Cycle Counter, Instruction Address, Data Address, Data Value or Linked Data Value comparator, generate a Data Trace Match packet. For a Data Address With Value comparator, generate a Data Trace Data Value packet.

0x3: For a Data Address Limit comparator, generate a Data Trace Data Address packet. For a Cycle Counter, Instruction Address Limit, or Data Address comparator, generate a Data Trace PC Value packet. For a Data Address With Value comparator, generate both a Data Trace PC Value packet and a Data Trace Data Value packet.

Bits 3:0 MATCH[3:0]: match type

Controls the type of match generated by comparator 1.

For possible values of this field, refer to [4].

DWT function register 2 (DWT_FUNCTR2)

Address offset: 0x048

Reset value: 0x5000 0000

31302928272625242322212019181716
ID[4:0]Res.Res.MATCHEDRes.Res.Res.Res.Res.Res.Res.Res.
rrrrrr
1514131211109876543210
Res.Res.Res.Res.DATAVSIZE[1:0]Res.Res.Res.Res.ACTION[1:0]MATCH[3:0]
rwrwrwrwrwrwrwrw

Bits 31:27 ID[4:0]: capability identification

Identifies the capability for MATCH for comparator 2

0b01010: Instruction Address, Data Address, and Data Address With Value

Bits 26: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: a match occurred

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

Bits 11:10 DATAVSIZE[1:0]: Data value size:

Defines the size of the object being watched for by Data Value and Data Address comparators.
0x0: 1 byte
0x1: 2 bytes
0x2: 4 bytes
0x3: reserved

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

Bits 5:4 ACTION[1:0]: action on match

0x0: trigger only
0x1: Generate debug event
0x2: For a Cycle Counter, Instruction Address, Data Address, Data Value or Linked Data Value comparator, generate a Data Trace Match packet. For a Data Address With Value comparator, generate a Data Trace Data Value packet.
0x3: For a Data Address Limit comparator, generate a Data Trace Data Address packet. For a Cycle Counter, Instruction Address Limit, or Data Address comparator, generate a Data Trace PC Value packet. For a Data Address With Value comparator, generate both a Data Trace PC Value packet and a Data Trace Data Value packet.

Bits 3:0 MATCH[3:0]: match type

Controls the type of match generated by comparator 2.
For possible values of this field, refer to [4]

DWT function register 3 (DWT_FUNCTR3)

Address offset: 0x058

Reset value: 0xF000 0000

31302928272625242322212019181716
ID[4:0]Res.Res.MATCHEDRes.Res.Res.Res.Res.Res.Res.Res.
rrrrrr
1514131211109876543210
Res.Res.Res.Res.DATAVSIZE[1:0]Res.Res.Res.Res.ACTION[1:0]MATCH[3:0]
rwrwrwrwrwrwrwrw

Bits 31:27 ID[4:0]: capability identification

Identifies the capability for MATCH for comparator 2.
0b11110: Instruction Address, Instruction Address Limit, Data Address, Data Address Limit, Data value, Linked Data Value, and Data Address With Value

Bits 26: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: a match occurred

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

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

Defines the size of the object being watched for by Data Value and Data Address comparators.

0x0: 1 byte

0x1: 2 bytes

0x2: 4 bytes

0x3: reserved

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

Bits 5:4 ACTION[1:0]: action on match

0x0: trigger only

0x1: Generate debug event

0x2: For a Cycle Counter, Instruction Address, Data Address, Data Value or Linked Data Value comparator, generate a Data Trace Match packet. For a Data Address With Value comparator, generate a Data Trace Data Value packet.

0x3: For a Data Address Limit comparator, generate a Data Trace Data Address packet. For a Cycle Counter, Instruction Address Limit, or Data Address comparator, generate a Data Trace PC Value packet. For a Data Address With Value comparator, generate both a Data Trace PC Value packet and a Data Trace Data Value packet.

Bits 3:0 MATCH[3:0]: match type

Controls the type of match generated by comparator 2.

For possible values of this field, refer to [4]

DWT device type architecture register (DWT_DEVARCHR)

Address offset: 0xFC8

Reset value: 0x4770 1A02

31302928272625242322212019181716
ARCHITECT[10:0]PRESENTREVISION[3:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
ARCHVER[3:0]ARCHPART[11:0]
rrrrrrrrrrrrrrrr

Bits 31:21 ARCHITECT[10:0]: architect JEP106 code

0x23B: JEP106 continuation code 0x4, JEP106 ID code 0x3B. Arm® limited.

Bit 20 PRESENT: DWT_DEVARCH register present

0x1: present

Bits 19:16 REVISION[3:0]: architecture revision
0x0: DWT architecture v2.0

Bits 15:12 ARCHVER[3:0]: architecture version
0x1: DWT architecture v2.0

Bits 11:0 ARCHPART[11:0]: architecture part
0xA02: DWT architecture

DWT device type register (DWT_DEVTYPER)

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

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

Bits 7:4 SUB[3:0]: sub-type
0x0: other

Bits 3:0 MAJOR[3:0]: major type
0x0: miscellaneous

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

31302928272625242322212019181716
Res.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]0x21: Cortex ® -M33 DWT part number

DWT CoreSight peripheral identity register 1 (DWT_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00BD

31302928272625242322212019181716
Res.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 codeBits 3:0 PARTNUM[11:8] : part number bits [11:8]0xD: Cortex ® -M33 DWT part number

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

0x1: designer identification 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 identification bits [7:0]

0x0D: Common identification value

DWT CoreSight peripheral identity register 1 (DWT_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 identification bits [15:12] - component class

0x9: debug component

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

0x0: common identification 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 identification bits [23:16]

0x05: common identification 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 identification bits [31:24]

0xB1: common identification value

66.6.2 DWT register map

The DWT registers are located at the address range 0xE000 1000 to 0xE000 1FFC.

Table 875. DWT register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000DWT_CTRLRNUMCOMP[3:0]NOTRCPKTNOEXTTRIGNOCYCCNTNOPRFCNTCYCDISSCYCEVTENAFOLDEVTEALSUEVTENASLEEPEVTENAEXCEVTENACPIEVTENAEXCTRCENARes.Res.Res.PCSAMPLENASYNCTAP[1:0]CYCTAPPOSTINIT[3:0]POSTPRESET[3:0]CYCCNTENA
Reset value01000000000000000000000000000
0x004DWT_CYCCNTRCYCCNT[31:0]
Reset value00000000000000000000000000000000
0x008DWT_CPICNTRRes.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 valueXXXXXXXXXX
0x00CDWT_EXCCNTRRes.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 valueXXXXXXXXXX
0x010DWT_SLPCNTRRes.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 valueXXXXXXXXXX
0x014DWT_LSUCNTRRes.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 valueXXXXXXXXXX
0x018DWT_FOLDCNTRRes.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 valueXXXXXXXXXX

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x01CDWT_PCSREIASAMPLE[31:0]
Reset valueXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0x020DWT_COMP0RCOMP[31:0]
Reset valueXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0x024Reserved
0x028DWT_FUNCTR0ID[4:0]Res.Res.MATCHEDRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DATAVSIZE[1:0]Res.Res.Res.Res.Res.ACTION[1:0]MATCH[3:0]
Reset value01011000000000
0x02CReserved
0x030DWT_COMP1RCOMP[31:0]
Reset valueXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0x034Reserved
0x038DWT_FUNCTR1ID[4:0]Res.Res.MATCHEDRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DATAVSIZE[1:0]Res.Res.Res.Res.Res.ACTION[1:0]MATCH[3:0]
Reset value11010000000000
0x03CReserved
0x040DWT_COMP2RCOMP[31:0]
Reset valueXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0x044Reserved
0x048DWT_FUNCTR2ID[4:0]Res.Res.MATCHEDRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DATAVSIZE[1:0]Res.Res.Res.Res.Res.ACTION[1:0]MATCH[3:0]
Reset value01010000000000
0x04CReserved
0x050DWT_COMP3RCOMP[31:0]
Reset valueXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0x054Reserved
0x058DWT_FUNCTR3ID[4:0]Res.Res.MATCHEDRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DATAVSIZE[1:0]Res.Res.Res.Res.Res.ACTION[1:0]MATCH[3:0]
Reset value11110000000000
0x05C to 0xFC4Reserved
0xFC8DWT_DEVARCHRARCHITECT[10:0]PRESENTREVISION[3:0]ARCHVER[3:0]ARCHPART[11:0]
Reset value01000111011100000001101000000010

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xFCCDWT_DEVTYPERRes.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 value00000000
0xFD0DWT_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
0xFD4 to 0xFDCReserved
0xFE0DWT_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 value00100001
0xFE4DWT_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 value10111101
0xFE8DWT_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 value00001011
0xFECDWT_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
0xFF0DWT_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
0xFF4DWT_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
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
Refer to Table 871: Processor ROM table for register boundary addresses.

66.7 Instrumentation trace macrocell (ITM)

The ITM generates trace information in packets. Three sources can generate packets. If multiple sources generate packets at the same time, the ITM arbitrates the order in which packets are output. The three sources in decreasing order of priority are the following:

For more information on the ITM and how to use it, refer to [4].

66.7.1 ITM registers

The ITM registers are located at the address range 0xE000 0000 to 0xE000 0FFC.

ITM stimulus register x (ITM_STIMRx)

Address offset: 0x000 + 0x004 * x, (x = 0 to 31)

Reset value: 0XXXXX XXXX

Condition: when writing

31302928272625242322212019181716
STIMULUS[31:16]
wwwwwwwwwwwwwwww
1514131211109876543210
STIMULUS[15:0]
wwwwwwwwwwwwwwrwrw

Bits 31:0 STIMULUS[31:0]: trace output data
write data is output on the trace bus as a software event packet.

ITM stimulus register x [alternate] (ITM_STIMRx)

Address offset: 0x000 + 0x004 * x, (x = 0 to 31)

Reset value: 0XXXXX XXXX

Condition: when reading

31302928272625242322212019181716
Res.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.DISABLEFIFO_READY
rwrw

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

ITM trace enable register (ITM_TER)

Address offset: 0xE00

Reset value: 0x0000 0000

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

ITM trace privilege register (ITM_TPR)

Address offset: 0xE40

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.PRIVMASK[3:0]
rrrr

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

Bits 3:0 PRIVMASK[3:0]: disable unprivileged access to ITM stimulus ports

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.Res.Res.TSPRESCALE[1:0]Res.Res.STALLENASWOENATXENASYNCENATSENAITMENA
rwrrwrwrwrw

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

Bit 23 BUSY: indicates whether the ITM is currently processing events

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 nonzero value to this field.
Note: Different identifiers must be used for each trace source in the system.

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

ST logo
ST logo

Bits 9:8 TSPRESCALE[1:0]: local timestamp prescaler, used with the trace packet reference clock
0x0: no prescaling
0x1: Divide by 4.
0x2: Divide by 16.
0x3: Divide by 64.

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

Bit 5 STALLENA: stall enable
0: Drop hardware source packets and generate an overflow if the ITM output is stalled.
1: Stall the processor to guarantee delivery of data trace packets.

Bit 4 SWOENA: SWO enable
Enables asynchronous clocking of the timestamp counter (read only).
0: Timestamp counter uses processor clock.

Bit 3 TXENA: transmit enable
Enables forwarding of hardware event packets from the DWT unit to the trace port.
0: disabled
1: enabled

Bit 2 SYNCENA: synchronization packet transmission enable
The debugger setting this bit must also configure the DWT_CTRLR.SYNCTAP field for the correct synchronization 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 device type architecture register (ITM_DEVARCHR)

Address offset: 0xFBC

Reset value: 0x4770 1A01

31302928272625242322212019181716
ARCHITECT[10:0]PRESENTREVISION[3:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
ARCHVER[3:0]ARCHPART[11:0]
rrrrrrrrrrrrrrrr

Bits 31:21 ARCHITECT[10:0]: architect JEP106 code
0x23B: JEP106 continuation code 0x4, JEP106 ID code 0x3B. Arm® limited.

Bit 20 PRESENT: DEVARCH register presence
0x1: present

Bits 19:16 REVISION[3:0]: architecture revision
0x0: ITM architecture v2.0

Bits 15:12 ARCHVER[3:0]: architecture version
0x1: ITM architecture v2.0

Bits 11:0 ARCHPART[11:0]: architecture part
0xA01: ITM architecture

ITM device type register (ITM_DEVTYPER)

Address offset: 0xFCC

Reset value: 0x0000 0043

31302928272625242322212019181716
Res.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-type
0x4: associated with a bus, stimulus derived from bus activity

Bits 3:0 MAJOR[3:0]: major type
0x3: trace source

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

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

0x21: ITM part number

ITM CoreSight peripheral identity register 1 (ITM_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00BD

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

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

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

Bit 3 JEDEC: JEDEC assigned value
0x1: designer identification 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

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

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

Bits 7:0 PREAMBLE[7:0]: Component identification bits [7:0]
0x0D: Common identification 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 identification bits [15:12] - component class
0xE: Trace generator component

Bits 3:0 PREAMBLE[11:8]: Component identification bits [11:8]
0x0: Common identification 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 identification bits [23:16]

0x05: Common identification 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 identification bits [31:24]

0xB1: Common identification value

66.7.2 ITM register map

The ITM registers are located at the address range 0xE000 0000 to 0xE000 0FFC.

Table 876. ITM register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000 to 0x07CITM_STIMR0 to ITM_STIMR31STIMULUS[31:0]
Reset valueXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0x07C to 0xDFCReserved
0xE00ITM_TERSTIMENA[31:0]
Reset value00000000000000000000000000000000
0xE04 to 0xE3CReserved
0xE40ITM_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
0xE44 to 0xE7CReserved
0xE80ITM_TCRRes.Res.Res.Res.Res.Res.Res.Res.BUSYTRACEBUSID[6:0]Res.Res.Res.Res.Res.Res.TSPRESCALE [1:0]Res.Res.STALLENSWOENATXENASYNCENATSENAITMENA
Reset value0000000000000000
0xE84 to 0xFB8Reserved

Table 876. ITM register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xFBCITM_DEVARCHRARCHITECT[10:0]PRESENREVISION [3:0]ARCHVER [3:0]ARCHPART[3:0]
Reset value01000111011100000011010000000001
0xFC0 to 0xFC8Reserved
0xFCCITM_DEVTYPERRes.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 value01000011
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
0xFD4 to 0xFDCReserved
0xFE0ITM_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 value00100001
0xFE4ITM_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 value10111101
0xFE8ITM_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 value00001011
0xFECITM_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
0xFF0ITM_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
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

Refer to Table 871: Processor ROM table for register boundary addresses.

66.8 Breakpoint unit (BPU)

The BPU allows the user to set hardware breakpoints. It contains eight comparators that monitor the instruction fetch address. If a match occurs, the instruction comparators can be configured to generate a breakpoint instruction.

For more information on the breakpoint unit and how to use it, refer to [4].

66.8.1 BPU registers

The BPU registers are located at the address range 0xE0002000 to 0xE0002FFC.

BPU control register (BPU_CTRLR)

Address offset: 0x000

Reset value: 0x1000 0080

31302928272625242322212019181716
REV[3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rrrr
1514131211109876543210
Res.NUM_CODE[6:4]Res.Res.Res.Res.NUM_CODE[3:0]Res.Res.KEYENABLE
rrrrrrrrwrw

Bits 31:28 REV[3:0]: revision number

0x1: BPU version 2

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

Bits 14:12, 7:4 NUM_CODE[6:0]: number of instruction address comparators supported

0x08: 8 instruction comparators supported

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

Bit 1 KEY: Write protect key

A write to FPB_CTRLR register is ignored if this bit is not set to 1.

Bit 0 ENABLE: FPB enable

0: disabled

1: enabled

BPU comparator x register (BPU_COMPxR)

Address offset: 0x008 + 0x004 * x, (x = 0 to 7)

Reset value: 0x0000 0000

31302928272625242322212019181716
BPADDR[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
BPADDR[15:1]BE
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:1 BPADDR[31:1]: breakpoint address

Bit 0 BE: breakpoint enable

BPU device type architecture register (BPU_DEVARCHR)

Address offset: 0xFBC

Reset value: 0x4770 1A03

31302928272625242322212019181716
ARCHITECT[10:0]PRESENTREVISION[3:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
ARCHVER[3:0]ARCHPART[11:0]
rrrrrrrrrrrrrrrr

Bits 31:21 ARCHITECT[10:0]: architect JEP106 code
0x23B: JEP106 continuation code 0x4, JEP106 ID code 0x3B. Arm® limited.

Bit 20 PRESENT: DEVARCH register present
0x1: present

Bits 19:16 REVISION[3:0]: architecture revision
0x0: BPU architecture v2.0

Bits 15:12 ARCHVER[3:0]: architecture version
0x1: BPU architecture v2.0

Bits 11:0 ARCHPART[11:0]: architecture part
0xA03: BPU architecture

BPU device type register (BPU_DEVTYPER)

Address offset: 0xFCC

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

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

Bits 7:4 SUB[3:0]: sub-type

0x0: other

Bits 3:0 MAJOR[3:0]: major type

0x0: miscellaneous

BPU CoreSight peripheral identity register 4 (BPU_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: The register file occupies a single 4-Kbyte region.

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

0x4: Arm® JEDEC code

BPU CoreSight peripheral identity register 0 (BPU_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 0021

31302928272625242322212019181716
Res.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]
0x21: BPU part number

BPU CoreSight peripheral identity register 1 (BPU_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00BD

31302928272625242322212019181716
Res.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]
0xD: BPU part number

BPU CoreSight peripheral identity register 2 (BPU_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
0x1: designer identification specified by JEDEC

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

BPU CoreSight peripheral identity register 3 (BPU_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

BPU CoreSight component identity register 0 (BPU_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 identification bits [7:0]

0x0D: common identification value

BPU CoreSight peripheral identity register 1 (BPU_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 identification bits [15:12] - component class
0x9: debug component

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

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

BPU CoreSight component identity register 3 (BPU_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.

ST logo
ST logo

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

0xB1: common identification value

66.8.2 BPU register map

The BPU registers are located at the address range 0xE000 2000 to 0xE000 2FFC.

Table 877. BPU register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000BPU_CTRLRREV[3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NUM_CODE [6:4]Res.Res.Res.Res.NUM_CODE [3:0]Res.Res.KEYENABLE
Reset value0001000100000
0x004Reserved
0x008 to 0x024BPU_COMP0R to BPU_COMP7RBPADDR[31:1]BE
Reset value00000000000000000000000000000000
0x028 to 0xFB8Reserved
0xFBCBPU_DEVARCHRARCHITECT[10:0]PRESENTREVISION [3:0]ARCHVER [3:0]ARCHPART[11:0]
Reset value01000111011100000001101000000011
0xFC0 to 0xFC8Reserved
0xFCCBPU_DEVTYPERRes.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 value000000000
0xFD0BPU_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 value000001000
0xFD4 to 0xFDCReserved
0xFE0BPU_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 value001000011
0xFE4BPU_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 value101111011
0xFE8BPU_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 value000010111
0xFECBPU_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 value000000000
0xFF0BPU_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 value000011011
0xFF4BPU_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 value100100000

Table 877. BPU register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xFF8BPU_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
0xFFCBPU_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

Refer to Table 871: Processor ROM table for register boundary addresses.

66.9 Embedded Trace Macrocell (ETM)

The ETM is a CoreSight™ component closely coupled to the CPU. The ETM generates trace packets that allow the execution of the Cortex®-M33 core to be traced. In the STM32H5 devices, the ETM is configured for instruction trace only. 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-M33 Technical Reference Manual [6].

66.9.1 ETM registers

The ETM registers are located at the address range 0xE004 1000 to 0xE004 1FFC.

ETM programming control register (ETM_PRGCTLR)

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.Res.EN
rw
ST logo
ST logo

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

Bit 0 EN: trace unit enable
0: disabled
1: enabled

ETM status register (ETM_STATR)

Address offset: 0x00C

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

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

Bit 1 PMSTABLE: stability status
Indicates that the ETM-M33 registers are stable and can be read.
0: not stable
1: stable

Bit 0 IDLE: trace unit status
Indicates that the trace unit is inactive.
0: not idle
1: idle

ETM configuration register (ETM_CONFIGR)

Address offset: 0x010

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.RSRes.COND[5:0]CCIBBRes.Res.Res.
rwrwrwrwrwrwrwrwrw

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

Bit 12 RS: return stack enable
0: disabled
1: enabled

ST logo
ST logo

Bit 11 Reserved, must be kept at reset value.

Bits 10:5 COND[5:0]: conditional instruction tracing

Bit 4 CCI: cycle counting in instruction trace

Bit 3 BB: branch broadcast mode

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

ETM event control 0 register (ETM_EVENTCTL0R)

Address offset: 0x020

Reset value: 0xXXXX XXXX

column_1column_2Bits 10:5 Bit 4 Bit 3COND[5:0] CCI 0: disabled 1: enabled BB 0: disabled 1: enabledcolumn_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15RM0481
31302928272625242322212019181716
Res.Res.Res.Res. Res.Res. Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
TYPE1Res.Res.Res.SEL1[3:0]TYPE0Res.Res.Res.SEL0[3:0]
rwrwrwrwrwrwrwrwrwrw
Bit 15TYPE1: resource type for event1
Bits 11:8SEL1[3:0]: resource number based on TYPE1
Bit 7 TYPE0: resource type for event0
Bits 3:0SEL0[3:0]: resource number based on TYPE0

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

Bit 15 TYPE1: resource type for event1

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

Bits 11:8 SEL1[3:0]: resource number based on TYPE1

Bit 7 TYPE0: resource type for event0

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

Bits 3:0 SEL0[3:0]: resource number based on TYPE0

ETM event control 1 register (ETM_EVENTCTL1R)

Address offset: 0x024

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.LPOVERRIDEATBRes.Res.Res.Res.Res.Res.Res.Res.Res.INSTEN[1:0]
rwrwrwrw

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

Bit 12 LPOVERRIDE : low-power state behavior override

0: normal low-power state behavior

1: The resources and event trace generation are not affected by entry to a low-power state.

Bit 11 ATB : ATB trigger enable

0: disabled

1: enabled

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

Bits 1:0 INSTEN[1:0] : instruction event generation

Enables generation of an event element in the instruction stream.

0bX0: Event0 does not cause an event element.

0bX1: Event0 causes an event element when it occurs.

0b0X: Event1 does not cause an event element.

0b1X: Event1 causes an event element when it occurs.

ETM stall control register (ETM_STALLCTLR)

Address offset: 0x02C

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.INSTPRIORITYRes.ISTALLRes.Res.Res.Res.LEVEL[3:0]
rwrwrwrwrwrw

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

ST logo
ST logo

Bit 10 INSTPRIORITY: instruction trace priority

Prioritizes instruction trace if instruction trace buffer space is less than LEVEL[3:0].

0: The ETM must not prioritize instruction trace.

1: The ETM can prioritize instruction trace.

Bit 9 Reserved, must be kept at reset value.

Bit 8 ISTALL: processor stalling

Stalls processor based on instruction trace buffer space.

0: The ETM must not stall the processor.

1: The ETM can stall the processor.

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

Bits 3:0 LEVEL[3:0]: Threshold at which stalling becomes active

This field provides four levels. This level can be varied to optimize the level of invasion caused by stalling, balanced against the risk of a FIFO overflow.

0x0: zero invasion, but greater risk of FIFO overflow

...

0xF: maximum invasion but less risk of FIFO overflow

ETM synchronization period register (ETM_SYNCPR)

Address offset: 0x034

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.PERIOD[4:0]
rrrrr

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

Bits 4:0 PERIOD[4:0]: synchronization period

Defines the number of bytes of trace between trace synchronization requests as a total of the number of bytes generated by the instruction stream.

0xA: 1024 bytes

ETM cycle count control register (ETM_CCCTL)

Address offset: 0x038

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.THRESHOLD[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 11:0 THRESHOLD[11:0]: instruction trace cycle count threshold

Sets the threshold value for instruction trace cycle counting. The threshold represents the minimum interval between cycle-count trace packets.

ETM trace identification register (ETM_TRACEIDR)

Address offset: 0x040

Reset value: 0xXXXXX 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.TRACEID[6:0]
rwrwrwrwrwrwrw

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

Bits 6:0 TRACEID[6:0]: Trace identification to output onto the trace bus

This field must be programmed with a unique value to differentiate it from other trace sources in the system.

Values 0x00 and 0x70-0x7F are reserved.

ETM ViewInst main control register (ETM_VICTLR)

Address offset: 0x080

Reset value: 0xXXXXX XXXX

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EXLEVEL_S[3:0]
rwrwrwrw
1514131211109876543210
Res.Res.Res.Res.TRCERRTRCRESETSSSTATUSRes.EVENT[7:0]
rwrwrwrwrwrwrwrwrwrwrw

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

Bits 19:16 EXLEVEL_S[3:0]: exception level in secure state

Controls whether instruction tracing is enabled for the corresponding exception level, in secure state.

0bXXX0: instruction trace not generated in secure state, for exception level 0

0bXXX1: instruction trace generated in secure state, for exception level 0

0b0XXX: instruction trace not generated in secure state, for exception level 3

0b1XXX: instruction trace generated in secure state, for exception level 3

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

Bit 11 TRCERR: trace system error exception

0: The system error exception is traced only if the instruction or exception immediately before the system error exception is traced.

1: The system error exception is always traced.

Bit 10 TRCRESET: trace reset exception

0: The reset exception is traced only if the instruction or exception immediately before the reset exception is traced.

1: The reset exception is always traced.

Bit 9 SSSTATUS: start/stop logic status

0: stopped

1: started

Bit 8 Reserved, must be kept at reset value.

Bits 7:0 EVENT[7:0]: event selector

ETM counter reload value register 0 (ETM_CNTRLDVR0)

Address offset: 0x140

Reset value: 0xXXXX XXXX

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
VALUE[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 15:0 VALUE[15:0]: counter reload value

This value is loaded in to the counter each time the reload event occurs.

ETM identification register 8 (ETM_IDR8)

Address offset: 0x180

Reset value: 0x0000 0000

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

Bits 31:0 MAXSPEC[31:0]: maximum speculation depth

Indicates the maximum speculation depth of the instruction trace stream. This is the maximum number of P0 elements that have not been committed in the trace stream at any one time.

0x0: The maximum trace speculation depth is zero.

ETM identification register 9 (ETM_IDR9)

Address offset: 0x184

Reset value: 0x0000 0000

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

Bits 31:0 NUMP0KEY[31:0]: number of P0 right-hand keys used

0x0: no P0 right-hand keys used in instruction trace

ETM identification register 10 (ETM_IDR10)

Address offset: 0x188

Reset value: 0x0000 0000

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

Bits 31:0 NUMP1KEY[31:0]: number of P1 right-hand keys used (including normal and special keys)

0x0: no P1 right-hand keys used in instruction trace

ETM identification register 11 (ETM_IDR11)

Address offset: 0x18C

Reset value: 0x0000 0000

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

Bits 31:0 NUMP1SPC[31:0]: number of special P1 right-hand keys used
0x0: no special P1 right-hand keys used in any configuration

ETM identification register 12 (ETM_IDR12)

Address offset: 0x190

Reset value: 0x0000 0001

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

Bits 31:0 NUMCONDKEY[31:0]: number of conditional instruction right-hand keys used (including normal and special keys)
0x1: one conditional instruction right-hand key implemented

ETM identification register 13 (ETM_IDR13)

Address offset: 0x194

Reset value: 0x0000 0000

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

Bits 31:0 NUMCONDSPC[31:0]: number of special conditional instruction right-hand keys used
0x0: no special conditional instruction right-hand keys implemented

ETM implementation specific register 0 (ETM_IMSPECR0)

Address offset: 0x1C0

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.SUPPORT[3:0]
rrrr

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

Bits 3:0 SUPPORT[3:0]: implementation specific extension support
0x0: no implementation specific extensions are supported

ETM identification register 0 (ETM_IDR0)

Address offset: 0x1E0

Reset value: 0x2800 06E1

31302928272625242322212019181716
Res.Res.COMOPTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRCEXDATAQSUPP[1]
rrr
1514131211109876543210
QSUPP[0]Res.CONDTYPE[1:0]NUMEVENT[1:0]RETSTACKRes.TRCCCITRCCONDTRCBBTRCDATA[1:0]INSTP0[1:0]Res.
rrrrrrrrrrrrr

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

Bit 29 COMOPT: commit field meaning
Indicates the meaning of the commit field in some packets.
1: commit mode 1

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

Bit 17 TRCEXDATA: trace data transfers for exceptions
Indicates support for the tracing of data transfers for exceptions and exception returns.
0: not implemented

Bits 16:15 QSUPP[1:0]: Q element support
0: not supported

Bit 14 Reserved, must be kept at reset value.

ETM identification register 1 (ETM_IDR1)

Address offset: 0x1E4

Reset value: 0x4100 F421

31302928272625242322212019181716
DESIGNER[7:0]Res.Res.Res.Res.Res.Res.Res.Res.
rrrrrrrr
1514131211109876543210
Res.Res.Res.Res.TRCARCHMAJ[3:0]TRCARCHMIN[3:0]REVISION[3:0]
rrrrrrrrrrrr
ST logo
ST logo

ETM identification register 2 (ETM_IDR2)

Address offset: 0x1E8

Reset value: 0x0000 0004

31302928272625242322212019181716
Res.Res.Res.CCSIZE[3:0]DVSIZE[4:0]DASIZE[4:1]
rrrrrrrrrrrrr
1514131211109876543210
DASIZE[0]VMIDSIZE[4:0]CIDSIZE[4:0]IASIZE[4:0]
rrrrrrrrrrrrrrrr

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

Bits 28:25 CCSIZE[3:0] : cycle counter size

0x0: 12 bits

Bits 24:20 DVSIZE[4:0] : data value size

0x0: data value size not supported

Bits 19:15 DASIZE[4:0] : data address size.

0x0: data address size not supported

Bits 14:10 VMIDSIZE[4:0] : virtual machine ID size

0x0: virtual machine ID tracing not implemented

Bits 9:5 CIDSIZE[4:0] : context ID size

0x0: context ID tracing not implemented

Bits 4:0 IASIZE[4:0] : instruction address size

0x4: maximum 32-bit address size

ETM identification register 3 (ETM_IDR3)

Address offset: 0x1EC

Reset value: 0x0F09 0004

31302928272625242322212019181716
NOOVERFLOWNUMPROC[2:0]SYSSTALLSTALLCTLSYNCPRTRCERRRes.Res.Res.Res.EXLEVEL_S[3:0]
rrrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.CCITMIN[11:0]
rrrrrrrrrrrr
Bit 31 NOOVERFLOW : ETM_STALLCTLR.NOOVERFLOW implementation

0: not implemented

ETM identification register 4 (ETM_IDR4)

Address offset: 0x1F0

Reset value: 0x0011 4000

31302928272625242322212019181716
NUMVMIDC[3:0]NUMCIDC[3:0]NUMSSCC[3:0]NUMRSPAIR[3:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
NUMPC[3:0]Res.Res.Res.SUPPDACNUMDVC[3:0]NUMACPAIRS[3:0]
rrrrrrrrrrrrr

Bit 8 SUPPDAC: data address comparisons

0: data address comparisons not supported

Bits 7:4 NUMDVC[3:0]: number of data value comparators

0x0: no data value comparators implemented

Bits 3:0 NUMACPAIRS[3:0]: number of address comparator pairs

0x0: no address comparator pairs implemented

ETM identification register 5 (ETM_IDR5)

Address offset: 0x1F4

Reset value: 0x90C7 0004

31302928272625242322212019181716
REDFUNCNTRNUMCNTR[2:0]NUMSEQSTATE[2:0]Res.LPOVERRIDEATBTRIGTRACEIDSIZE[5:0]
rrrrrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.NUMEXTINSEL[2:0]NUMEXTIN[8:0]
rrrrrrrrrrrr

Bit 31 REDFUNCNTR: reduced function counter

1: counter 0 implemented as a reduced function counter

Bits 30:28 NUMCNTR[2:0]: number of counters

0x1: one counter implemented.

Bits 27:25 NUMSEQSTATE[2:0]: number of sequencer states

0x0: no sequencer states implemented.

Bit 24 Reserved, must be kept at reset value.

Bit 23 LPOVERRIDE: low-power state override support

1: low-power state override support implemented

Bit 22 ATBTRIG: ATB trigger support

1: ATB trigger support implemented

Bits 21:16 TRACEIDSIZE[5:0]: number of bits of trace identification

0x7: 7-bit trace identification implemented

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

Bits 11:9 NUMEXTINSEL[2:0]: number of external input selectors

0x0: no external input selectors implemented.

Bits 8:0 NUMEXTIN[8:0]: number of external inputs

0x004: four external inputs implemented.

ETM resource register 2 (ETM_RSCTLR2)

Address offset: 0x208

Reset value: 0xXXXX XXXX

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PAIRINVINVRes.GROUP[2:0]
rwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SELECT[7:0]
rwrwrwrwrwrwrwrw

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

Bit 21 PAIRINV : result of a combined pair of resources inversion

0: not inverted

1: inverted

Bit 20 INV : selected resources inversion

0: not inverted

1: inverted

Bit 19 Reserved, must be kept at reset value.

Bits 18:16 GROUP[2:0] : group of resources selection

0x0: external input selectors (select 0-3)

0x1: inputs from processor DWT comparators element (select 0-3)

0x2: counter at zero (select 0)

0x3: single-shot comparator (select 0)

Others: reserved

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

Bits 7:0 SELECT[7:0] : more resources selection

Selects one or more resources from the group selected in GROUP[2:0].

ETM resource register 3 (ETM_RSCTLR3)

Address offset: 0x20C

Reset value: 0xXXXX XXXX

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.INVRes.GROUP[2:0]
rwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SELECT[7:0]
rwrwrwrwrwrwrwrw

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

Bit 20 INV: selected resources inversion

Bit 19 Reserved, must be kept at reset value.

Bits 18:16 GROUP[2:0]: group of resources selection

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

Bits 7:0 SELECT[7:0]: more resources selection

Selects one or more resources from the group selected in GROUP[2:0].

ETM single-shot comparator control register 0 (ETM_SSCCR0)

Address offset: 0x280

Reset value: 0xXXXX XXXX

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.RSTRes.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:25 Reserved, must be kept at reset value.

Bit 24 RST: single-shot comparator reset

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

ETM single-shot comparator status register 0 (ETM_SSCSR0)

Address offset: 0x2A0

Reset value: 0xXXXX XXXX

31302928272625242322212019181716
STATUSRes.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.PCDVDAINST
rrrr

Bit 31 STATUS: single-shot comparator status

Indicates whether any of the selected comparators have matched.

0: no match occurred

1: at least one match occurred

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

Bit 3 PC: processor comparator input sensitivity

1: single-shot comparator sensitive to processor comparator inputs

Bit 2 DV: data value comparator support

0: single-shot data value comparisons not supported

Bit 1 DA: data address comparator support

0: single-shot data address comparisons not supported

Bit 0 INST: instruction address comparator support

0: single-shot instruction address comparisons not supported

ETM single-shot processor comparator input control register 0
(ETM_SSPICR0)

Address offset: 0x2C0

Reset value: 0xXXXX XXXX

column_1column_2Bit 31 Bit 3 Bit 2 Bit 1 Bit 0STATUS PC DV DA INSTcolumn_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15RM0481
31302928272625242322212019181716
Res.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.PC[3:0]
rwrwrwrw
Bits 3:0PC[3:0]: processor comparator inputs selection for single-shot control

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

Bits 3:0 PC[3:0]: processor comparator inputs selection for single-shot control

0xXXX0: processor comparator input 0 not selected

0XXX1: processor comparator input 0 selected

0XX0X: Processor comparator input 1 not selected

0XX1X: processor comparator input 1 selected

0X0XX: processor comparator input 2 not selected

0X1XX: processor comparator input 2 selected

00XXX: processor comparator input 3 not selected

01XXX: processor comparator input 3 selected

ETM power-down control register (ETM_PDCR)

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.PURes.Res.Res.
rw

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

Bit 3 PU: power-up request

0: power-up not requested

1: power-up requested

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

ETM power-down status register (ETM_PDSR)

Address offset: 0x314

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.Res.STICKYPDPOWER
rr

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

Bit 1 STICKYPD: sticky power-down state

0: Trace register power has not been removed since the ETM_PDSR was last read.

1: Trace register power has been removed since the ETM_PDSR was last read.

Bit 0 POWER: ETM power-up status

1: ETM powered up

ETM claim tag set register (ETM_CLAIMSETR)

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] : claim tag bits setting

Write:

0000: no effect

xxx1: Sets bit 0.

xx1x: Sets bit 1.

x1xx: Sets bit 2.

1xxx: Sets bit 3.

Read:

0xF: Indicates there are four bits in claim tag.

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

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

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

Write:

0000: no effect

xxx1: Clears bit 0.

xx1x: Clears bit 1.

x1xx: Clears bit 2.

1xxx: Clears bit 3.

Read: Returns current value of claim tag.

ETM authentication status register (ETM_AUTHSTATR)

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

0x2: secure noninvasive debug disabled

0x3: secure noninvasive debug enabled

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

0x0: not implemented

Bits 3:2 NSNID[1:0] : security level for nonsecure noninvasive debug

0x2: nonsecure noninvasive debug disabled

0x3: nonsecure noninvasive debug enabled

Bits 1:0 NSID[1:0] : security level for nonsecure invasive debug

0x0: not implemented

ETM device type architecture register (ETM_DEVARCHR)

Address offset: 0xFBC

Reset value: 0x4772 4A13

31302928272625242322212019181716
ARCHITECT[10:0]PRESENTREVISION[3:0]
rrrrrrrrrrrrrrr
1514131211109876543210
ARCHVER[3:0]ARCHPART[11:0]
rrrrrrrrrrrrrrrr
Bits 31:21 ARCHITECT[10:0] : architect JEP106 code0x23B: JEP106 continuation code 0x4, JEP106 ID code 0x3B. Arm ® limited.Bit 20 PRESENT : DEVARCH register presence

0x1: present

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

0x2: ETM architecture v4.2

Bits 15:12 ARCHVER[3:0]: architecture version
0x4: ETM architecture v4.2

Bits 11:0 ARCHPART[11:0]: architecture part
0xA13: ETM architecture

ETM CoreSight device type register (ETM_DEVTYPER)

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

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

0x21: ETM part number

ETM CoreSight peripheral identity register 1 (ETM_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00BD

31302928272625242322212019181716
Res.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 codeBits 3:0 PARTNUM[11:8] : part number bits [11:8]

0xD: ETM part number

ETM CoreSight peripheral identity register 2 (ETM_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 identification specified by JEDEC

Bits 2:0 JEP106ID[6:4]: JEP106 identity code 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

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

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

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

ETM CoreSight peripheral 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 identification bits [15:12] - component class
0x9: trace generator component

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

ETM CoreSight component identity register 2 (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 identification bits [23:16]
0x05: common identification 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 identification bits [31:24]
0xB1: common identification value

66.9.2 ETM register map

The ETM registers are accessed by the debugger at the address range 0xE0041000 to 0xE0041FFC.

Table 878. ETM register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x004ETM_PRGCTLRRes.Res.Res.Res.Res.Res.Res.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 value0
0x008Reserved
0x00CETM_STATRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PMSTABLEIDLE
Reset valueXX
0x010ETM_CONFIGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RSRes.COND[5:0]CCIBBRes.Res.Res.Res.
Reset valueXXXXXXXXX
0x014 to 0x01CReserved
0x020ETM_EVENTCTL0RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TYPE1Res.Res.Res.Res.SEL1[3:0]TYPE0Res.Res.Res.Res.SEL0[3:0]
Reset valueXXXXXXXXXX
0x024ETM_EVENTCTL1RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LPOVERRIDEATBRes.Res.Res.Res.Res.Res.Res.Res.Res.INSTEN[1:0]
Reset valueXXXX
0x028Reserved

Table 878. ETM register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x02CETM_STALLCTLRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.INSTPRIORITYRes.ISTALLRes.Res.Res.Res.LEVEL[3:0]
Reset valueXXXXXX
0x030Reserved
0x034ETM_SYNCPRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PERIOD[4:0]
Reset value01010
0x038ETM_CCCTLRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.THRESHOLD[11:0]
Reset valueXXXXXXXXXXXX
0x03CReserved
0x040ETM_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[6:0]
Reset valueXXXXXXXX
0x044 to 0x07CReserved
0x080ETM_VICTLRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EXLEVEL_S [3:0]Res.Res.Res.Res.TRCERRTRCRESETSSSTATUSRes.EVENT[7:0]
Reset valueXXXXXXXXXXXXXXX
0x084 to 0x13CReserved
0x140ETM_CNTRLDVR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VALUE[15:0]
Reset valueXXXXXXXXXXXXXXXX
0x144 to 0x17CReserved
0x180ETM_IDR8MAXSPEC[31:0]
Reset value00000000000000000000000000000000
0x184ETM_IDR9NUMP0KEY[31:0]
Reset value00000000000000000000000000000000
0x188ETM_IDR10NUMP1KEY[31:0]
Reset value00000000000000000000000000000000
0x18CETM_IDR11NUMP1SPC[31:0]
Reset value00000000000000000000000000000000
0x190ETM_IDR12NUMCONDKEY[31:0]
Reset value00000000000000000000000000000001
0x194ETM_IDR13NUMCONDSPC[31:0]
Reset value00000000000000000000000000000000
0x198 to 0x1BCReserved
0x1C0ETM_IMSPECR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SUPPORT [3:0]
Reset value0000
0x1C4 to 0x1DCReserved

Table 878. ETM register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x1E0ETM_IDR0Res.Res.COMMOPTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRCEXDATAQSUPP[1:0]Res.CONDTYPE
[1:0]
NUMEVENT
[1:0]
RETSTACKRes.TRCCCITRCCONDTRCBBTRCDATA[1:0]INSTP0[1:0]Res.
Reset value1000000111110000
0x1E4ETM_IDR1DESIGNER[7:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRCARCHM
AJ
[3:0]
TRCARCHMI
N
[3:0]
REVISION
[3:0]
Reset value01000001010000100001
0x1E8ETM_IDR2Res.Res.Res.CCSIZE[3:0]DVSIZE[4:0]DASIZE[4:0]VMIDSIZE[4:0]CIDSIZE[4:0]IASIZE[4:0]
Reset value00000000000000000000000000100
0x1ECETM_IDR3NOOVERFLOWNUMPROC[2:0]SYSSTALLSTALLCTLSYNCPRTRCERRRes.Res.Res.Res.EXLEVEL_S
[3:0]
Res.Res.Res.Res.CCITMIN[11:0]
Reset value000011111001000000000100
0x1F0ETM_IDR4NUMVMIDC
[3:0]
NUMCIDC
[3:0]
NUMSSCC
[3:0]
NUMRSPAIR
[3:0]
NUMPC
[3:0]
Res.Res.Res.SUPPDACNUMDVC
[3:0]
NUMACPAIRS
[3:0]
Reset value00000000000100010100000000000
0x1F4ETM_IDR5REDFUNCNTRNUMCNTR[2:0]NUMSEQSTATE
[2:0]
Res.LPOVERRIDEATBTRIGTRACEIDSIZE
[5:0]
Res.Res.Res.Res.NUMEXTINSEL
[2:0]
NUMEXTIN[8:0]
Reset value100100011000111000000000100
0x1F8 to
0x204
Reserved
0x208ETM_RSCTLR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PAIRINVINVRes.GROUP
[2:0]
Res.Res.Res.Res.Res.Res.Res.Res.SELECT[7:0]
Reset valueXXXXXXXXXXXXX
0x20CETM_RSCTLR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.INVRes.GROUP
[2:0]
Res.Res.Res.Res.Res.Res.Res.Res.SELECT[7:0]
Reset valueXXXXXXXXXXXX
0x210 to
0x27C
Reserved
0x280ETM_SSCCR0Res.Res.Res.Res.Res.Res.Res.RSTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset valueX
0x284 to
0x29C
Reserved
0x2A0ETM_SSCSR0STATUSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PCDVDAINST
Reset valueXXXXX
0x2A4 to
0x2BC
Reserved

Table 878. ETM register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x2C0ETM_SSPCICR0ResResResResResResResResResResResResResResResResResResResResResResResResResResResResResPC[3:0]
Reset valueXXXX
0x2C4 to 0x30CReserved
0x310ETM_PDCRResResResResResResResResResResResResResResResResResResResResResResResResResResResResPUResResRes
Reset value0
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.Res.Res.Res.Res.STICKYPDPOWERRes
Reset value111
0x318 to 0xF9CReserved
0xFA0ETM_CLAIMSETRResResResResResResResResResResResResResResResResResResResResResResResResResResResResCLAIMSET [3:0]
Reset value1111
0xFA4ETM_CLAIMCLRResResResResResResResResResResResResResResResResResResResResResResResResResResResResCLAIMCLR [3:0]
Reset value0000
0xFA8 to 0xFB4Reserved
0xFB8ETM_AUTHSTATRResResResResResResResResResResResResResResResResResResResResResResResResSNID [1:0]SID [1:0]NSNID [1:0]NSID [1:0]
Reset valueXXXXXXXX
0xFBCETM_DEVARCHRARCHITECT[10:0]PRESENREVISION [3:0]ARCHVER [3:0]ARCHPART[11:0]
Reset value01000110111001001001010000100101
0xFC0 to 0xFC8Reserved
0xFCCETM_DEVTYPERResResResResResResResResResResResResResResResResResResResResResResResResSUBTYPE [3:0]MAJORTYP [3:0]
Reset value00010011
0xFD0ETM_PIDR4ResResResResResResResResResResResResResResResResResResResResResResResResSIZE [3:0]JEP106CON [3:0]
Reset value00000100
0xFD4 to 0xFDCReserved
0xFE0ETM_PIDR0ResResResResResResResResResResResResResResResResResResResResResResResResPARTNUM[7:0]
Reset value00100001
0xFE4ETM_PIDR1ResResResResResResResResResResResResResResResResResResResResResResResResJEP106ID [3:0]PARTNUM [11:8]
Reset value10111101
0xFE8ETM_PIDR2ResResResResResResResResResResResResResResResResResResResResResResResResREVISION [3:0]JEPDECJEP106ID [6:4]
Reset value00011011
0xFECETM_PIDR3ResResResResResResResResResResResResResResResResResResResResResResResResREVAND[3:0]CMOD[3:0]
Reset value00000000

Table 878. ETM register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xFF0ETM_CIDR0ResResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE[7:0]
Reset value00001101
0xFF4ETM_CIDR1ResResResResResResResResResResResResResResResResResResResResResResResResCLASS[3:0]PREAMBLE[11:8]
Reset value10010000
0xFF8ETM_CIDR2ResResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE[19:12]
Reset value00000101
0xFFCETM_CIDR3ResResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE[27:20]
Reset value10110001

Refer to Table 871: Processor ROM table for register boundary addresses.

66.10 Trace port interface unit (TPIU)

The TPIU formats the trace stream and outputs it on the external trace port signals. As shown in the figure below, the TPIU has two ATB slave ports for incoming trace data from the ETM and ITM respectively. The trace port is a synchronous parallel port, comprising a clock output, TRACECLK, and four data outputs, TRACEDATA(3:0). The trace port width is programmable in the range 1 to 4. Using a smaller port width reduces the number of test points/connector pins needed, and frees up I/Os for other purposes, at the expenses of bandwidth restriction of the trace port, and hence of the quantity of trace information that can be output in real time.

Figure 981. Trace port interface unit (TPIU)

Block diagram of the Trace port interface unit (TPIU). The diagram shows two input paths: ETM ATB and ITM ATB, each passing through an ATB interface block. Both ATB interfaces feed into a central Formatter block. The Formatter block is connected to an APB interface block, which in turn is connected to the Cortex-M33 private peripheral bus (PPB). The Formatter block feeds into a Trace output (serialiser) block. The Trace output (serialiser) block has three outputs: TRACECLK, TRACEDATA(3:0), and TRACESWO. The diagram is labeled MSv67394V1 in the bottom right corner.
graph LR
    ETM[ETM ATB] --> ATB1[ATB interface]
    ITM[ITM ATB] --> ATB2[ATB interface]
    ATB1 --> Formatter[Formatter]
    ATB2 --> Formatter
    Formatter --> APB[APB interface]
    APB <--> PPB[Cortex-M33 private peripheral bus (PPB)]
    Formatter --> Serialiser[Trace output (serialiser)]
    Serialiser --> TRACECLK[TRACECLK]
    Serialiser --> TRACEDATA[TRACEDATA(3:0)]
    Serialiser --> TRACESWO[TRACESWO]
  

MSv67394V1

Block diagram of the Trace port interface unit (TPIU). The diagram shows two input paths: ETM ATB and ITM ATB, each passing through an ATB interface block. Both ATB interfaces feed into a central Formatter block. The Formatter block is connected to an APB interface block, which in turn is connected to the Cortex-M33 private peripheral bus (PPB). The Formatter block feeds into a Trace output (serialiser) block. The Trace output (serialiser) block has three outputs: TRACECLK, TRACEDATA(3:0), and TRACESWO. The diagram is labeled MSv67394V1 in the bottom right corner.

Trace data can also be output on the serial-wire output, TRACESWO.

For more information on the trace port interface in the Cortex®-M33, refer to the Arm® Cortex®-M33 Technical Reference Manual [5].

66.10.1 TPIU registers

TPIU supported port size register (TPIU_SSPSR)

Address offset: 0x000

Reset value: 0x0000 000F

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

Bits 31:0 PORTSIZE[31:0]: trace port sizes, from 1 to 32 pins

Bit n-1 when set, indicates that port size n is supported.

0x0000 000F: port sizes 1 to 4 supported

TPIU current port size register (TPIU_CSPSR)

Address offset: 0x004

Reset value: 0x0000 0001

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

Bits 31:0 PORTSIZE[31:0]: 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 must only be modified when the formatter is stopped.

TPIU asynchronous clock prescaler register (TPIU_ACPR)

Address offset: 0x010

Reset value: 0x0000 0000

column_1column_2column_3column_4column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15RM0481
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 12:0PRESCALER[12:0]: baud rate for the asynchronous output, TRACESWO
31302928272625242322212019181716
Res.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.TXMODE[1:0]
rw rwrw rw
Bits 1:0TXMODE[1:0]: protocol used for trace output
31302928272625242322212019181716
Res.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.
O S O F T N N T P
S O F T T P P E D
O G F LIN P R
C S T P R E E N T
rrrr

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

Bits 12:0 PRESCALER[12:0]: baud rate for the asynchronous output, TRACESWO

The baud rate is given by the TRACELKIN frequency divided by (PRESCALER + 1).

TPIU selected pin protocol register (TPIU_SPPR)

Address offset: 0x0F0

Reset value: 0x0000 0001

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

Bits 1:0 TXMODE[1:0]: protocol used for trace output

0x0: parallel trace port mode

0x1: asynchronous SWO using Manchester encoding

0x2: asynchronous SWO using NRZ encoding

0x3: reserved

TPIU formatter and flush status register (TPIU_FFSR)

Address offset: 0x300

Reset value: 0x0000 0008

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

Bit 3 FTNONSTOP: formatter stop

Indicates whether formatter can be stopped or not.

1: The formatter cannot be stopped.

Bit 2 TCPRESENT: TRACECTL output pin 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 stop

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: The formatter has not 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 0102

RM0481column_2Bit 3 Bit 2 Bit 1 Bit 0FTNONSTOP : formatter stop TCPRESENT FTSTOPPED : formatter stop FLINPROG : flush in progress register. 0: no flush in progress 1: flush in progress Address offset: 0x304column_5column_6column_7column_8column_9Debug support (DBG)column_11
31302928 27 26 25 24 2322212019181716
Res.Res.Res.Res. Res. Res. Res. Res. Res.Res.Res.Res.Res.Res.Res.Res.
15141312 11 10 9 8 76543210
FO N M A N
Res.Res.Res.Res. Res. Res. Res. TRIGIN Res.Res.Res.Res.Res.ENFCONTRes.
rrwrw
Bit 8TRIGIN : trigger on trigger in
Bit 6FONMAN : flush on manual 0: flush completed 1: Generates a flush.
Bit 1ENFCONT: continuous formatting enable

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

Bit 8 TRIGIN: trigger on trigger in

1: Indicates a trigger in the trace stream when the TRIGIN input is asserted.

Bit 7 Reserved, must be kept at reset value.

Bit 6 FONMAN: flush on manual

0: flush completed

1: Generates a flush.

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

Bit 1 ENFCONT: continuous formatting enable

Setting this bit to zero in SWO mode bypasses the formatter and only ITM/DWT trace is output, ETM trace is discarded.

0: continuous formatting disabled

1: continuous formatting enabled

Bit 0 Reserved, must be kept at reset value.

TPIU periodic synchronization counter register (TPIU_PSCR)

Address offset: 0x308

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

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

Bits 12:0 PSCOUNT[12:0]: formatter frames counter

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 bytes 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 synchronization 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_CLAIMSETR)

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]: claim tag bits setting

Write:

0000: no effect

xxx1: Sets bit 0.

xx1x: Sets bit 1.

x1xx: Sets bit 2.

1xxx: Sets bit 3.

Read:

0xF: Indicates there are four bits in claim tag.

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]: claim tag bits reset

Write:

0000: no effect

xxx1: Clears bit 0.

xx1x: Clears bit 1.

x1xx: Clears bit 2.

1xxx: Clears bit 3.

Read: Returns current value of claim tag.

TPIU device configuration register (TPIU_DEVIDR)

Address offset: 0xFC8

Reset value: 0x0000 0CA1

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

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

Bit 11 SWOUARTNRZ: Serial-wire output, NRZ support
0x1: supported

Bit 10 SWOMAN: Serial-wire output, Manchester encoded format, support
0x1: supported

Bit 9 TCLKDATA: trace clock plus data support
0x0: supported

Bits 8:6 FIFOSIZE[2:0]: FIFO size in powers of 2
0x2: FIFO size = 4 bytes

Bit 5 CLKRELAT: ATB clock and TRACECLKIN relationship (synchronous or asynchronous)
0x1: asynchronous

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

TPIU device type identifier register (TPIU_DEVTYPER)

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

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: The register file occupies a single 4-Kbyte region.

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

0x4: Arm® JEDEC code

TPIU CoreSight peripheral identity register 0 (TPIU_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 0021

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

0x21: TPIU part number

TPIU CoreSight peripheral identity register 1 (TPIU_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00BD

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

0xD: TPIU part number

TPIU CoreSight peripheral identity register 2 (TPIU_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

0x1: designer identification 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 identification bits [7:0]
0x0D: common identification 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 identification bits [11:8]
0x0: common identification 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 identification bits [23:16]

0x05: common identification 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 identification bits [31:24]

0xB1: common identification value

66.10.2 TPIU register map

Table 879. TPIU register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000TPIU_SSPSRPORTSIZE[31:0]
Reset value00000000000000000000000000001111
0x004TPIU_CSPSRPORTSIZE[31:0]
Reset value00000000000000000000000000000001
0x008Reserved
0x010TPIU_ACPRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PRESCALER[12:0]
Reset value0000000000000
0x014 to 0x0ECReserved
0x0F0TPIU_SPPRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TXMODE [1:0]
Reset value01
0x0F4 to 0x2FCReserved
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.FTNONSTOPTCPRESENTFTSTOPPEDFLINPROG
Reset value1000
0x304TPIU_FFCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGINRes.FONMANRes.Res.ENFCONRes.Res.Res.Res.
Reset value101
Table 879. TPIU register map and reset values (continued)
OffsetRegister name313029282726252423222120191817161514131211109876543210
0x308TPIU_PSCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PSCOUNT[12:0]
Reset value0000000000000
030C to 0xF9CReserved
0xFA0TPIU_CLAIMSETRRes.Res.Res.Res.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
0FA8 to 0xFC4Reserved
0xFC8TPIU_DEVIDRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SWOUARTNRZ:SWOMANTCLKDATAFIFOSIZE[2:0]CLKRELATMaxNUM[4:0]
Reset value110010100001
0xFCCTPIU_DEVTYPERRes.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
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 value00100001
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 value10111101
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 value00001011
0xFECTPIU_PIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVAND[3:0]CMOD[3:0]
Reset value00000000
0xFF0TPIU_CIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[7:0]
Reset value00001101
0xFF4TPIU_CIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLASS[3:0]PREAMBLE
[11:8]
Reset value10010000
0xFF8TPIU_CIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[19:12]
Reset value00000101
0xFFCTPIU_CIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[27:20]
Reset value10110001
Refer to Table 870: MCU ROM table for register boundary addresses.

66.11 Cross-trigger interface (CTI)

The CTI (see Figure 982) allows cross triggering between the processor and the ETM.

Figure 982. Embedded cross trigger

Block diagram of the Embedded Cross Trigger (CTI) interface. The diagram shows the PPB (Peripheral Bus) connecting to the Cortex-M33 CTI. The CTI interface has three main input sources: DWT (Data Watchpoint and Trace), Cortex-M33 CPU, and ETM (Embedded Trace Macrocell). DWT provides ETMTRIGGER0, ETMTRIGGER1, and ETMTRIGGER2 to TRIGIN1, TRIGIN2, and TRIGIN3 respectively. Cortex-M33 CPU provides HALTED to TRIGIN0, EDBGRQ to TRIGOUT0, and DBGRESTART to TRIGOUT1. ETM provides ETMTRIGOUT0 and ETMTRIGOUT1 to TRIGIN4 and TRIGIN5, and ETMEXTIN0, ETMEXTIN1, ETMEXTIN2, and ETMEXTIN3 to TRIGOUT4, TRIGOUT5, TRIGOUT6, and TRIGOUT7 respectively. The CTI also has a feedback path from TRIGOUT0 to TRIGIN0 and TRIGOUT1 to TRIGIN1.

MSv67395V1

Block diagram of the Embedded Cross Trigger (CTI) interface. The diagram shows the PPB (Peripheral Bus) connecting to the Cortex-M33 CTI. The CTI interface has three main input sources: DWT (Data Watchpoint and Trace), Cortex-M33 CPU, and ETM (Embedded Trace Macrocell). DWT provides ETMTRIGGER0, ETMTRIGGER1, and ETMTRIGGER2 to TRIGIN1, TRIGIN2, and TRIGIN3 respectively. Cortex-M33 CPU provides HALTED to TRIGIN0, EDBGRQ to TRIGOUT0, and DBGRESTART to TRIGOUT1. ETM provides ETMTRIGOUT0 and ETMTRIGOUT1 to TRIGIN4 and TRIGIN5, and ETMEXTIN0, ETMEXTIN1, ETMEXTIN2, and ETMEXTIN3 to TRIGOUT4, TRIGOUT5, TRIGOUT6, and TRIGOUT7 respectively. The CTI also has a feedback path from TRIGOUT0 to TRIGIN0 and TRIGOUT1 to TRIGIN1.

The CTI enables events from various sources to trigger debug and/or trace activity. For example, a watchpoint reached in the processor can start or stop code trace, or a trace comparator can halt the processor.

The trigger input and output signals for the CTI are listed in the tables below.

Table 880. CTI inputs

NumberSource signalSource componentComments
0HALTEDCPUProcessor halted - CPU is in debug mode
1ETMTRIGGER0DWTDWT comparator output 0
2ETMTRIGGER1DWTDWT comparator output 1
3ETMTRIGGER2DWTDWT comparator output 2
4ETMTRIGOUT0ETMETM event output 0
5ETMTRIGOUT1ETMETM event output 1
6--Not used
7--Not used

Table 881. CTI outputs

NumberSource signalDestination componentComments
0EDBGRQCPUCPU halt request - Puts CPU in debug mode
1DBGRESTARTCPUCPU restart request - CPU exits debug mode

Table 881. CTI outputs (continued)

NumberSource signalDestination componentComments
2ETMEXTIN0ETMETM event input 0
3ETMEXTIN1ETMETM event input 1
4ETMEXTIN2ETMETM event input 2
5ETMEXTIN3ETMETM event input 3
6--Not used
7--Not used

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

66.11.1 CTI registers

The register file base address for the CTI is 0xE004 2000.

CTI control register (CTI_CONTROLLR)

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.

CTI trigger acknowledge register (CTI_INTACKR)

Address offset: 0x010

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.INTACK[7:0]
wwwwwwww
ST logo
ST logo

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

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 setting

Read:

Write:

CTI application trigger clear register (CTI_APPCLEAR)

Address offset: 0x018

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

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

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

0000: no effect

XXX1: Clears event on channel 0.

XX1X: Clears event on channel 1.

X1XX: Clears event on channel 2.

1XXX: Clears event on channel 3.

CTI application pulse register (CTI_APPPULSER)

Address offset: 0x01C

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.APPPULSE[3:0]
wwww

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

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

This register clears itself immediately.

0000: no effect

XXX1: Generates pulse on channel 0.

XX1X: Generates pulse on channel 1.

X1XX: Generates pulse on channel 2.

1XXX: Generates pulse on channel 3.

CTI trigger input x enable register (CTI_INENxR)

Address offset: 0x020 + 0x004 * 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]: trigger input event enable

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

0000: Trigger does not generate events on channels.

XXX1: Trigger x generates events on channel 0.

XX1X: Trigger x generates events on channel 1.

X1XX: Trigger x generates events on channel 2.

1XXX: Trigger x generates events on channel 3.

CTI trigger output x enable register (CTI_OUTENxR)

Address offset: 0x0A0 + 0x004 * 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]: trigger output event enable

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

0000: Channel events do not generate triggers on trigger outputs.

XXX1: Channel 0 events generate triggers on trigger output x.

XX1X: Channel 1 events generate triggers on trigger output x.

X1XX: Channel 2 events generate triggers on trigger output x.

1XXX: Channel 3 events generate triggers on trigger output x.

CTI trigger input status register (CTI_TRGISTSR)

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 CTITRIGINx 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 output status register (CTI_TRGOSTSR)

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 input status register (CTI_CHINSTSR)

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.CHINSTSTATUS[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 output status register (CTI_CHOUTSTSR)

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

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.

0000: Channels events do not propagate.

XXX1: Channel 0 events propagate.

XX1X: Channel 1 events propagate.

X1XX: Channel 2 events propagate.

1XXX: Channel 3 events propagate.

CTI device configuration register (CTI_DEVIDR)

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: four channelsBits 15:8 NUMTRIG[7:0] : number of ECT triggers available
0x8: height trigger inputs and height 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_DEVTYPER)

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

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

0x21: CTI part number

CTI CoreSight peripheral identity register 1 (CTI_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00BD

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

0xD: CTI part number

CTI CoreSight peripheral identity register 2 (CTI_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

0x1: designer identification 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 identification bits [7:0]

0x0D: common identification 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 identification bits [15:12] - component class

0x9: CoreSight™ component

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

0x0: common identification value

CTI CoreSight component identity register 2 (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 identification bits [23:16]
0x05: common identification 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 identification bits [31:24]
0xB1: common identification value

66.11.2 CTI register map

Table 882. CTI register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000CTI_CONTROLRRes.Res.Res.Res.Res.Res.Res.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
0x004 to 0x00CReserved
0x010CTI_INTACKRRes.Res.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 valueXXXXXXXX
0x014CTI_APPSETRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.APPSET[3:0]
Reset value0000
0x018CTI_APPCLEARRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.APPCLEAR[3:0]
Reset value0000

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x01CCTI_APPPULSERRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.APPPULSE [3:0]
Reset valueXXXX
0x020 to 0x03CCTI_INEN0R to CTI_INEN7RRes.Res.Res.Res.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
0x040 to 0x09CReserved
0x0A0 to 0x0BCCTI_OUTEN0R to CTI_OUTEN7RRes.Res.Res.Res.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
0x0C0 to 0x12CReserved
0x130CTI_TRGISTSRRes.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_TRGOSTSRRes.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_CHINSTSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CHINSTATUS [3:0]
Reset value0000
0x13CCTI_CHOUTSTSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CHOUTSTATUS[3:0]
Reset value0000
0x140CTI_GATERRes.Res.Res.Res.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
0x144 to 0xFC4Reserved
0xFC8CTI_DEVIDRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NUMCH[3:0]NUMTRIG[7:0]Res.Res.Res.Res.EXTMUXNUM [4:0]
Reset value010000010000000
0xFCCCTI_DEVTYPERRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SUB[3:0]MAJOR[3:0]
Reset value00010100
0xFD0CTI_PIDR4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SIZE [3:0]JEP106CON [3:0]
Reset value00000100
0xFD4 to 0xFDCReserved
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.PARTNUM[7:0]
Reset value00010001
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 value10111101
ST logo
ST logo

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
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 value00001011
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

Refer to Table 871: Processor ROM table for register boundary addresses.

66.12 Microcontroller debug unit (DBGMCU)

The DBGMCU is a component containing a number of registers that control the power and clock behavior in debug mode. It allows the debugger (or the software) to:

66.12.1 Device ID

The DBGMCU includes an identity code register, DBGMCU_IDCODE. This register contains the ID code for the device. Debug tools can locate this register via the CoreSight™ discovery procedure described in Section 66.5.

66.12.2 Low-power mode emulation

When the device enters either Stop mode (clocks are stopped) or Standby mode (core power is switched off), the debugger can no longer access the debug access port and loses the connection with the device. To avoid this, the debugger (or software) can set the DBG_STANDBY and/or DBG_STOP bits in the DBGMCU configuration register (DBGMCU_CR). These bits, when set, maintain the clock and power to the processor while the device is in the corresponding low-power mode. The processor remains in Sleep mode, and exits the low-power mode in the normal way. However, peripheral devices continue to operate, so the device behavior may not be identical to that of the actual low-power mode.

66.12.3 Peripheral clock freeze

The DBGMCU peripheral clock freeze registers allow to suspend operation of certain peripherals in debug mode. The peripherals supporting this feature are listed in Table 883.

Table 883. Peripheral clock freeze control bits

BusControl registerPeripheral(1)Description
APB1LDBGMCU_APB1LFZRI3C1I3C1 SCL stall timeout counter
I2C2I2C2 SMBUS timeout
I2C1I2C1 SMBUS timeout
IWDGIndependent watchdog
WWDGWindow watchdog
TIM14General purpose timer 14
TIM13General purpose timer 13
TIM12General purpose timer 12
TIM7General purpose timer 7
TIM6General purpose timer 6
TIM5General purpose timer 5
TIM4General purpose timer 4
TIM3General purpose timer 3
TIM2General purpose timer 2
APB1HDGBMCU_APB1HFZRLPTIM2Low power timer 2
APB2DBGMCU_APB2FZRTIM17General purpose timer 17
TIM16General purpose timer 16
TIM15General purpose timer 15
TIM8General purpose timer 8
TIM1General purpose timer 1
APB3DBGMCU_APB3FZRRTCReal time clock
LPTIM6Low power timer 6
LPTIM5Low power timer 5
LPTIM4Low power timer 4
LPTIM3Low power timer 3
LPTIM1Low power timer 1
I3C2(2)I3C2 SCL stall timeout counter
I2C4I2C4 SMBUS timeout
I2C3I2C3 SMBUS timeout
AHB1DBGMCU_AHB1FZRGPDMA2 0 to 7General purpose DMA2 channels 0 to 7
GPDMA1 0 to 7General purpose DMA1 channels 0 to 7

1. Refer to the device datasheet for the peripheral availability.

  1. Available on STM32H543/553 devices only.

Each peripheral unit or DMA channel has a corresponding control bit, DBG_xxx_STOP, where xxx is the acronym of the peripheral (or DMA channel). The control bits are organized in DBGMCU_zzzFZR registers, where zzz corresponds to the name of the bus (AHB or APB). For example, DBGMCU_APB1LFZR contains the control bits for peripherals on the APB1L bus.

The control bit, when set, causes the corresponding peripheral operation to be suspended when the CPU is stopped in debug (HALTED = 1), according to the table below:

Table 884. Peripheral behaviour in debug mode

HALTEDDBG_xxx_STOPPeripheral behaviour
0XThe operation continues.
10The operation continues.
11The operation is suspended.

The accessibility of the bits DBG_xxx_STOP by the debugger depends on the state of the authentication signal spiden.

When spiden = 1 (secure privilege debug enabled), all bits can be modified and read by both debugger and software (secure or nonsecure).

When spiden = 0 (secure privilege debug disabled), only bits corresponding to nonsecure peripherals (or DMA channels) can be modified by the debugger or software. All bits can be read.

The status (secure or nonsecure) of a TrustZone-aware peripheral or a DMA channel, is signaled to the DBGMCU by the peripheral.

66.12.4 DBGMCU registers

The DBGMCU registers are reset only by a power-on reset.

They are accessible to the debugger via the AHB access port at base address 0xE00E 4000, and to software at base address 0x4402 4000.

DBGMCU identity code register (DBGMCU_IDCODE)

Address offset: 0x00

Reset value: 0xXXXXX 6XXX

This register is always accessible.

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

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

A: 0x1000
Z: 0x1001
X: 0x1007
W: 0x100F

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

Bits 11:0 DEV_ID[11:0]: Device identification

0x484: STM32H562/563/573
0x478: STM32H523/533
0x47C: STM32H543/553

DBGMCU configuration register (DBGMCU_CR)

Address offset: 0x04

Reset value: 0x0000 0000

This register is accessible to the debugger and to the CPU after successful authentication.
Prior to this, debugger accesses are ignored.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DCRT
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.TRACE_MODE
[1:0]
TRACE_ENTRACE_IOENRes.DBG_STANDBYDBG_STOPRes.
rwrwrwrwrw

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

Bit 16 DCRT: Debug credentials reset type

This bit selects which type of reset is used to revoke the debug authentication credentials

0: System reset
1: Power reset

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

Bits 7:6 TRACE_MODE[1:0]: trace pin assignment

0x0: trace pins assigned for asynchronous mode (TRACESWO)
0x1: trace pins assigned for synchronous mode with a port width of 1 (TRACECK, TRACED0)
0x2: trace pins assigned for synchronous mode with a port width of 2 ((TRACECK, TRACED0-1)
0x3: trace pins assigned for synchronous mode with a port width of 4 ((TRACECK, TRACED0-3)

Bit 5 TRACE_EN: trace port and clock enable.

This bit enables the trace port clock, TRACECK.

0: disabled

1: enabled

Bit 4 TRACE_IOEN: trace pin enable

0: disabled - trace pins not assigned

1: enabled - trace pins assigned according to the value of TRACE_MODE field

Bit 3 Reserved, must be kept at reset value.

Bit 2 DBG_STANDBY: Allows debug in Standby mode

0: normal operation

All clocks are disabled and the core 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 core supply is maintained, allowing full debug capability. On exit from Standby mode, a system reset is performed.

Bit 1 DBG_STOP: Allows debug in Stop mode

0: normal operation

All clocks are disabled automatically in Stop mode.

1: automatic clock stop disabled

All active clocks and oscillators continue to run during Stop mode, allowing full debug capability. On exit from Stop mode, the clock settings are set to the Stop mode exit state.

Bit 0 Reserved, must be kept at reset value.

DBGMCU APB1L peripheral freeze register (DBGMCU_APB1LFZR)

Address offset: 0x08

Reset value: 0x0000 0000

This register is accessible to the debugger and to the CPU after successful authentication. Prior to this, accesses are ignored.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.DBG_I3C1_STOPDBG_I2C2_STOPDBG_I2C1_STOPRes.Res.Res.Res.Res.
rwrwrw
1514131211109876543210
Res.Res.Res.DBG_IWDG_STOPDBG_WWDG_STOPRes.Res.DBG_TIM14_STOPDBG_TIM13_STOPDBG_TIM12_STOPDBG_TIM7_STOPDBG_TIM6_STOPDBG_TIM5_STOPDBG_TIM4_STOPDBG_TIM3_STOPDBG_TIM2_STOP
rwrwrwrwrwrwrwrwrwrwrw

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

Bit 2 DBG_TIM4_STOP: TIM4 stop in debug

Bit 1 DBG_TIM3_STOP: TIM3 stop in debug

Bit 0 DBG_TIM2_STOP: TIM2 stop in debug

DBGMCU APB1H peripheral freeze register (DBGMCU_APB1HFZR)

Address offset: 0x0C

Reset value: 0x0000 0000

This register is accessible to the debugger and to the CPU after successful authentication. Prior to this, accesses are ignored.

31302928272625242322212019181716
Res.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.DBG_LPTIM2_STOPRes.Res.Res.Res.Res.
r/w

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

Bit 5 DBG_LPTIM2_STOP: LPTIM2 stop in debug

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

DBGMCU APB2 peripheral freeze register (DBGMCU_APB2FZR)

Address offset: 0x10

Reset value: 0x0000 0000

This register is accessible to the debugger and to the CPU after successful authentication.
Prior to this, accesses are ignored.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_TIM17_STOPDBG_TIM16_STOPDBG_TIM15_STOP
rwrwrw
1514131211109876543210
Res.Res.DBG_TIM8_STOPRes.DBG_TIM1_STOPRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rwrw

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

Bit 18 DBG_TIM17_STOP: TIM17 stop in debug

0: normal operation. TIM17 continues to operate while CPU is in debug mode.

1: stop in debug. TIM17 is frozen while CPU is in debug mode.

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 17 DBG_TIM16_STOP: TIM16 stop in debug

0: normal operation. TIM16 continues to operate while CPU is in debug mode.

1: stop in debug. TIM16 is frozen while CPU is in debug mode.

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 16 DBG_TIM15_STOP: TIM15 stop in debug

0: normal operation. TIM15 continues to operate while CPU is in debug mode.

1: stop in debug. TIM15 is frozen while CPU is in debug mode.

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

Bit 13 DBG_TIM8_STOP: TIM8 stop in debug

0: normal operation. TIM8 continues to operate while CPU is in debug mode.

1: stop in debug. TIM8 is frozen while CPU is in debug mode.

Bit 12 Reserved, must be kept at reset value.

Bit 11 DBG_TIM1_STOP: TIM1 stop in debug

0: normal operation. TIM1 continues to operate while CPU is in debug mode.

1: stop in debug. TIM1 is frozen while CPU is in debug mode.

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

DBGMCU APB3 peripheral freeze register (DBGMCU_APB3FZR)

Address offset: 0x14

Reset value: 0x0000 0000

This register is accessible to the debugger and to the CPU after successful authentication. Prior to this, accesses are ignored.

31302928272625242322212019181716
Res.DBG_RTC_STOPRes.Res.Res.Res.Res.Res.Res.Res.DBG_LPTIM6_STOPDBG_LPTIM5_STOPDBG_LPTIM4_STOPDBG_LPTIM3_STOPDBG_LPTIM1_STOPRes.
rwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.DBG_I3C2_STOPDBG_I2C4_STOPDBG_I2C3_STOPRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrw

Bit 31 Reserved, must be kept at reset value.

Bit 30 DBG_RTC_STOP: RTC stop in debug

0: normal operation. RTC continues to operate while CPU is in debug mode.

1: stop in debug. RTC is frozen while CPU is in debug mode.

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

Bit 21 DBG_LPTIM6_STOP: LPTIM6 stop in debug

0: normal operation. LPTIM6 continues to operate while CPU is in debug mode.

1: stop in debug. LPTIM6 is frozen while CPU is in debug mode.

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 20 DBG_LPTIM5_STOP: LPTIM5 stop in debug

0: normal operation. LPTIM5 continues to operate while CPU is in debug mode.

1: stop in debug. LPTIM5 is frozen while CPU is in debug mode.

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 19 DBG_LPTIM4_STOP: LPTIM4 stop in debug

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 18 DBG_LPTIM3_STOP: LPTIM3 stop in debug

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 17 DBG_LPTIM1_STOP: LPTIM1 stop in debug

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

Bit 12 DBG_I3C2_STOP: I3C2 SCL stall counter stop in debug

Note: This bit is only available on STM32H543/553 devices.

Bit 11 DBG_I2C4_STOP: I2C4 SMBUS timeout stop in debug

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 10 DBG_I2C3_STOP: I2C3 SMBUS timeout stop in debug

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

DBGMCU AHB1 peripheral freeze register (DBGMCU_AHB1FZR)

Address offset: 0x20

Reset value: 0x0000 0000

This register is accessible to the debugger and to the CPU after successful authentication. Prior to this, accesses are ignored.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.DBG_GPDMA2_7_STOPDBG_GPDMA2_6_STOPDBG_GPDMA2_5_STOPDBG_GPDMA2_4_STOPDBG_GPDMA2_3_STOPDBG_GPDMA2_2_STOPDBG_GPDMA2_1_STOPDBG_GPDMA2_0_STOP
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.DBG_GPDMA1_7_STOPDBG_GPDMA1_6_STOPDBG_GPDMA1_5_STOPDBG_GPDMA1_4_STOPDBG_GPDMA1_3_STOPDBG_GPDMA1_2_STOPDBG_GPDMA1_1_STOPDBG_GPDMA1_0_STOP
rwrwrwrwrwrwrwrw

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

Bit 23 DBG_GPDMA2_7_STOP: GPDMA2 channel 7 stop in debug

0: normal operation. GPDMA2 channel 7 continues to operate while CPU is in debug mode.

1: stop in debug. GPDMA2 channel 7 is frozen while CPU is in debug mode.

Bit 22 DBG_GPDMA2_6_STOP: GPDMA2 channel 6 stop in debug

0: normal operation. GPDMA2 channel 6 continues to operate while CPU is in debug mode.

1: stop in debug. GPDMA2 channel 6 is frozen while CPU is in debug mode.

Bit 21 DBG_GPDMA2_5_STOP: GPDMA2 channel 5 stop in debug

0: normal operation. GPDMA2 channel 5 continues to operate while CPU is in debug mode.

1: stop in debug. GPDMA2 channel 5 is frozen while CPU is in debug mode.

Bit 20 DBG_GPDMA2_4_STOP: GPDMA2 channel 4 stop in debug

0: normal operation. GPDMA2 channel 4 continues to operate while CPU is in debug mode.

1: stop in debug. GPDMA2 channel 4 is frozen while CPU is in debug mode.

Bit 19 DBG_GPDMA2_3_STOP: GPDMA2 channel 3 stop in debug

0: normal operation. GPDMA2 channel 3 continues to operate while CPU is in debug mode.

1: stop in debug. GPDMA2 channel 3 is frozen while CPU is in debug mode.

Bit 18 DBG_GPDMA2_2_STOP: GPDMA2 channel 2 stop in debug

0: normal operation. GPDMA2 channel 2 continues to operate while CPU is in debug mode.

1: stop in debug. GPDMA2 channel 2 is frozen while CPU is in debug mode.

Bit 17 DBG_GPDMA2_1_STOP: GPDMA2 channel 1 stop in debug

0: normal operation. GPDMA2 channel 1 continues to operate while CPU is in debug mode.

1: stop in debug. GPDMA2 channel 1 is frozen while CPU is in debug mode.

Bit 16 DBG_GPDMA2_0_STOP: GPDMA2 channel 0 stop in debug

0: normal operation. GPDMA2 channel 0 continues to operate while CPU is in debug mode.

1: stop in debug. GPDMA2 channel 0 is frozen while CPU is in debug mode.

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

DBGMCU EDBGRQ register (DBGMCU_EDBGRQ)

Address offset: 0x80

Reset value: 0x0000 0000

This register is available only in STM32H543/553 devices.

This register can be written and read by an external debugger while the system reset is asserted, or if the debug is enabled after a successful authentication.

It is read-only when accessed by the CPU, writes have no effect. Read accesses only return meaningful data if debug is enabled after a successful authentication.

31302928272625242322212019181716
Res.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.CPU
r

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

Bit 0 CPU: drives the CPU external debug request (EDBGRQ) signal. This bit can be used to halt the CPU in debug after the reset is released (vector catch), instead of writing to VC_CORERESSET in DEMCR register.

0: External debug request de-asserted

1: External debug request asserted. The CPU stops in debug when halting debug is authorized.

DBGMCU status register (DBGMCU_SR)

Address offset: 0xFC

Reset value: 0x0001 XX03

This register is always accessible.

31302928272625242322212019181716
AP_ENABLED[15:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
AP_PRESENT[15:0]
rrrrrrrrrrrrrrrr

Bits 31:16 AP_ENABLED[15:0]: Bit n identifies whether access port AP n is open (can be accessed via the debug port) or locked (debug access to the AP is blocked)

Bit n = 0: APn locked

Bit n = 1: APn enabled

Bits 15:0 AP_PRESENT[15:0]: Bit n identifies whether access port AP n is present in device

Bit n = 0: APn absent

Bit n = 1: APn present

DBGMCU debug authentication mailbox host register (DBGMCU_DBG_AUTH_HOST)

Address offset: 0x100

Reset value: 0XXXXX XXXX

This register is read only when accessed by the CPU, writes have no effect.

This register can be written and read by an external debugger when system reset is asserted, or when access is granted during the authentication process.

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

Bits 31:0 MESSAGE[31:0]: Debug host to device mailbox message.

The debug host requests authentication by writing a value to this register prior to releasing the system reset. During debug authentication the debug host communicates with the device (CPU) via this register.

DBGMCU debug authentication mailbox device register
(DBGMCU_DBG_AUTH_DEVICE)

Address offset: 0x104

Reset value: 0XXXXX XXXX

This register is read only when accessed via the debug port, writes have no effect.

This register can be written and read by the CPU.

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

Bits 31:0 MESSAGE[31:0]: Device to debug host mailbox message.

During debug authentication the device (CPU) communicates with the debug host via this register.

DBGMCU debug authentication mailbox acknowledge register
(DBGMCU_DBG_AUTH_ACK)

Address offset: 0x108

Reset value: 0x0000 0000

This register is always accessible.

31302928272625242322212019181716
Res.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.DEV_ACKHOST_ACK
rr

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

Bit 1 DEV_ACK: Device to host acknowledge.

This bit is set by hardware when the device (CPU) writes a message in the DBGMCU_DBG_AUTH_DEVICE register. It is reset automatically when the host (debugger) reads the message.

0: DBGMCU_DBG_AUTH_DEVICE register is empty

1: DBGMCU_DBG_AUTH_DEVICE register contains an unread message

Bit 0 HOST_ACK: Host to device acknowledge.

This bit is set by hardware when the host (debugger) writes a message in the DBGMCU_DBG_AUTH_HOST register. It is reset automatically when the device (CPU) reads the message.

0: DBGMCU_DBG_AUTH_HOST register is empty

1: DBGMCU_DBG_AUTH_HOST register contains an unread message

DBGMCU CoreSight peripheral identity register 4 (DBGMCU_PIDR4)

Address offset: 0xFD0

Reset value: 0x0000 0000

This register is always accessible.

31302928272625242322212019181716
Res.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: The register file occupies a single 4-Kbyte region.

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

0x0: STMicroelectronics JEDEC code

DBGMCU CoreSight peripheral identity register 0 (DBGMCU_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 0000

This register is always accessible.

31302928272625242322212019181716
Res.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: DBGMCU part number

DBGMCU CoreSight peripheral identity register 1 (DBGMCU_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 0000

This register is always accessible

31302928272625242322212019181716
Res.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]
0x0: DBGMCU part number

DBGMCU CoreSight peripheral identity register 2 (DBGMCU_PIDR2)

Address offset: 0xFE8

Reset value: 0x0000 000A

This register is always accessible.

31302928272625242322212019181716
Res.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 identification specified by JEDEC

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

DBGMCU CoreSight peripheral identity register 3 (DBGMCU_PIDR3)

Address offset: 0xFEC

Reset value: 0x0000 0000

This register is always accessible.

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

DBGMCU CoreSight component identity register 0 (DBGMCU_CIDR0)

Address offset: 0xFF0

Reset value: 0x0000 000D

This register is always accessible.

31302928272625242322212019181716
Res.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 identification bits [7:0]

0x0D: common identification value

DBGMCU CoreSight component identity register 1 (DBGMCU_CIDR1)

Address offset: 0xFF4

Reset value: 0x0000 00F0

This register is always accessible.

31302928272625242322212019181716
Res.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 identification bits [15:12] - component class

0xF: Non-CoreSight component

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

0x0: common identification value

DBGMCU CoreSight component identity register 2 (DBGMCU_CIDR2)

Address offset: 0xFF8

Reset value: 0x0000 0005

This register is always accessible.

31302928272625242322212019181716
Res.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 identification bits [23:16]

0x05: common identification value

DBGMCU CoreSight component identity register 3 (DBGMCU_CIDR3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

This register is always accessible.

31302928272625242322212019181716
Res.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 identification bits [31:24]

0xB1: common identification value

66.12.5 DBGMCU register map

Table 885. DBGMCU register map and reset values
OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000DBGMCU_IDCODEREV_ID[15:0]Res.Res.Res.Res.DEV_ID[11:0]
Reset valueXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0x004DBGMCU_CRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DCRTRes.Res.Res.Res.TRACE_MODE[1:0]TRACE_ENTRACE_IOENRes.DBG_STANDBYDBG_STOPRes.
Reset value0000000000000
0x008DBGMCU_APB1LFZRRes.Res.Res.Res.Res.Res.Res.Res.DBG_I3C1_STOPDBG_I2C2_STOPDBG_I2C1_STOPRes.Res.Res.Res.Res.Res.Res.Res.DBG_IWDG_STOPDBG_WWDG_STOPRes.Res.DBG_TIM14_STOP(1)DBG_TIM13_STOP(1)DBG_TIM12_STOPDBG_TIM7_STOPDBG_TIM6_STOPDBG_TIM5_STOPDBG_TIM4_STOPDBG_TIM3_STOPDBG_TIM2_STOP
Reset value00000000000000
0x0C0DBGMCU_APB1HFZRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_LPTIM2_STOPRes.Res.Res.Res.Res.Res.
Reset value0

Table 885. DBGMCU register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x010DBGMCU_APB2FZRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_TIM17_STOPDBG_TIM16_STOPDBG_TIM15_STOPRes.Res.Res.DBG_TIM8_STOPRes.DBG_TIM1_STOPRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00000
0x04DBGMCU_APB3FZRRes.DBG_RTC_STOPRes.Res.Res.Res.Res.Res.Res.Res.DBG_LPTIM6_STOP(1)DBG_LPTIM5_STOP(1)DBG_LPTIM4_STOP(1)DBG_LPTIM3_STOP(1)DBG_LPTIM1_STOPRes.Res.Res.Res.Res.DBG_I3C2_STOP(2)DBG_I2C4_STOP(1)DBG_I2C3_STOPRes.Res.Res.Res.Res.Res.Res.Res.
Reset value000000000
0x018 to 0x01CReserved
0x020DBGMCU_AHB1FZRRes.Res.Res.Res.Res.Res.Res.Res.DBG_GPDMA2_7_STOPDBG_GPDMA2_6_STOPDBG_GPDMA2_5_STOPDBG_GPDMA2_4_STOPDBG_GPDMA2_3_STOPDBG_GPDMA2_2_STOPDBG_GPDMA2_1_STOPDBG_GPDMA2_0_STOPRes.Res.Res.Res.Res.Res.Res.Res.Res.DBG_GPDMA1_7_STOPDBG_GPDMA1_6_STOPDBG_GPDMA1_5_STOPDBG_GPDMA1_4_STOPDBG_GPDMA1_3_STOPDBG_GPDMA1_2_STOPDBG_GPDMA1_1_STOPDBG_GPDMA1_0_STOP
Reset value0000000000000000
0x024 to 0x07CReserved
0x80DBGMCU_EDBGRQ(2)Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CPU
Reset Value0
0x084 to 0xF8Reserved
0x0FCDBGMCU_SRAP_ENABLED[15:0]AP_PRESENT[15:0]
Reset value00000000000000010000000000000011
0x100DBGMCU_DBG_AUTH_HOSTMESSAGE[31:0]
Reset valueXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0x104DBGMCU_DBG_AUTH_DEVICEMESSAGE[31:0]
Reset valueXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0x108DBGMCU_DBG_AUTH_ACKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DEV_ACKHOST_ACK
Reset value00
0x10C to 0xFBCReserved
0xFD0DBGMCU_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.SIZE[3:0]JEP106CON[3:0]
Reset value00000000
0xFD4 to 0xFDCReserved

Table 885. DBGMCU register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xFE0DBGMCU_PIDR0ResResResResResResResResResResResResResResResResResResResResResResResResPARTNUM[7:0]
Reset value00000000
0xFE4DBGMCU_PIDR1ResResResResResResResResResResResResResResResResResResResResResResResResJEP106ID[3:0]PARTNUM[11:8]
Reset value00000000
0xFE8DBGMCU_PIDR2ResResResResResResResResResResResResResResResResResResResResResResResResREVISION[3:0]JEPDECJEP106ID[6:4]
Reset value00001010
0xFECDBGMCU_PIDR3ResResResResResResResResResResResResResResResResResResResResResResResResREVAND[3:0]CMOD[3:0]
Reset value00000000
0xFF0DBGMCU_CIDR0ResResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE[7:0]
Reset value00001101
0xFF4DBGMCU_CIDR1ResResResResResResResResResResResResResResResResResResResResResResResResCLASS[3:0]PREAMBLE[11:8]
Reset value11110000
0xFF8DBGMCU_CIDR2ResResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE[19:12]
Reset value00000101
0xFFCDBGMCU_CIDR3ResResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE[27:20]
Reset value10110001
  1. This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.
  2. Available only on STM32H543/553 devices.

Refer to Section 2.3: Memory organization for the register boundary addresses.

66.13 References

  1. IHI 0031C (ID080813) - Arm® Debug Interface Architecture Specification ADIv5.0 to ADIv5.2, Issue C, 8th Aug 2013
  2. DDI 0480F (ID100313) - Arm® CoreSight™ SoC-400 r3p2 Technical Reference Manual, Issue G, 16th March 2015
  3. DDI 0314H - Arm® CoreSight™ Components Technical Reference Manual, Issue H, 10 July, 2009
  4. DDI 0553A (ID092917) - Arm® v8-M Architecture Reference Manual, Issue A.f, 29 September 2017
  5. 100230_0002_00_en - Arm® Cortex®-M33 Processor r0p2 Technical Reference Manual, Issue 0002-00, 10 May 2017
  6. 100232_0001_00_en - Arm® CoreSight™ ETM-M33 r0p1 Technical Reference Manual, Issue 0001-00, 3 February 2017