38. Debug support (DBG)

38.1 DBG introduction and main features

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.

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

CPU2 debug features are accessible by the debugger via the CPU2 AHB-AP and its associated AHB bus.

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

Device level debug features are controlled in the DBGMCU (see Section 38.12 ), only accessible by the CPU1.

38.2 DBG use cases

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

Limited trace capability is available over the single-wire debug output. This supports code instrumentation using printf , tracing of data and address watchpoints, interrupt detection and program counter sampling. Single-wire trace can be maintained even when one or both processors are switched off or clock-stopped.

Both processor cores can be simultaneously and independently debugged using equipment connected to the JTAG/SWD debug port. This enables, among others, breakpoint and watchpoint setting, code stepping and memory access.

When one core stops due to a breakpoint or a debugger stop command, the other core can be stopped as well. Similarly, the cores can be restarted at the same time. This allows the user to debug loosely coupled applications, which require the processors to remain synchronized.

Trace information from the CPU1 (Cortex-M4) is combined into a single trace stream and sent to a trace port analyzer in real time. An ID embedded in the trace allows the analyzer to identify the source of each information packet.

38.3 DBG functional description

38.3.1 DBG block diagram

Figure 384. Block diagram of debug support infrastructure

Block diagram of debug support infrastructure showing two cores (CPU1 Cortex-M4 and CPU2 Cortex-M0+) connected to a Debug Access Port (DAP) and a Trace port. The diagram includes components like DWT, FPB, ITM, TPIU, CTI, and a Cross trigger matrix (CTM).

The block diagram illustrates the debug support infrastructure for a dual-core system. On the left, the JTAG/Serial-wire port (with pins JTMS/SWDIO, JTDI, JTDO, JTCK/SWCLK, and nJTRST) connects to a Debug access port (DAP) . The DAP contains an SWJ-DP (1) component connected to a DAPBUS . This bus connects to an AHB-AP (1) and the CPU1 Cortex-M4 core. The CPU1 core is connected to an AHB bus, which in turn connects to several Arm CoreSight components (1) : DWT (1) , FPB (1) , ITM (1) , and TPIU (1) . The TPIU (1) is connected to a Trace port (pin TRACESWO ). The CPU1 core also connects to a CTI (1) (Cross Trigger Interface), which is part of a Cross trigger matrix (CTM) . The CTM connects to another CTI (1) for CPU2 Cortex-M0+ . CPU2 is connected to an AHB bus, which connects to ROM1 table (1) , ROM2 table (1) , and a Core component. Below these, BPU (1) and DWT (1) are also connected to the AHB bus. A DBG_MCU component is shown on the right, connected to the CTI (1) of CPU1. A legend at the bottom left indicates that (1) refers to Arm CoreSight components . The diagram is labeled MSV60364V1 in the bottom right corner.

Block diagram of debug support infrastructure showing two cores (CPU1 Cortex-M4 and CPU2 Cortex-M0+) connected to a Debug Access Port (DAP) and a Trace port. The diagram includes components like DWT, FPB, ITM, TPIU, CTI, and a Cross trigger matrix (CTM).

38.3.2 DBG pins and internal signals

Table 265. JTAG/Serial-wire debug port pins

Pin nameJTAG debug portSerial-wire debug portPin assignment
TypeDescriptionTypeDescription
JTMS/SWDIOIJTAG test mode selectIOSerial wire data in/outPA13
JTCK/SWCLKIJTAG test clockISerial wire clockPA14
JTDIIJTAG test data input--PA15
JTDO/TRACESWO (1)OJTAG test data output--PB3
nJTRSTIJTAG test reset--PB4

1. Debug access port JTDO and Trace port TRACESWO are multiplexed on a single device GPIO pin.

Table 266. Single-wire trace port pins

Pin nameTypeDescriptionPin assignment
TRACESWOOSingle wire trace asynchronous data outPB3 (1)

1. TRACESWO is multiplexed with JTDO. This means that single-wire trace is only available when using the Serial-wire debug interface, and not when using JTAG.

38.3.3 DBG interface control

Device debug access is controlled from the following parameters:

Debug access control is independent from ESE.

Debug access to the CPUs is shown in the table below.

Table 267. Debug access control overview

RDPDDSC2SWDBGENRSS bootCPU1 debugCPU2 debugComment
0 or 101NoEnabledEnabledWhen HDPAD = 1, C2SWDBGEN is enabled from reset.
0DisabledWhen HDPAD = 0, C2SWDBGEN is disabled from reset.
1xNoEnabledDisabledCortex-M0+ debug is disabled by DDS.
2xxxDisabledDisabledDebug is disabled by RDP level 2.

38.3.4 DBG reset and clocks

The debug port (SWJ-DP) is reset by a power-on reset or an OBL (option byte loading) 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. It must therefore continue to toggle for several cycles after the end of an access, to ensure that the debug port returns to the idle state.

The SWJ-DP contains an asynchronous interface to the DAPCLK domain, which covers the rest of the SWJ-DP and the CPU2 access port.

The DAPCLK is a gated version of the system HCLK3.

The DAPCLK domain is enabled by the debugger using the CDBGPWRUPREQ bit in the DP_CTRLSTATR register. 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 the DP_CTRLSTATR register. DAPCLK is disabled at power up, after OBL, and after a wake-up from Standby. DAPCLK must be disabled when the debugger is disconnected to avoid wasting energy.

The debug components included in the processors (such as ITM, DWG, FPB) are clocked with the corresponding core clock.

38.3.5 DBG power domains

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

38.3.6 DBG low-power modes

The STM32WL5x 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 the core is not clocked, all debug components are inaccessible to the debugger. To avoid this, power saving mode emulation has been implemented. If 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.

Emulation mode is programmed in the DBGMCU. For more information refer to Section 38.12: Microcontroller debug unit (DBGMCU) .

38.3.7 Serial-wire and JTAG debug port

The Serial-wire and JTAG debug port (SWJ-DP) is a CoreSight component that implements an external access port for connecting debugging equipment.

The two following types of interface can be configured:

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

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

38.3.8 JTAG debug port

The JTAG debug port (JTAG-DP) implements a TAP state machine (TAPSM) shown in Figure 385 , 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 385. JTAG TAP state machine

Figure 385. JTAG TAP state machine diagram showing the state transitions between Test-Logic-Reset, Run-Test/Idle, Select-DR-Scan, Select-IR-Scan, Capture-DR, Shift-DR, Exit1-DR, Pause-DR, Exit2-DR, Update-DR, Capture-IR, Shift-IR, Exit1-IR, Pause-IR, Exit2-IR, and Update-IR states based on JTMS and JTDI signals.
stateDiagram-v2
    [*] --> Test-Logic-Reset: JTMS=1
    Test-Logic-Reset --> Run-Test/Idle: JTMS=0
    Run-Test/Idle --> Select-DR-Scan: JTMS=1
    Run-Test/Idle --> Select-IR-Scan: JTMS=1
    Select-DR-Scan --> Capture-DR: JTMS=0
    Select-IR-Scan --> Capture-IR: JTMS=0
    Capture-DR --> Shift-DR: JTMS=0
    Capture-IR --> Shift-IR: JTMS=0
    Shift-DR --> Shift-DR: JTMS=0
    Shift-DR --> Exit1-DR: JTMS=1
    Shift-IR --> Shift-IR: JTMS=0
    Shift-IR --> Exit1-IR: JTMS=1
    Exit1-DR --> Pause-DR: JTMS=0
    Exit1-IR --> Pause-IR: JTMS=0
    Pause-DR --> Pause-DR: JTMS=0
    Pause-DR --> Exit2-DR: JTMS=1
    Pause-IR --> Pause-IR: JTMS=0
    Pause-IR --> Exit2-IR: JTMS=1
    Exit2-DR --> Update-DR: JTMS=1
    Exit2-IR --> Update-IR: JTMS=1
    Update-DR --> Run-Test/Idle: JTMS=0
    Update-IR --> Run-Test/Idle: JTMS=0
  
Figure 385. JTAG TAP state machine diagram showing the state transitions between Test-Logic-Reset, Run-Test/Idle, Select-DR-Scan, Select-IR-Scan, Capture-DR, Shift-DR, Exit1-DR, Pause-DR, Exit2-DR, Update-DR, Capture-IR, Shift-IR, Exit1-IR, Pause-IR, Exit2-IR, and Update-IR states based on JTMS and JTDI signals.

MSV60366V1

The operation of the JTAG-DP is as follows:

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

Table 268. JTAG-DP data registers

IR instructionData registerScan chain lengthDescription
0000 to 0111(BYPASS)1Not implemented: BYPASS selected
1000ABORT35ABORT register
– Bits 34:1 = Reserved
– Bit 0 = APABORT: write 1 to generate an AP abort.
1001(BYPASS)1Reserved: BYPASS selected
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
OTHER = 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
OTHER = reserved
1100(BYPASS)1Reserved: BYPASS selected
1101(BYPASS)1Reserved: BYPASS selected

Table 268. JTAG-DP data registers (continued)

IR instructionData registerScan chain lengthDescription
1110IDCODE32ID code
0x6BA0 0477: Arm® JTAG debug port ID code
1111BYPASS1Bypass
A single JTClock cycle delay is inserted between JTDI and JTDO.

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

38.3.9 Serial-wire debug port

The Serial-wire debug (SWD) protocol uses the two following pins:

Serial data is transferred LSB first, synchronously with the clock.

Each transfer comprises the three phases listed below:

  1. 1. a packet request (8 bits) transmitted by the host (see Table 269 )
  2. 2. an acknowledge response (3 bits) transmitted by the target (see Table 270 )
  3. 3. data transfer (33 bits) transmitted by the host (in case of a write) or by the target (in case of a read) (see Table 271 )

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

Bit fieldNameDescription
0StartMust be 1.
1APnDP– 0: DP register access - see Table 268 for a list of DP registers
– 1: AP register access - see Section 38.5: Access ports
2RnW– 0: Write request
– 1: Read request
4:3A(3:2)Address field of the DP or AP registers
5ParitySingle bit parity of preceding bits
6Stop0
7ParkNot driven by host, must be read as 1 by the target.

Table 270. ACK response

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

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

38.4 Debug port (DP) registers

Both SW-DP and JTAG-DP access the DP registers listed in Table 273: DP register map and reset values .

The debugger accesses the DP registers as follows:

Table 272. Debug port registers

AddressA(3:2) valueR/WDescription
0x000RDP_DIPDR register (see Section 38.4.1 )
Contains the IDCODE for the debug port.
WDP_ABORTR register (1) (see Section 38.4.2 )
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 = 0, DP_CTRLSTATR register (see Section 38.4.3 )
Controls the DP and provides status information.
If DP_SELECTR.DPBANKSEL = 1, DP_DLCR register (2) (see Section 38.4.4 )
Controls the operating mode of the SWD data link.
If DP_SELECTR.DPBANKSEL = 2, DP_TARGETIDR register (see Section 38.4.5 )
Provides target identification information.
If DP_SELECTR.DPBANKSEL = 3, DP_DLPIDR register (2) (see Section 38.4.6 )
Provides the SWD protocol version.
0x810RDP_RESENR register (2) (see Section 38.4.7 )
Returns the value returned by the last AP read or DP_RDBUFR read. Used in the event of a corrupted read transfer.
WDP_SELECTR register (see Section 38.4.8 )
Selects the access port, access port register bank, and DP register at address 0x4.
0xC11RDP_BUFR register (see Section 38.4.9 )
– Via JTAG-DP - Used to allow the debugger to get the final result after a sequence of operations (without requesting new JTAG-DP operation).
– Via SW-DP - Contains the result of the preceding AP read access, allowing a new AP access to be avoided.
WDP_TARGETSELR register (2) (see Section 38.4.10 )
On a write to DP_TARGETSELR immediately following a line reset sequence, the target is selected if both the following conditions are met:
– Bits [31:28] match bits [31:28] in the DP_DLPIDR register.
– Bits [27:0] match bits [27:0] in the DP_TARGETIDR register.
Writing any other value de-selects the target. Debug tools must write 0xFFFFFFFF to de-select all targets. This is an invalid TARGETID value. All other invalid TARGETID values are reserved.

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

2. Only accessible via SW-DP. Register is “reserved” via JTAG-DP.

38.4.1 DP identification register (DP_PIDR)

Address offset: 0x00

Reset value: 0x5BA0 2477

Read only

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

Bits 31:28 REVISION[3:0] : revision code

0x5

Bits 27:20 PARTNO[7:0] : part number for the debug port

0xBA

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

Bit 16 MIN : minimal debug port (MINDP) implementation

0x0: MINDP not implemented (transaction counter and pushed operations are supported)

Bits 15:12 VERSION[3:0] : DP architecture version

0x2: DPv2

Bits 11:1 DESIGNER[10:0] : JEDEC designer identity code

0x23B: Arm® JEDEC code

Bit 0 Reserved, must be kept at reset value.

38.4.2 DP abort register (DP_ABORTR)

Address offset: 0x00

Reset value: 0x0000 0000

Write only

31302928272625242322212019181716
Res.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.ORUN
ERR
CLR
WD
ERR
CLR
STK
ERR
CLR
STK
CMP
CLR
DAP
ABORT
wwwww

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

Bit 4 ORUNERRCLR : overrun error clear

0: No effect

1: Clears DP_CTRLSTATR.STICKYORUN bit.

Bit 3 WDERRCLR : write data error clear

0: No effect

1: Clears DP_CTRLSTATR.WDATAERR bit.

Bit 2 STKERRCLR : sticky error clear

0: No effect

1: Clears DP_CTRLSTATR.STICKYERR bit.

Bit 1 STKMPCLR : sticky compare clear

0: No effect

1: Clears DP_CTRLSTATR.STICKYCMP bit

Bit 0 DAPABORT : data AP abort

Aborts current AP transaction if an excessive number of WAIT responses are returned, indicating that the transaction is stalled.

0: No effect

1: Aborts the transaction.

38.4.3 DP control and status register (DP_CTRLSTATR)

Address offset: 0x04

and DP_SELECTR.DPBANKSEL = 0

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.CDBG
PWRU
PACK
CDBG
PWRU
PREQ
Res.Res.Res.Res.TRNCNT[11:4]
rrrrrrrrrr
1514131211109876543210
TRNCNT[3:0]MASKLANE[3:0]WDATA
ERR
READ
OK
STICK
YERR
STICK
YCMP
TRNMODE[1:0]STICK
YORU
N
ORUN
DETEC
T
rrrrrrrrrrrc_w1rc_w1rrrc_w1r

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

Bit 29 CDBGPWRUPACK : see description in Section 38.3.7

0 = DAPCLK gated

1 = DAPCLK enabled

Bit 28 CDBGPWRUPREQ : control of DAPCLK enable request signal

0 = Requests DAPCLK gating

1 = Requests DAPCLK enabled

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

Bits 23:12 TRNCNT[11:0] : transaction counter

To program a sequence of transactions to incremental addresses via an AP, TRNCNT is loaded with the number of transactions to perform. It is decremented at the successful completion of each transaction.

Bits 11:8 MASKLANE[3:0] : masked byte lanes

Indicates the bytes to be masked in pushed-compare and pushed-verify operations (DP_CTRLSTATR.TRNMODE = 1 or 2). In the pushed operations, the word supplied in an AP write transaction is compared with the current value at the target AP address.

1XXX = includes byte lane 3 in comparisons.

X1XX = includes byte lane 2 in comparisons.

XX1X = includes byte lane 1 in comparisons.

XXX1 = includes byte lane 0 in comparisons.

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

There is a parity or framing error on the data phase of a write, or a write that has been accepted by the DP is then discarded without being submitted to the AP.

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

0: No error

1: An error occurred.

Reserved in JTAG-DP.

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

Indicates the response to the last AP read access.

0: Read not OK

1: Read OK

Reserved in JTAG-DP.

Bit 5 STICKYERR : transaction error (read only in SW-DP, R/W in JTAG-DP)

Indicates that an error occurred in an AP transaction.

0: No error

1: An error occurred.

In SW-DP, STICKYERR bit is read only, reset by writing 1 to the DP_ABORTR.STKERRCLR bit.

In JTAG-DP, STICKYERR bit is read, cleared by writing a 1 to it.

Bit 4 STICKYCMP : match comparison (read only in SW-DP, R/W in JTAG-DP)

Indicates that a match occurred in a pushed operation.

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

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

In SW-DP, STICKYCMP bit is read only, reset by writing 1 to the DP_ABORTR.STKCMPCLR bit.

In JTAG-DP, STICKYCMP bit is read, cleared by writing a 1 to it.

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

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

0x0: Normal operation

0x1: Pushed-verify operation

0x2: Pushed-compare operation

0x3: reserved

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

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

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

0: No overrun

1: An overrun occurred.

In SW-DP, STICKYORUN bit is read only, reset by writing 1 to the DP_ABORTR.ORUNERRCLR bit.

In JTAG-DP, STICKYORUN bit is read, cleared by writing a 1 to it.

Bit 0 ORUNDETECT : overrun detection mode enable

0: Overrun detection disabled

1: Overrun detection enabled

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

Address offset: 0x04

and DP_SELECTR.DPBANKSEL = 1

Reset value: 0x0000 0040

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

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

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

0x0: 1 data bit period

0x1: 2 data bit periods

0x2: 3 data bit periods

0x3: 4 data bit periods

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

38.4.5 DP target identification register (DP_TARGETIDR)

Address offset: 0x04

and DP_SELECTR.DPBANKSEL = 2

Reset value: 0x0497 0041

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

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

0x0: revision 1

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

0x4970: STM32WL5x

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

0x020: STMicroelectronics

Bit 0 Reserved, must be kept at reset value.

Address offset: 0x04

and DP_SELECTR.DPBANKSEL = 3

Reset value: 0x0000 0001

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

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

Defines the instance number for this device in a multi-drop system.

0x0: Instance 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

38.4.7 DP resend register (DP_RESENR)

Address offset: 0x08

Reset value: 0x0000 0000

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

Bits 31:0 RESEND[31:0] : Returns the value that was returned by the last AP read or DP_RDBUFR read.

Used in the event of a corrupted read transfer.

38.4.8 DP access port select register (DP_SELECTR)

Address offset: 0x08

Reset value: 0xXXXX XXXX

31302928272625242322212019181716
APSEL[3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
wwww
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.APBANKSEL[3:0]DPBANKSEL[3:0]
wwwwwwww

Bits 31:28 APSEL[3:0] : access port selection

Selects the access port for the next transaction.

0x0: AP0 - CPU1 (Cortex-M4) debug access port (AHB-AP)

0x1: AP1 - CPU2 (Cortex-M0+) debug access port (AHB-AP)

0x2 to 0xF: reserved

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

Bits 7:4 APBANKSEL[3:0] : AP register bank selection

Selects the 4-word register bank on the active AP for the next transaction.

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

Selects the register at address 0x4 of the debug port.

0x0: DP_CTRLSTATR

0x1: DP_DLCR

0x2: DP_TARGETIDR

0x3: DP_DLPIDR

0x4 to 0xF: reserved

38.4.9 DP read buffer register (DP_BUFFR)

Address offset: 0x0C

Reset value: 0x0000 0000

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

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

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

38.4.10 DP target identification register (DP_TARGETSELR)

Address offset: 0x0C

Reset value: 0xXXXX XXXX

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

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

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

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

Defines the part number for the target device. These bits must be written with the same value used for DP_TARGETIDR.TPARTNO to select this device.

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

Defines the JEDEC code for the target device. These bits must be written with the same value used for DP_TARGETIDR.TDESIGNER to select this device.

Bit 0 Reserved, must be kept at reset value.

38.4.11 DP register map and reset values

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

The debug port address is 2-bit wide, defined in the JTAG-DP register DPACC or SW-DP packet request A[3:2] field.

Table 273. DP register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x00DP_DPIDRREVISION[3:0]PARTNO[7:0]Res.Res.Res.MINVERSION[3:0]DESIGNER[10:0]Res.
Reset value0101101110100001001000111011
0x00DP_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.ORUNERRCLRWDERRCLRSTKERRCLRSTKCMPCLRDAPABORT
Reset value00000
0x04 (1)DP_CTRLSTATRRes.Res.CDBGPWRUPACKCDBGPWRUPREQRes.Res.Res.Res.TRNCNT[11:0]MASKLANE[3:0]WDATAERRREADOKSTICKYERRSTICKYCMPTRNMODE[1:0]STICKYORUNORUNDETECT
Reset value00000000000000000000000000
0x04 (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]Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00
0x04 (3)DP_TARGETIDRTREVISION[3:0]TPARTNO[15:0]TDESIGNER[10:0]Res.
Reset value00000100100101110000000000100000
0x04 (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
0x08DP_RESENDRRESEND[31:0]
Reset value00000000000000000000000000000000

Table 273. DP register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x08DP_SELECTRAPSEL[3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.APBANKSEL[3:0]DPBANKSEL[3:0]
Reset valuexxxxxxxxxxxx
0x0CDP_BUFFRRDBUFF[31:0]
Reset value00000000000000000000000000000000
0x0CDP_TARGETSELRTINSTANCE[3:0]TPARTNO[15:0]Res.
Reset valuexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  1. 1. DP_SELECTR.DPBANKSEL = 0.
  2. 2. DP_SELECTR.DPBANKSEL = 1.
  3. 3. DP_SELECTR.DPBANKSEL = 2.
  4. 4. DP_SELECTR.DPBANKSEL = 3.

38.5 Access ports

As shown in Figure 386 , there are two access ports (AP) attached to the DP:

The access ports are of MEM-AP type, that is to say the debug and trace component registers are mapped in the address space of the associated debug bus.

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 275: AP register map and reset values .

Figure 386. Debug and access port connections

Diagram showing the connections between JTAG/SWD, SWJ-DP, DAPBUS, AP0 (AHB-AP), CPU1 Cortex-M4, AP1 (AHB-AP), and CPU2 Cortex-M0+.
graph LR
    JTAG_SWD[JTAG/SWD] <--> SWJ_DP[SWJ-DP]
    SWJ_DP <--> DAPBUS[DAPBUS]
    DAPBUS --> AP0[AP0
(AHB-AP)
] DAPBUS --> AP1[AP1
(AHB-AP)
] AP0 <--> CPU1[CPU1 Cortex-M4] AP1 <--> CPU2[CPU2 Cortex-M0+]

The diagram illustrates the hardware connections for debug and access. On the left, JTAG/SWD is connected to an SWJ-DP component. The SWJ-DP is connected to a DAPBUS. The DAPBUS branches to two access ports: AP0 (AHB-AP) and AP1 (AHB-AP). AP0 is connected to CPU1 Cortex-M4, and AP1 is connected to CPU2 Cortex-M0+.

Diagram showing the connections between JTAG/SWD, SWJ-DP, DAPBUS, AP0 (AHB-AP), CPU1 Cortex-M4, AP1 (AHB-AP), and CPU2 Cortex-M0+.

The address of the AP registers is composed as follows:

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

Table 274. MEM-AP registers

AddressAPBANKSELA(3:2)NameDescription
0x000x00AP_CSWRControl/status word register (see Section 38.5.1 )
0x040x01AP_TARTransfer address register (see Section 38.5.2 )
Target address for the bus transaction
0x08---Reserved
0x0C0x03AP_DRWRData read/write register (see Section 38.5.3 )
Access to this register triggers a corresponding transaction on the debug bus to the address in AP_TAR[31:0].
0x100x10AP_BD0RBanked data 0 register (see Section 38.5.4 )
Access to this register triggers a corresponding transaction on the debug bus to the address in Address [31:4] = AP_TAR[31:4], address [3:0] = 0x0.
0x140x11AP_BD1RBanked data 1 register (see Section 38.5.4 )
Access to this register triggers a corresponding transaction on the debug bus to the address in Address [31:4] = AP_TAR[31:4], address [3:0] = 0x4.
0x180x12AP_BD2RBanked data 2 register (see Section 38.5.4 )
Access to this register triggers a corresponding transaction on the debug bus to the address in Address [31:4] = AP_TAR[31:4], address [3:0] = 0x8.
0x1C0x13AP_BD3RBanked data 3 register (see Section 38.5.4 )
Access to this register triggers a corresponding transaction on the debug bus to the address in Address [31:4] = AP_TAR[31:4], address [3:0] = 0xC.
0x20---Reserved
0x24 to 0xEC---Reserved
0xF0---Reserved
0xF4---Reserved
0xF80xF2AP_BASERDebug base address register (RO) (see Section 38.5.5 )
Base address of the ROM table
0xFC0xF3AP_IDRIdentification register (RO) (see Section 38.5.6 )

The debugger can access the AP registers as follows:

  1. 1. Program in the DP_SELECTR register, the APSEL(3:0) field to choose one of the APs and the APBANKSEL[3:0] field to select the register bank to be accessed (see Section 38.4.8 ).
  2. 2. Program the A(3:2) field in the APACC register, if using JTAG, with the register address within the bank. Program the RnW bit to select a read or write. In the case of a write, program the DATA field with the write data. If using SWD, the A(3:2) and RnW fields are part of the packet request word sent to the SW-DP with the APnDP bit set (see Table 269: Packet request ). The write data is sent in the data phase.

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

  1. 1. Program the transaction target address in the AP_TAR register.
  2. 2. Program the AP_CSWR register, if necessary, with the transfer parameters (AddrInc for example).
  3. 3. Write to or read from the AP_DRWR register to initiate a bus transaction at the address held in the AP_TAR register. Alternatively, a read or write to the AP_BDxR register triggers an access to address \( AP\_TAR[31:4] + x \) (allowing up to four consecutive addresses to be accessed without changing the address in the AP_TAR register).

Figure 387 shows how the MEM-AP is used to connect the debug port to the debug components (in this example a processor and a ROM table).

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

Figure 387. Debugger connection to debug components

Diagram showing the connection between a debugger and various debug components including DPACC, APACC, Memory access port (MEM-AP), and Debug register files. The diagram illustrates the flow of data and control signals between these components.

The diagram illustrates the internal architecture of a debug system, showing the connections between the Debug Port (DP), Access Port (AP), Memory Access Port (MEM-AP), and various register banks.

(1) This is only a partial view of the DP registers (refer to the DP registers descriptions for more details).

(2) Register field widths are not to scale. For example, RnW is a single bit.

MSV60375V1

Diagram showing the connection between a debugger and various debug components including DPACC, APACC, Memory access port (MEM-AP), and Debug register files. The diagram illustrates the flow of data and control signals between these components.

38.5.1 AP control/status word register (AP_CSWR)

Address offset: 0x00

Reset value: 0x2300 0040

31302928272625242322212019181716
Res.SPROTRes.PROT[4:0]SPISTATUSRes.Res.Res.Res.Res.Res.Res.
rrrrrrr

1514131211109876543210
Res.Res.Res.Res.MODE[3:0]TRINPROGDEVICEENADDRINC[1:0]Res.SIZE[2:0]
rrrrrrrrrrr

Bit 31 Reserved, must be kept at reset value.

Bit 30 SPROT : secure transfer request

In the AHB-APs, this field sets the protection attribute HPROT[6] of the bus transfer.

0: If SPIDEN is high, secure transfer. If SPIDEN is low, non-secure transfer

1: Non-secure transfer

Bit 29 Reserved, must be kept at reset value.

Bits 28:24 PROT[4:0] : bus transfer protection

In the AHB-APs, this field sets the protection attributes HPROT[4:0] of the bus transfer.

XXXX0: Instruction fetch

XXXX1: Data access

XXX0X: User mode

XXX1X: Privileged mode

XX0XX: Non-bufferable

XX1XX: Bufferable

X0XXX: Non-cacheable

X1XXX: Cacheable

0XXXX: Non-exclusive

1XXXX: Exclusive

Bit 23 SPISTATUS : status of SPIDEN option bit (read only)

This signal determines whether the debugger can access secure memory.

0: Secure AHB transfers blocked

1: Secure AHB transfers allowed

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

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

Defines if memory barrier operation is supported.

0x0: Not supported

Bit 7 TRINPROG : transfer in progress (read only)

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

0x0: No transfer in progress

0x1: Bus transfer in progress

Bit 6 DEVICEEN : device enabled (read only)

Defines whether the AP can be accessed.

0x1: AP access enabled

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

Defines whether AP_TAR address is automatically incremented after a transaction.

0x0: No auto-increment

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

0x2: Packed transfers enabled

0x3: reserved

Bit 3 Reserved, must be kept at reset value.

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

0x0: Byte (8-bit)

0x1: Halfword (16-bit)

0x2: Word (32-bit)

0x3-0x7: reserved

38.5.2 AP transfer address register (AP_TAR)

Address offset: 0x04

Reset value: 0x0000 0000

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

Bits 31:0 TA[31:0] : address of current transfer

38.5.3 AP data read/write register (AP_DRWR)

Address offset: 0x0C

Reset value: 0x0000 0000

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

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

38.5.4 AP banked data registers x (AP_BDxR)

Address offset: \( 0x10 + 0x04 * x \) , ( \( x=0 \) to \( 3 \) )

Reset value: 0x0000 0000

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

Bits 31:0 TBD[31:0] : banked data of current transfer to address AP_TAR.TA
\( TA + AP\_BDnR\ address\ [3:2] + 0b00 \)
Auto address incrementing is not performed on AP_BD[3:0]R.
Banked transfers are only supported for word transfers.

38.5.5 AP base address register (AP_BASER)

Address offset: 0xF8

Reset value: 0xE00F F003 (AP0)

Reset value: 0xF000 0003 (AP1)

31302928272625242322212019181716
BASEADDR[19:4]
rrrrrrrrrrrrrrrr
1514131211109876543210
BASEADDR[3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FORM
AT
ENTRY
PRESENT
rrrrrr

Bits 31:12 BASEADDR[19:0] : base address (bits 31 to 12) of ROM table for the AP
The 12 LSBs are zero since the ROM table must be aligned on a 4-Kbyte boundary.
AP0 CPU1 (Cortex-M4) AHB-AP: 0xE00FF
AP1 CPU2 (Cortex-M0+) AHB-AP: 0xF0000

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

38.5.6 AP identification register (AP_IDR)

Address offset: 0xFC

Reset value: 0x2477 0011 (AP0)

Reset value: 0x6477 0001 (AP1)

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

Bits 31:28 REVISION[3:0] : revision
0x2: CPU1 Cortex-M4 r0p3
0x6: CPU2 Cortex-M0+ r0p7

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

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

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

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

Bits 7:0 IDENTITY[7:0] : AP type
0x11: CPU1 (Cortex-M4) AHB-AP (AP0)
0x01: CPU2 (Cortex-M0+) AHB-AP (AP1)
Others: reserved

38.5.7 AP register map and reset values

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

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

Table 275. AP register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x00AP_CSWRRes.SPROTRes.PROT[4:0]SPSTATUSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MODE[3:0]TRINPROGDEVICEENADDRINC[1:0]Res.SIZE[2:0]
Reset value000011000000100000
0x04AP_TARTA[31:0]
Reset value00000000000000000000000000000000

Table 275. AP register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x08ReservedReserved
0x0CAP_DRWRTD[31:0]
Reset value00000000000000000000000000000000
0x10AP_BD0RTBD[31:0]
Reset value00000000000000000000000000000000
0x14AP_BD1RTBD[31:0]
Reset value00000000000000000000000000000000
0x18AP_BD2RTBD[31:0]
Reset value00000000000000000000000000000000
0x1CAP_BD3RTBD[31:0]
Reset value00000000000000000000000000000000
0x20 to 0xF4ReservedReserved
0xF8AP_BASERBASEADDR[19:0]
Reset value (AP0)1110000000000111111110000000001
Reset value (AP1)1111000000000000000000000000001
0xFCAP_IDRREVISION[3:0]JEDEC BANK[3:0]JEDECCODE[6:0]MEMAPResResResResResResResResIDENTITY[7:0]
Reset value (AP0)001001000111011100010001
Reset value (AP1)011001000111011100000001

38.6 Data watchpoint and trace unit (DWT)

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

It also contains counters for:

A DWT comparator compares the value held in its DWT_COMPxR registers 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 Debug state.

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

38.6.1 DWT control register (DWT_CTRLR)

Address offset: 0x000

Reset value: 0x4000 0000

31302928272625242322212019181716
NUMCOMP[3:0]NOTRCPKTNOEXTTRIGNOCYCCNTNOPRFCNTRes.CYCEVTENAFOLDEVTENALSUEVTENASLEEPEVTENAEXCEVTENACPIEVTENAEXCTRCENA
rrrrrrrrrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.PCSAMPTENASYNCTAP[1:0]CYCTAPPOSTINIT[3:0]POSTPRESET[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

  1. Bit 23 Reserved, must be kept at reset value.
  2. Bit 22 CYCEVTENA : enable for POSTCNT underflow event counter packet generation
    0: Disabled
    1: Enabled
  3. Bit 21 FOLDEVVTENA : enable for folded instruction counter overflow event generation
    0: Disabled
    1: Enabled
  4. Bit 20 LSUEVTENA : enable for LSU counter overflow event generation
    0: Disabled
    1: Enabled
  5. Bit 19 SLEEPEVTENA : enable for sleep counter overflow event generation
    0: Disabled
    1: Enabled
  6. Bit 18 EXCEVTENA : enable for exception overhead counter overflow event generation
    0: Disabled
    1: Enabled
  7. Bit 17 CPIEVVTENA : enable for CPI counter overflow event generation
    0: Disabled
    1: Enabled
  8. Bit 16 EXCTRCENA : enable for exception trace generation
    0: Disabled
    1: Enabled
  9. Bits 15:13 Reserved, must be kept at reset value.
  10. Bit 12 PCSAMPLENA : enable for POSTCNT counter used as a timer for periodic PC sample packet generation
    0: Disabled
    1: Enabled
  11. Bits 11:10 SYNCTAP[1:0] : synchronization packet counter tap
    Selects the position of the synchronization packet counter tap on the CYCCNT counter. This determines the synchronization packet rate.
    0x0: Disabled. No synchronization packets
    0x1: Tap at CYCCNT[24]
    0x2: Tap at CYCCNT[26]
    0x3: Tap at CYCCNT[28]
  12. Bit 9 CYCTAP : Selects the position of the POSTCNT tap on the CYCCNT counter.
    0: Tap at CYCCNT[6]
    1: Tap at CYCCNT[10]
  13. Bits 8:5 POSTINIT[3:0] : initial value of the POSTCNT counter
    Writes to this field are ignored if POSTCNT counter is enabled (CYCEVTENA or PCSAMPLENA must be reset prior to writing POSTINIT).
  14. Bits 4:1 POSTPRESET[3:0] : Reloads value of the POSTCNT counter.
  15. Bit 0 CYCCNTENA : enable for CYCCNT counter
    0: Disabled
    1: Enabled

38.6.2 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

38.6.3 DWT CPI count register (DWT_CPICNTR)

Address offset: 0x008

Reset value: 0x0000 0000

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

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

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

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

38.6.4 DWT exception count register (DWT_EXCCNTR)

Address offset: 0x00C

Reset value: 0x0000 0000

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

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

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

Counts the number of cycles spent in exception processing.

38.6.5 DWT sleep count register (DWT_SLP CNTR)

Address offset: 0x010

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SLEEP CNT[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).

38.6.6 DWT LSU count register (DWT_LSUCNTR)

Address offset: 0x014

Reset value: 0x0000 0000

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

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

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

Counts additional cycles required to execute load and store instructions.

38.6.7 DWT fold count register (DWT_FOLDCNTR)

Address offset: 0x018

Reset value: 0x0000 0000

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

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

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

Increments on each instruction that takes 0 cycles.

38.6.8 DWT program counter sample register (DWT_PCSR)

Address offset: 0x01C

Reset value: 0x0000 0000

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

Bits 31:0 EIASAMPLE[31:0] : executed Instruction Address sample value
Samples the current value of the program counter.

38.6.9 DWT comparator register x (DWT_COMPxR)

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

Reset value: 0x0000 0000

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

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

38.6.10 DWT mask register x (DWT_MASKxR)

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

Reset value: 0x0000 0000

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

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

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

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

38.6.11 DWT function register x (DWT_FUNCTxR)

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

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.MATCHEDRes.Res.Res.Res.DATAVADDR1[3:0]
rrwrwrwrw
1514131211109876543210
DATAVADDR0[3:0]DATAVSIZE[1:0]LNK1ENADATAVMATCHCYCMATCHRes.EMITRANGERes.FUNCTION[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bit 24 MATCHED : comparator match (read only)

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

0: No match

1: Match occurred

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

Bits 19:16 DATAVADDR1[3:0] : When the DATAVMATCH and LNK1ENA bits are both 1, this field can hold the comparator number of a second comparator to use for linked address comparison.

Bits 15:12 DATAVADDR0[3:0] : When the DATAVMATCH and LNK1ENA bits are both 1, this field can hold the comparator number of a comparator to use for linked address comparison.

Bits 11:10 DATAVSIZE[1:0] : For data value matching, specifies the size of the required data comparison.

0x0: Byte

0x1: Half word

0x2: Word

0x3: reserved

Bit 9 LNK1ENA : enable for a second linked comparator

Indicates whether use of a second linked comparator is supported (read only).

0x1: Supported

Bit 8 DATAVMATCH : enable for cycle comparison.

0x0: Address comparison

0x1: Data value comparison

Bit 7 CYCMATCH : enable for cycle count comparison on comparator 0

This field is reserved for other comparators.

0x0: No cycle count comparison

0x1: Compares DWT_COMP0R with the cycle counter, DWT_CYCCNTR.

Bit 6 Reserved, must be kept at reset value.

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

0x0: Disabled

0x1: Enabled

Bit 4 Reserved, must be kept at reset value.

Bits 3:0 FUNCTION[3:0] : Selection of action to take on comparator match

The meaning of this bit field depends on the setting of the DATAVMATCH and CYCMATCH fields. See [5].

38.6.12 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.F4KCOUNT[3:0]JEP106CON[3:0]
rrrrrrrr

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

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

0x0: Register file occupies a single 4-Kbyte region.

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

0x4: Arm® JEDEC code

38.6.13 DWT CoreSight peripheral identity register 0 (DWT_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 0002

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

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

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

0x02: DWT part number

38.6.14 DWT CoreSight peripheral identity register 1 (DWT_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00B0

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

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

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

0xB: Arm® JEDEC code

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

0x0: DWT part number

38.6.15 DWT CoreSight peripheral identity register 2 (DWT_PIDR2)

Address offset: 0xFE8

Reset value: 0x0000 003B

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

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

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

0x3: r0p4

Bit 3 JEDEC : JEDEC assigned value

0x1: Designer ID specified by JEDEC

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

0x3: Arm® JEDEC code

38.6.16 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

38.6.17 DWT CoreSight component identity register 0 (DWT_CIDR0)

Address offset: 0xFF0

Reset value: 0x0000 000D

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

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

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

0x0D: Common ID value

38.6.18 DWT CoreSight peripheral identity register 1 (DWT_CIDR1)

Address offset: 0xFF4

Reset value: 0x0000 00E0

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

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

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

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

38.6.19 DWT CoreSight component identity register 2 (DWT_CIDR2)

Address offset: 0xFF8

Reset value: 0x0000 0005

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

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

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

38.6.20 DWT CoreSight component identity register 3 (DWT_CIDR3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

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

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

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

38.6.21 DWT register map

Table 276. DWT register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000DWT_CTRLRNUMCOMP
[3:0]
NOTRPCPTNOEXTTRIGNOCYCCNTNOPRFONTRes.CYCEVTENAFOLDEVENALSUEVTENASLEEPVTEENAEXCEVTENACPIEVTEENAEXCTRCEENARes.Res.Res.PCSAMPLENASYNCTAP[1:0]CYCTAPPOSINIT[3:0]POSTPRESET[3:0]CYCCNTENA
Reset value0100000000000000000000000000
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.Res.Res.CPICNT[7:0]
Reset value00000000
0x00CDWT_EXCCNTRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EXCCNT[7:0]
Reset value00000000
0x010DWT_SLPNCNTRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SLEEPNT[7:0]
Reset value00000000
0x014DWT_LSUCNTRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LSUCNT[7:0]
Reset value00000000
0x018DWT_FOLDCNTRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FOLDCNT[7:0]
Reset value00000000
0x01CDWT_PCSREIASAMPLE[31:0]
Reset value00000000000000000000000000000000
0x020DWT_COMP0RCOMP[31:0]
Reset value00000000000000000000000000000000
0x024DWT_MASK0RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MASK[4:0]
Reset value00000
0x028DWT_FUNCT0RRes.Res.Res.Res.Res.Res.Res.MATCHEDRes.Res.Res.Res.DATAADDR1
[3:0]
DATAADDR0
[3:0]
DATAVSIZE
[1:0]
LNK1ENADATAVMATCHCYCMATCHRes.EMITRANGERes.FUNCTION
[3:0]
Reset value00000000000000000000
0x02CReservedReserved.
0x030DWT_COMP1RCOMP[31:0]
Reset value00000000000000000000000000000000
0x034DWT_MASK1RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MASK[4:0]
Reset value00000
0x038DWT_FUNCT1RRes.Res.Res.Res.Res.Res.Res.MATCHEDRes.Res.Res.Res.DATAADDR1
[3:0]
DATAADDR0
[3:0]
DATAVSIZE
[1:0]
LNK1ENADATAVMATCHCYCMATCHRes.EMITRANGERes.FUNCTION
[3:0]
Reset value00000000000000000000
0x03CReservedReserved.

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x040DWT_COMP2RCOMP[31:0]
Reset value00000000000000000000000000000000
0x044DWT_MASK2RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MASK[4:0]
Reset value00000
0x048DWT_FUNCT2RRes.Res.Res.Res.Res.Res.Res.MATCHEDRes.Res.Res.Res.Res.DATAVADDR1[3:0]DATAVADDR0[3:0]DATAVSIZE[1:0]LNK1ENADATAVMATCHCYCMATCHRes.EMITRANGERes.FUNCTION[3:0]
Reset value00000000000000000000
0x04CReservedReserved
0x050DWT_COMP3RCOMP[31:0]
Reset value00000000000000000000000000000000
0x054DWT_MASK3RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MASK[4:0]
Reset value00000
0x058DWT_FUNCT3RRes.Res.Res.Res.Res.Res.Res.MATCHEDRes.Res.Res.Res.Res.DATAVADDR1[3:0]DATAVADDR0[3:0]DATAVSIZE[1:0]LNK1ENADATAVMATCHCYCMATCHRes.EMITRANGERes.FUNCTION[3:0]
Reset value00000000000000000000
0x05C to 0xFCCReservedReserved
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.F4KCOUNT[3:0]JEP106CON[3:0]
Reset value00000100
0xFD4 to 0xFDCReservedReserved
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 value00000010
0xFE4DWT_PIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.JEP106ID[3:0]PARTNUM[11:8]
Reset value10110000
0xFE8DWT_PIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVISION[3:0]JEDECJEP106ID[6:4]
Reset value00111011
0xFECDWT_PIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.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 value11110000
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

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xFFCDWT_CIDR3resresresresresresresresresresresresresresresresresresresresresresresresPREAMBLE[27:20]
Reset value10110001

Refer to Section 38.8: CPU1 ROM table and Section 38.13: CPU2 ROM tables for the register boundary addresses.

38.7 Cross trigger interface (CTI) and cross trigger matrix (CTM)

CTI and CTM taken together form the CoreSight embedded cross trigger (see Figure 388 ).

There are two CTI components, one dedicated to the CPU2 and one dedicated to the CPU1. The CTIs are connected to each other via the CTM. The CTI registers are accessible to the debugger via the corresponding access port and associated AHB.

Figure 388. Embedded cross trigger

Diagram of Embedded cross trigger showing Cortex-M0+ CPU, Cortex-M4 CPU, Cortex-M0+ CTI, and Cortex-M4 CTI connected via AHB, PPB, and CTM channels.

The diagram illustrates the embedded cross trigger architecture. It features two CPU blocks: Cortex®-M0+ CPU and Cortex®-M4 CPU. Each CPU is connected to its respective Cross Trigger Interface (CTI) block: Cortex®-M0+ CTI and Cortex®-M4 CTI. The Cortex®-M0+ CPU is connected to the Cortex®-M0+ CTI via an AHB bus. The Cortex®-M4 CPU is connected to the Cortex®-M4 CTI via a PPB bus. Both CTIs have trigger inputs (TRIGIN0, TRIGIN1, TRIGIN2, TRIGIN3, TRIGIN4, TRIGIN5, TRIGIN6, TRIGIN7) and trigger outputs (TRIGOUT0, TRIGOUT1, TRIGOUT2, TRIGOUT3, TRIGOUT4, TRIGOUT5, TRIGOUT6, TRIGOUT7). The CTIs are interconnected via a Cross Trigger Matrix (CTM) with four channels (CTM channels [3:0]). The CTM is shown as a vertical bar on the right side of the diagram, with arrows indicating the flow of trigger signals between the CTIs and the CTM. The diagram also shows the HALTED, EDBGREQ, and DBGRESTART signals from the CPUs to the CTIs.

Diagram of Embedded cross trigger showing Cortex-M0+ CPU, Cortex-M4 CPU, Cortex-M0+ CTI, and Cortex-M4 CTI connected via AHB, PPB, and CTM channels.

The CTIs enable events from various sources to trigger debug activity. For example, a breakpoint reached in one of the processor cores can stop the other processor.

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

The trigger input and output signals for each CTI are listed in Table 277 to Table 280 .

Table 277. CPU2 CTI inputs

No.Source signalSource componentComments
0HALTEDCPU2CPU2 halted - Indicates CPU2 is in debug mode.
1--Not used

Table 277. CPU2 CTI inputs (continued)

No.Source signalSource componentComments
2--Not used
3--Not used
4--Not used
5--Not used
6--Not used
7--Not used

Table 278. CPU2 CTI outputs

No.Output signalDestination componentComments
0EDBGRQCPU2CPU2 halt request - Puts CPU2 in debug mode.
1--Not used
2--Not used
3--Not used
4--Not used
5--Not used
6--Not used
7DBGRESTARTCPU2CPU2 restart request - CPU2 exits debug mode.

Table 279. CPU1 CTI inputs

No.Source signalSource componentComments
0HALTEDCPU1CPU1 halted - indicates CPU1 is in debug mode.
1--Not used
2--Not used
3--Not used
4--Not used
5--Not used
6--Not used
7--Not used

Table 280. CPU1 CTI outputs

No.Source signalSource componentComments
0EDBGRQCPU1CPU1 halt request - Puts CPU1 in debug mode.
1--Not used
2--Not used

Table 280. CPU1 CTI outputs (continued)

No.Source signalSource componentComments
3--Not used
4--Not used
5--Not used
6--Not used
7DBGRESTARTCPU1CPU1 restart request - CPU1 exits debug mode

There are four event channels in the CTM, thus enabling up to four, parallel, bidirectional connections between trigger inputs and outputs on different CTIs. To connect input number m on CTIx to output number n on CTIy, the input must be connected to an event channel p using the CTI_INENR m register of CTIx. The same channel p must be connected to the output using the CTI_OUTENR n register of CTIy.

Note: This applies even if the input and output belong to the same CTI.

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

Figure 389. Mapping trigger inputs to outputs

Diagram illustrating the mapping of trigger inputs to outputs through the CTM. It shows three main components: CTIx, CTM, and CTIy. CTIx contains an input 'm' connected to a switch labeled 'CTI_INENRm = p'. CTM contains four channels labeled 'Channel p', 'Channel q', 'Channel r', and 'Channel s'. CTIy contains an output 'n' connected to a switch labeled 'CTI_OUTENRn = p'. The diagram shows that input 'm' is connected to Channel 'p' in the CTM, and Channel 'p' is connected to output 'n' in CTIy. The switches are shown in the 'p' position. A small text 'MSV60370V1' is visible in the bottom right corner of the diagram area.
Diagram illustrating the mapping of trigger inputs to outputs through the CTM. It shows three main components: CTIx, CTM, and CTIy. CTIx contains an input 'm' connected to a switch labeled 'CTI_INENRm = p'. CTM contains four channels labeled 'Channel p', 'Channel q', 'Channel r', and 'Channel s'. CTIy contains an output 'n' connected to a switch labeled 'CTI_OUTENRn = p'. The diagram shows that input 'm' is connected to Channel 'p' in the CTM, and Channel 'p' is connected to output 'n' in CTIy. The switches are shown in the 'p' position. A small text 'MSV60370V1' is visible in the bottom right corner of the diagram area.

Example configurations

When either CPU core hits a breakpoint, the other core is stopped. Restart the two cores synchronously.

To stop both cores when one of them stops, the HALTED output of each core must be connected to the EDBGREQ input of the opposite core.

As shown in Table 277 and Table 279 , the HALTED signal from the CPU2 is connected to input 0 of the CPU2 CTI and the same signal from the CPU1 is connected to the same input on the CPU1 CTI. Hence the CTI_IENR0 register is programmed on each CTI to connect these inputs to a CTM channel (such as channel 0).

As shown in Table 278 and Table 280 , the EDBGREQ signals to the CPUs are connected to output 0 of the respective CTIs. The CTI_OUTENR0 register is then programmed on each CTI to connect these outputs to the same CTM channel.

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

As shown in Table 278 and Table 280 , the DBGRESTART signals to the CPUs are connected to output 1 of the respective CTIs. The CTI_OUTENR1 register is then programmed on each CTI to connect these outputs to an unused CTM channel (such as channel 1).

The above configuration is illustrated in Figure 390 .

Figure 390. Cross trigger configuration example

Figure 390. Cross trigger configuration example. The diagram shows two Cortex-M4 and Cortex-M0+ cores connected via CTI and CTM components. The top section shows a Cortex-M4 core in a HALTED state connected to a CTI M4. The CTI_INENR0 register is set to 0001, and the CTI_OUTENR0 register is set to 0001. The CTM Channel 0 is connected to the CTI M4 and the CTI M0+. The CTI M0+ is connected to the Cortex-M0+ core. The EDBGREQ signal is sent from the CTI M0+ to the Cortex-M0+ core. The bottom section shows a Cortex-M0+ core in a HALTED state connected to a CTI M0+. The CTI_INENR0 register is set to 0001, and the CTI_OUTENR0 register is set to 0001. The CTM Channel 0 is connected to the CTI M0+ and the CTI M4. The CTI M4 is connected to the Cortex-M4 core. The EDBGREQ signal is sent from the CTI M4 to the Cortex-M4 core. The middle section shows the same configuration but with the CTI_INENR1 register set to 0000 and the CTI_OUTENR1 register set to 0010. The CTM Channel 1 is connected to the CTI M4 and the CTI M0+. The CTI M0+ is connected to the Cortex-M0+ core. The DBGRESTART signal is sent from the CTI M0+ to the Cortex-M0+ core. The bottom section shows the same configuration but with the CTI_INENR1 register set to 0000 and the CTI_OUTENR1 register set to 0010. The CTM Channel 1 is connected to the CTI M0+ and the CTI M4. The CTI M4 is connected to the Cortex-M4 core. The DBGRESTART signal is sent from the CTI M4 to the Cortex-M4 core.
Figure 390. Cross trigger configuration example. The diagram shows two Cortex-M4 and Cortex-M0+ cores connected via CTI and CTM components. The top section shows a Cortex-M4 core in a HALTED state connected to a CTI M4. The CTI_INENR0 register is set to 0001, and the CTI_OUTENR0 register is set to 0001. The CTM Channel 0 is connected to the CTI M4 and the CTI M0+. The CTI M0+ is connected to the Cortex-M0+ core. The EDBGREQ signal is sent from the CTI M0+ to the Cortex-M0+ core. The bottom section shows a Cortex-M0+ core in a HALTED state connected to a CTI M0+. The CTI_INENR0 register is set to 0001, and the CTI_OUTENR0 register is set to 0001. The CTM Channel 0 is connected to the CTI M0+ and the CTI M4. The CTI M4 is connected to the Cortex-M4 core. The EDBGREQ signal is sent from the CTI M4 to the Cortex-M4 core. The middle section shows the same configuration but with the CTI_INENR1 register set to 0000 and the CTI_OUTENR1 register set to 0010. The CTM Channel 1 is connected to the CTI M4 and the CTI M0+. The CTI M0+ is connected to the Cortex-M0+ core. The DBGRESTART signal is sent from the CTI M0+ to the Cortex-M0+ core. The bottom section shows the same configuration but with the CTI_INENR1 register set to 0000 and the CTI_OUTENR1 register set to 0010. The CTM Channel 1 is connected to the CTI M0+ and the CTI M4. The CTI M4 is connected to the Cortex-M4 core. The DBGRESTART signal is sent from the CTI M4 to the Cortex-M4 core.

MSv60371V1

The steps detailed below force the processors to restart simultaneously:

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

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

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

38.7.1 CTI registers

The register file base addresses are 0xE0043000 for CPU1 CTI and 0xF0001000 for CPU2 CTI (not an issue as the CTIs are accessed via different access ports). The registers are the same for each CTI.

CTI control register (CTI_CONTROLR)

Address offset: 0x000

Reset value: 0x0000 0000

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

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

Bit 0 GLBEN : global enable

0: Cross-triggering disabled

1: Cross-triggering enabled

CTI trigger acknowledge register (CTI_INTACKR)

Address offset: 0x010

Reset value: 0x0000 0000

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

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:

XXX0: Channel 0 event inactive

XXX1: Channel 0 event active

XX0X: Channel 1 event inactive

XX1X: Channel 1 event active

X0XX: Channel 2 event inactive

X1XX: Channel 2 event active

0XXX: Channel 3 event inactive

1XXX: Channel 3 event active

Write:

0000: No effect

XXX1: Sets event on Channel 0.

XX1X: Sets event on Channel 1.

X1XX: Sets event on Channel 2.

1XXX: Sets event on Channel 3.

CTI application trigger clear register (CTI_APPCLEAR)

Address offset: 0x018

Reset value: 0x0000 0000

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

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

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

CTI application pulse register (CTI_APPPULSER)

Address offset: 0x01C

Reset value: 0x0000 0000

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

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

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

CTI trigger in x enable register (CTI_INENRx)

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] : cross trigger event enable/disable

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

XXX1: Trigger n generates events on Channel 0.

XX1X: Trigger n generates events on Channel 1.

X1XX: Trigger n generates events on Channel 2.

1XXX: Trigger n generates events on Channel 3.

CTI trigger out x enable register (CTI_OUTENRx)

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] : 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 any trigger output.

XXX1: Channel 0 events generate triggers on Trigger output n.

XX1X: Channel 1 events generate triggers on Trigger output n.

X1XX: Channel 2 events generate triggers on Trigger output n.

1XXX: Channel 3 events generate triggers on Trigger output n.

CTI trigger in 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 CTITRIGIN input. When a bit is set to 1, it indicates that the corresponding trigger input is active. When it is set to 0, the corresponding trigger input is inactive.

CTI trigger out status register (CTI_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 in 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.CHINSTATUS[3:0]
rrrr

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

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

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

CTI channel out status register (CTI_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 claim tag set register (CTI_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:

1111: Indicates there are four bits in claim tag.

CTI claim tag clear register (CTI_CLAIMCLR)

Address offset: 0xFA4

Reset value: 0x0000 0000

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

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

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

Write:

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

CTI lock access register (CTI_LAR)

Address offset: 0xFB0

Reset value: 0x0000 0000

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

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

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

0xC5AC CE55: Write access enabled

Other values: Write access disabled

CTI lock status register (CTI_LSR)

Address offset: 0xFB4

Reset value: 0x0000 0003

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LOCK TYPELOCK GRANTLOCK EXIST
rrr

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

Bit 2 LOCKTYPE : size of the CTI_LAR register

0: 32 bits

Bit 1 LOCKGRANT : current status of lock.

This bit is always read as zero by an external debugger.

0: Write access permitted

1: Write access blocked (only reads allowed)

Bit 0 LOCKEXIST : lock control mechanism availability

This bit is always read as zero by an external debugger.

0: No lock control mechanism

1: Lock control mechanism implemented

CTI authentication status register (CTI_AUTHSTATR)

Address offset: 0xFB8

Reset value: 0x0000 000A

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

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

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

0x0: Not implemented

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

0x0: Not implemented

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

0x2: Disabled

0x3: Enabled

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

0x2: Disabled

0x3: Enabled

CTI device configuration register (CTI_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

0x4: 4 channels

Bits 15:8 NUMTRIG[7:0] : number of ECT triggers

0x8: 8 trigger inputs and 8 trigger outputs

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

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

0x0: None

CTI device type identifier register (CTI_DEVTYPE)

Address offset: 0xFCC

Reset value: 0x0000 0014

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

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

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

0x1: Indicates that this component is a cross-triggering component.

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

0x4: Indicates that this component allows a debugger to control other components in a CoreSight™ SoC-400 system.

CTI CoreSight peripheral identity register 4 (CTI_PIDR4)

Address offset: 0xFD0

Reset value: 0x0000 0004

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

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

Bits 7:4 F4KCOUNT[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 0006

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

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

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

0x06: CTI part number

CTI CoreSight peripheral identity register 1 (CTI_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00B9

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

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

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

0xB: Arm® JEDEC code

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

0x9: CTI part number

CTI CoreSight peripheral identity register 2 (CTI_PIDR2)

Address offset: 0xFE8

Reset value: 0x0000 004B

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

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

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

0x4: r0p5

Bit 3 JEDEC : JEDEC assigned value

0x1: Designer identifier specified by JEDEC

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

0x3: Arm® JEDEC code

CTI CoreSight peripheral identity register 3 (CTI_PIDR3)

Address offset: 0xFEC

Reset value: 0x0000 0000

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

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

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

0x0: No metal fix

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

0x0: No customer modifications

CTI CoreSight component identity register 0 (CTI_CIDR0)

Address offset: 0xFF0

Reset value: 0x0000 000D

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

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

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

0x0D: Common ID value

CTI CoreSight peripheral identity register 1 (CTI_PIDR1)

Address offset: 0xFF4

Reset value: 0x0000 0090

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

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

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

0x9: CoreSight component

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

0x0: Common ID value

CTI CoreSight component identity register 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 ID bits [23:16]

0x05: Common ID value

CTI CoreSight component identity register 3 (CTI_CIDR3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

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

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

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

0xB1: Common ID value

CTI register map

Table 281. 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
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 value00000000
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.Res.Res.Res.APPSET[3:0]
Reset value0000

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x018CTI_APPCLEARRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.APPCLEAR [3:0]
Reset value0000
0x01CCTI_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.Res.APPULSE [3:0]
Reset value0000
0x020CTI_INENR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGINEN [3:0]
Reset value0000
0x024CTI_INENR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGINEN [3:0]
Reset value0000
0x028CTI_INENR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGINEN [3:0]
Reset value0000
0x02CCTI_INENR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGINEN [3:0]
Reset value0000
0x030CTI_INENR4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGINEN [3:0]
Reset value0000
0x034CTI_INENR5Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGINEN [3:0]
Reset value0000
0x038CTI_INENR6Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGINEN [3:0]
Reset value0000
0x03CCTI_INENR7Res.Res.Res.Res.Res.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 0x08CReservedReserved
0x0A0CTI_OUTENR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGOUTEN [3:0]
Reset value0000
0x0A4CTI_OUTENR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGOUTEN [3:0]
Reset value0000
0x0A8CTI_OUTENR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGOUTEN [3:0]
Reset value0000
0x0ACCTI_OUTENR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGOUTEN [3:0]
Reset value0000
0x0B0CTI_OUTENR4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGOUTEN [3:0]
Reset value0000
0x0B4CTI_OUTENR5Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGOUTEN [3:0]
Reset value0000

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x0B8CTI_OUTENR6Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGOUTEN
[3:0]
Reset value0000
0x0BCCTI_OUTENR7Res.Res.Res.Res.Res.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
0x12C
ReservedReserved
0x130CTI_TRIGISTSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRIGINSTATUS[7:0]
Reset value0000
0x134CTI_TRIGOSTSRRes.Res.Res.Res.Res.Res.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 value0000
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.Res.CHIN
STATUS[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.Res.CHOUT
STATUS[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.Res.GATEEN[3:0]
Reset value1111
0x144 to
0xF8C
ReservedReserved
0xFA0CTI_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.Res.CLAIMSET
[3:0]
Reset value1111
0xFA4CTI_CLAIMCLRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLAIMCLR
[3:0]
Reset value0000
0xFA8 to
0xFAC
ReservedReserved
0xFB0CTI_LARACCESS_W[31:0]
Reset value00000000000000000000000000000000
0xFB4CTI_LSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LOCKTYPE
LOCKGRANT
LOCKEXIST
Reset value0111
0xFB8CTI_AUTHSTATRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SNID[1:0]
SID[1:0]
NSNID[1:0]
NSID[1:0]
Reset value0001
0xFC0 to
0xFC4
ReservedReserved
0xFC8CTI_DEVIDRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NUMCH[3:0]NUMTRIG[7:0]Res.EXTMUXNUM
[4:0]
Reset value0100
0xFCCCTI_DEVTYPERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SUBTYPE
[3:0]
MAJORTYPE
[3:0]
Reset value0001

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
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.F4KCOUNT [3:0]JEP106CON [3:0]
Reset value00000100
0xFD4 to 0xFDCReservedReserved
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 value00000110
0xFE4CTI_PIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.JEP106ID [3:0]PARTNUM [11:8]
Reset value10111001
0xFE8CTI_PIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVISION [3:0]JEDECJEP106ID [6:4]
Reset value01001011
0xFECCTI_PIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVAND[3:0]CMOD[3:0]
Reset value00000000
0xFF0CTI_CIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[7:0]
Reset value00001101
0xFF4CTI_CIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLASS[3:0]PREAMBLE [11:8]
Reset value10010000
0xFF8CTI_CIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[19:12]
Reset value00000101
0xFFCCTI_CIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[27:20]
Reset value10110001

Refer to Section 38.8: CPU1 ROM table and Section 38.13: CPU2 ROM tables for the register boundary addresses.

38.8 CPU1 ROM table

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

There is one ROM table in the CPU1 sub-system. This table is pointed to by the AP_BASER register in the CPU1 AHB-AP. It contains the base address pointer for the system control space (SCS) registers, which allow the debugger to identify the CPU core, as well as the FPB, DWT, and CTI.

The CPU1 ROM table (see Table 282 ) occupies a 4-Kbyte, 32-bit wide chunk of address space, from 0xE00FF000 to 0xE00FFFFC.

Table 282. CPU1 ROM table

Address in ROM tableComponent nameComponent base addressComponent address offsetSize (bytes)Entry
0xE00FF000SCS0xE000E0000xFFF0F0004 K0xFFF0F003
0xE00FF004DWT0xE00010000xFFF020004 K0xFFF02003
0xE00FF008FPB0xE00020000xFFF030004 K0xFFF03003
0xE00FF00CITM0xE00000000xFFF010004 K0xFFF01003
0xE00FF010TPIU0xE00400000xFFF410004 K0xFFF41003
0xE00FF014CTI0xE00430000xFFF440004 K0xFFF44003
0xE00FF018Top of table---0x00000000
0xE00FF01C to
0xE00FFFC8
Reserved---0x00000000
0xE00FFFC to
0xE00FFFFC
ROM table registers---See Table 282

The topology for the CoreSight components in the CPU1 subsystem is shown in Figure 391 .

Figure 391. CPU1 CoreSight topology

CPU1 CoreSight topology diagram showing the connection between AHB-AP, CPU1 ROM table, System control space (SCS), Data watchpoint/trace (DWT), Breakpoint unit (FPB), Trace port interface (TPIU), Instrumentation trace (ITM), and Cross trigger (CTI).

The diagram illustrates the CoreSight topology for CPU1. It shows the following components and their connections:

MSv60373V2

CPU1 CoreSight topology diagram showing the connection between AHB-AP, CPU1 ROM table, System control space (SCS), Data watchpoint/trace (DWT), Breakpoint unit (FPB), Trace port interface (TPIU), Instrumentation trace (ITM), and Cross trigger (CTI).

38.8.1 CPU1 ROM memory type register (ROM_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.SYSTEMEM
r

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

Bit 0 SYSTEMEM : system memory

1: System memory present on this bus

38.8.2 CPU1 ROM CoreSight peripheral identity register 4 (ROM_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.F4KCOUNT[3:0]JEP106CON[3:0]
rrrrrrrr

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

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

0x0: Register file occupies a single 4-Kbyte region.

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

0x0: STMicroelectronics JEDEC continuation code

38.8.3 CPU1 ROM CoreSight peripheral identity register 0 (ROM_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 0097

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

0x97: STM32WL5x

38.8.4 CPU1 ROM CoreSight peripheral identity register 1 (ROM_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 0004

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

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

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

0x0: STMicroelectronics JEDEC code

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

0x4: STM32WL5x

38.8.5 CPU1 ROM CoreSight peripheral identity register 2 (ROM_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 ID specified by JEDEC

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

0x2: STMicroelectronics JEDEC code

38.8.6 CPU1 ROM CoreSight peripheral identity register 3 (ROM_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

38.8.7 CPU1 ROM CoreSight component identity register 0 (ROM_CIDR0)

Address offset: 0xFF0

Reset value: 0x0000 000D

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

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

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

0x0D: Common ID value

38.8.8 CPU1 ROM CoreSight peripheral identity register 1 (ROM_CIDR1)

Address offset: 0xFF4

Reset value: 0x0000 0010

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

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

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

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

38.8.9 CPU1 ROM CoreSight component identity register 2 (ROM_CIDR2)

Address offset: 0xFF8

Reset value: 0x0000 0005

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

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

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

38.8.10 CPU1 ROM CoreSight component identity register 3 (ROM_CIDR3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

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

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

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

0xB1: Common ID value

38.8.11 CPU1 ROM table register map

Table 283. CPU1 ROM table register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xFCCROM_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.SYSTEMEM
Reset value1
0xFD0ROM_PIDR4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.F4KCOUNT
[3:0]
JEP106CON
[3:0]
Reset value00000000
0xFD4-
0xFDC
ReservedReserved.
0xFE0ROM_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 value10010111
0xFE4ROM_PIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.JEP106ID
[3:0]
PARTNUM
[11:8]
Reset value00000010
0xFE8ROM_PIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVISION
[3:0]
JEDECJEP106ID
[6:4]
Reset value00000101
0xFECROM_PIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVAND[3:0]CMOD[3:0]
Reset value00000000
0xFF0ROM_CIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[7:0]
Reset value00000110
0xFF4ROM_CIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLASS[3:0]PREAMBLE
[11:8]
Reset value00001000
0xFF8ROM_CIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[19:12]
Reset value00000010

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xFFCROM_CIDR3RESPREAMBLE[27:20]
Reset value10110001

Refer to Section 38.8: CPU1 ROM table for the register boundary addresses.

38.9 CPU1 breakpoint unit (FPB)

The FPB allows the user to set hardware breakpoints. It contains six comparators that monitor the instruction fetch address and two literal address comparators.

If a match occurs, the address is remapped to an address in system memory, defined by the FPB_REMAPR register plus an offset corresponding to the matching comparator.

Alternatively, the instruction comparators can be configured to generate a breakpoint instruction.

38.9.1 FPB control register (FPB_CTRLR)

Address offset: 0x000

Reset value: 0x0000 0260

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

1514131211109876543210
Res.NUM_CODE 6NUM_CODE 5NUM_CODE 4NUM_LIT[3:0]NUM_CODE[3:0]Res.Res.KEYENABLE
rrrrrrrrrrrrwrw

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

Bits 11:8 NUM_LIT[3:0] : number of literal address comparators supported (read only)

0x2: Two literal comparators supported.

Bits 14, 13, 12, 7, 6, NUM_CODE[6:0] : number of instruction address comparators supported - least significant bits 5, 4 (read only)

0x6: 6 instruction comparators supported

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

Bit 1 KEY : write protect key

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

Bit 0 ENABLE : FPB enable

0: Disabled

1: Enabled

38.9.2 FPB remap register (FPB_REMAPR)

Address offset: 0x004

Reset value: 0x2000 0000

31302928272625242322212019181716
Res.Res.RMPSPTREMAP[23:11]
rrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
REMAP[10:0]Res.Res.Res.Res.Res.
rwrwrwrwrwrwrwrwrwrwrw

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

Bit 29 RMPSPT : Flash memory patch remap

Indicates whether flash memory patch remap is supported (read only).

1: Remapping supported.

Bits 28:5 REMAP[23:0] : remap target address

Bits [28:5] of the base address in SRAM to which the FPB remaps the address. The remap base address must be aligned to the number of words required to support the implemented comparators, that is to (NUM_CODE+NUM_LIT) words, with a minimum alignment of 8 words. Because remap is into the SRAM memory region, 0x20000000-0x3FFFFFFF, bits [31:29] of the remap address are 0b001.

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

38.9.3 FPB comparator register x (FPB_COMPxR)

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

Reset value: 0x0000 0000

31302928272625242322212019181716
REPLACE[1:0]Res.COMP[26:14]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
COMP[13:0]Res.ENABLE
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:30 REPLACE[1:0] : Defines the behavior when a match occurs between the COMP field and the instruction fetch address.

Bit 29 Reserved, must be kept at reset value.

Bits 28:2 COMP[26:0] : value to compare with address bits 28:2 of accesses to instruction code memory (0x00000000 to 0x1FFFFFFF)

If a match occurs, the action to be taken is defined by the REPLACE field.

Bit 1 Reserved, must be kept at reset value.

Bit 0 ENABLE : comparator enable

The comparator is only enabled if both this bit and the FPB ENABLE bit in the FPB_CTRLR register are set.

38.9.4 FPB CoreSight peripheral identity register 4 (FPB_PIDR4)

Address offset: 0xFD0

Reset value: 0x0000 0004

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

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

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

0x0: Register file occupies a single 4-Kbyte region.

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

0x4: Arm ® JEDEC code

38.9.5 FPB CoreSight peripheral identity register 0 (FPB_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 0003

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

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

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

0x03: FPB part number

38.9.6 FPB CoreSight peripheral identity register 1 (FPB_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00B0

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

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

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

0xB: Arm® JEDEC code

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

0x0: FPB part number

38.9.7 FPB CoreSight peripheral identity register 2 (FPB_PIDR2)

Address offset: 0xFE8

Reset value: 0x0000 002B

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

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

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

0x2: r0p3

Bit 3 JEDEC : JEDEC assigned value

0x1: Designer ID specified by JEDEC

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

0x3: Arm ® JEDEC code

38.9.8 FPB CoreSight peripheral identity register 3 (FPB_PIDR3)

Address offset: 0xFEC

Reset value: 0x0000 0000

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

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

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

0x0: No metal fix

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

0x0: No customer modifications

38.9.9 FPB CoreSight component identity register 0 (FPB_CIDR0)

Address offset: 0xFF0

Reset value: 0x0000 000D

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

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

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

0x0D: Common ID value

38.9.10 FPB CoreSight peripheral identity register 1 (FPB_CIDR1)

Address offset: 0xFF4

Reset value: 0x0000 00E0

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

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

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

0xE: Trace generator component

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

0x0: Common ID value

38.9.11 FPB CoreSight component identity register 2 (FPB_CIDR2)

Address offset: 0xFF8

Reset value: 0x0000 0005

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

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

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

0x05: Common ID value

38.9.12 FPB CoreSight component identity register 3 (FPB_CIDR3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

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

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

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

0xB1: Common ID value

38.9.13 CPU1 FPB register map

Table 284. CPU1 FPB register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000FPB_CTRLRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NUM_CODE[6:4]NUM_LIT[3:0]NUM_CODE[3:0]Res.Res.KEYENABLE
Reset value0000010011000

Table 284. CPU1 FPB register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x004FPB_REMAPRRes.Res.RM/SPREMAP[23:0]Res.Res.Res.Res.Res.
Reset value10000000000000000000000000
0x008 to 0x024FPB_COMP0-7RREPLACE[1:0]Res.COMP[26:0]Res.ENABLE
Reset value000000000000000000000000000000
0x028 to 0xFCCReservedReserved.
0xFD0FPB_PIDR4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.F4KCOUNT [3:0]JEP106CON [3:0]
Reset value00000
0xFD4 to 0xFDCReservedReserved.
0xFE0FPB_PIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PARTNUM[7:0]
Reset value00000
0xFE4FPB_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.Res.Res.JEP106ID [3:0]PARTNUM [11:8]
Reset value10110
0xFE8FPB_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.Res.Res.REVISION [3:0]JEDECJEP106ID [6:4]
Reset value00101
0xFECFPB_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.Res.Res.REVAND[3:0]CMOD[3:0]
Reset value00000
0xFF0FPB_CIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[7:0]
Reset value00001
0xFF4FPB_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.Res.Res.CLASS[3:0]PREAMBLE [11:8]
Reset value11100
0xFF8FPB_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.Res.Res.PREAMBLE[19:12]
Reset value00001
0xFFCFPB_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.Res.Res.PREAMBLE[27:20]
Reset value10110
Refer to Section 38.8: CPU1 ROM table for the register boundary addresses.

38.10 CPU1 instrumentation trace macrocell (ITM)

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

1. Software trace

Software can write directly to any of 32 x 32-bit ITM stimulus registers to generate packets. The permission level for each port can be programmed. When software writes to an enabled stimulus port, the ITM combines the identity of the port, the size of the write access and the data written, into a packet that it writes to a FIFO. The ITM outputs packets from the FIFO onto the trace bus. Reading a stimulus port register returns the status of the stimulus register (empty or pending) in bit 0.

2. Hardware trace

The DWT generates trace packets in response to a data trace event, a PC sample or a performance profiling counter wraparound. The ITM outputs these packets on the trace bus.

3. Local timestamping

The ITM contains a 21-bit counter clocked by the (pre-divided) processor clock. The counter value is output in a timestamp packet on the trace bus. The counter is reset to zero every time a timestamp packet is generated. The timestamps thus indicate the time elapsed since the previous timestamp packet.

38.10.1 ITM stimulus register x (ITM_STIMRx)

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

Reset value: 0xXXXX XXXX

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

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

When reading, bit 0 is a FIFOREADY indicator:

0: Stimulus port buffer is full (or port is disabled).

1: Stimulus port can accept new write data.

38.10.2 ITM trace enable register (ITM_TER)

Address offset: 0xE00

Reset value: 0x0000 0000

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

Bits 31:0 STIMENA[31:0] : enable for stimulus port

Each bit n (31:0) enables the stimulus port associated with the ITM_STIMRn register.

0: Port disabled

1: Port enabled

38.10.3 ITM trace privilege register (ITM_TPR)

Address offset: 0xE40

Reset value: 0x0000 0000

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

Bits 31:0 PRIVMASK[31:0] : Enables unprivileged access to ITM stimulus ports.

Each bit controls eight stimulus ports.

XXX0: Unprivileged access permitted on ports 0 to 7

XXX1: Only privileged access permitted on ports 0 to 7

XX0X: Unprivileged access permitted on ports 8 to 15

XX1X: Only privileged access permitted on ports 8 to 15

X0XX: Unprivileged access permitted on ports 16 to 23

X1XX: Only privileged access permitted on ports 16 to 23

0XXX: Unprivileged access permitted on ports 24 to 31

1XXX: Only privileged access permitted on ports 24 to 31

Note: PRIVMASK is a 32-bit value, the above listed values apply only on the lower 4 bits (PRIVMASK[3:0]), with PRIVMASK[31:4] = 0xXXXXXXXX.

38.10.4 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]
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.TSPRESCALE[1:0]Res.Res.Res.SWOENATXENASYNCENATSENAITMENA
rwrwrrwrwrwrw

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

Bit 23 BUSY : Indicates whether the ITM is currently processing events (read only).

0: Not busy

1: Busy

Bits 22:16 TRACEBUSID[6:0] : identifier for multi-source trace stream formatting

If multi-source trace is in use, the debugger must write a non-zero value to this field.

Note: Different IDs must be used for each trace source in the system.

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

Bits 9:8 TSPRESCALE[1:0] : local timestamp prescaler

Used with the trace packet reference clock. The possible values are:

0x0: No prescaling

0x1: Divides by 4.

0x2: Divides by 16.

0x3: Divides by 64.

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

Bit 4 SWOENA : enable for asynchronous clocking of the timestamp counter (read only)

0: Timestamp counter uses processor clock

Bit 3 TXENA : Enables forwarding of hardware event packets from the DWT unit to the trace port.

0: Disabled

1: Enabled

Bit 2 SYNCENA : enable for packet transmission synchronization

Note: The debugger setting this bit must also configure the DWT_CTRLR register SYNCTAP field in the DWT for the correct synchronization speed.

0: Disabled

1: Enabled

Bit 1 TSENA : enable for local timestamp generation

0: Disabled

1: Enabled

Bit 0 ITMENA : ITM enable

0: Disabled

1: Enabled

38.10.5 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.F4KCOUNT[3:0]JEP106CON[3:0]
rrrrrrrr

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

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

0x0: Register file occupies a single 4-Kbyte region.

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

0x4: Arm® JEDEC code

38.10.6 ITM CoreSight peripheral identity register 0 (ITM_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 0001

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

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

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

0x01: ITM part number

38.10.7 ITM CoreSight peripheral identity register 1 (ITM_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00B0

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

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

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

0xB: Arm ® JEDEC code

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

0x0: ITM part number

38.10.8 ITM CoreSight peripheral identity register 2 (ITM_PIDR2)

Address offset: 0xFE8

Reset value: 0x0000 003B

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

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

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

0x3: r0p4

Bit 3 JEDEC : JEDEC assigned value

0x1: Designer ID specified by JEDEC

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

0x3: Arm ® JEDEC code

38.10.9 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

38.10.10 ITM CoreSight component identity register 0 (ITM_CIDR0)

Address offset: 0xFF0

Reset value: 0x0000 000D

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

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

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

0x0D: Common ID value

38.10.11 ITM CoreSight peripheral identity register 1 (ITM_CIDR1)

Address offset: 0xFF4

Reset value: 0x0000 00E0

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

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

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

0xE: Trace generator component

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

0x0: Common ID value

38.10.12 ITM CoreSight component identity register 2 (ITM_CIDR2)

Address offset: 0xFF8

Reset value: 0x0000 0005

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

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

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

0x05: Common ID value

38.10.13 ITM CoreSight component identity register 3 (ITM_CIDR3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

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

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

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

0xB1: Common ID value

38.10.14 CPU1 ITM register map

Table 285. CPU1 ITM register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000 to 0x07CITM_STIM0-31RSTIMULUS[31:0]
Reset valuexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
0x080ITM_TERSTIMENA[31:0]
Reset value00000000000000000000000000000000
0x084 to 0xDCCReservedReserved.
0xE00ITM_TPRPRIVMASK[31:0]
Reset value00000000000000000000000000000000
0xE04 to 0xE4CReservedReserved.
0xE80ITM_TCRRes.Res.Res.Res.Res.Res.Res.Res.BUSYTRACEBUSID[6:0]Res.Res.Res.Res.Res.Res.TSPRESCALE[1:0]Res.Res.Res.SWOENATXENASYNCENATSENAITMENA
Reset value00000000000000
0xE84 to 0xFCCReservedReserved.
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.F4KCOUNT [3:0]JEP106CON [3:0]
Reset value00000100
0xFD4 to 0xFDCReservedReserved.
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 value00000001
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 value10110000

Table 285. CPU1 ITM register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xFE8ITM_PIDR2ResResResResResResResResResResResResResResResResResResResResResResResResREVISION [3:0]JEDDECJEP106ID [6:4]
Reset value00111011
0xFECITM_PIDR3ResResResResResResResResResResResResResResResResResResResResResResResResREVAND[3:0]CMOD[3:0]
Reset value00000000
0xFF0ITM_CIDR0ResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE[7:0]
Reset value00001101
0xFF4ITM_CIDR1ResResResResResResResResResResResResResResResResResResResResResResResCLASS[3:0]PREAMBLE [11:8]
Reset value11100000
0xFF8ITM_CIDR2ResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE[19:12]
Reset value00000101
0xFFCITM_CIDR3ResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE[27:20]
Reset value10110001

Refer to Section 38.8: CPU1 ROM table for the register boundary addresses.

38.11 CPU1 trace port interface unit (TPIU)

The TPIU formats the trace stream and outputs it on the external trace port signals. The TPIU has one ATB slave ports for incoming trace data from the ITM. The trace port is the serial-wire output, TRACESWO.

Figure 392 shows the TPIU architecture.

Figure 392. TPIU architecture

Block diagram of TPIU architecture showing ITM ATB input, ATB interface, Formatter, Trace output (serializer), and TRACESWO output, with an APB interface connected to the PPB.
    graph LR
        subgraph TPIU
            direction LR
            ATB[ATB interface] --> F[Formatter]
            F --> TO[Trace output serializer]
            PPB[APB interface] --> F
            PPB --> TO
        end
        ITM[ITM ATB] --> ATB
        TO --> SWO[TRACESWO]
    
Block diagram of TPIU architecture showing ITM ATB input, ATB interface, Formatter, Trace output (serializer), and TRACESWO output, with an APB interface connected to the PPB.

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

38.11.1 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] : supported 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

38.11.2 TPIU current port size register (TPIU_CSPSR)

Address offset: 0x004

Reset value: 0x0000 0001

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

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 behaviour may result. This register must be modified only when the formatter is stopped.

38.11.3 TPIU asynchronous clock prescaler register (TPIU_ACPR)

Address offset: 0x010

Reset value: 0x0000 0000

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

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

Bits 12:0 PRESCALER[12:0] : selects the baud rate for the asynchronous output, TRACESWO
The baud rate is given by the TRACECLKIN frequency divided by (PRESCALER + 1).

38.11.4 TPIU selected pin protocol register (TPIU_SPPR)

Address offset: 0x0F0

Reset value: 0x0000 0001

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

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

Bits 1:0 TXMODE[1:0] : selects the protocol used for trace output
0x0: reserved (parallel trace port mode not supported in this device)
0x1: Asynchronous SWO using Manchester encoding
0x2: Asynchronous SWO using NRZ encoding
0x3: reserved

38.11.5 TPIU formatter and flush status register (TPIU_FFSR)

Address offset: 0x300

Reset value: 0x0000 0008

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FTNON
STOP
TCPRE
SENT
FTSTO
PPED
FLINPR
OG
rrrr

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

Bit 3 FTNONSTOP : indicates whether formatter can be stopped or not
1: Formatter cannot be stopped.

Bit 2 TCPRESENT : indicates whether the optional TRACECTL output pin is available for use

0: TRACECTL pin is not present in this device.

Bit 1 FTSTOPPED : stop request signal received

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

0: Formatter not stopped

1: Formatter stopped

Bit 0 FLINPROG : flush in progress

This bit indicates whether a flush on the ATB slave port is in progress and 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

38.11.6 TPIU formatter and flush control register (TPIU_FFCR)

Address offset: 0x304

Reset value: 0x0000 0102

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.TRIGINRes.Res.Res.Res.Res.Res.ENFCO
NT
Res.
rrw

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.

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

Bit 1 ENFCONT : continuous formatting enable

Setting this bit to 0 in SWO mode bypasses the formatter and only ITM/DWT trace is output.

0: Continuous formatting disabled

1: Continuous formatting enabled

Bit 0 Reserved, must be kept at reset value.

38.11.7 TPIU formatter synchronization counter register (TPIU_FSCR)

Address offset: 0x308

Reset value: 0x0000 0040

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

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

Bits 12:0 CYCCOUNT[12:0] : 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 sync frames are inserted during normal operation. Under these circumstances, the count value is the maximum number of complete frames between full synchronization packets.

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

Write:

0000: No effect

xxx1: Sets bit 0.

xx1x: Sets bit 1.

x1xx: Sets bit 2.

1xxx: Sets bit 3.

Read:

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

38.11.9 TPIU claim tag clear register (TPIU_CLAIMCLR)

Address offset: 0xFA4

Reset value: 0x0000 0000

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

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

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

Write:

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.

38.11.10 TPIU device configuration register (TPIU_DEVIDR)

Address offset: 0xFC8

Reset value: 0x0000 0CA0

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.SWONRZSWOMANTCLKDATAFIFOSIZE[2:0]CLKRE
LAT
MAXNUM[4:0]
rrrrrrrrrrrr

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

Bit 11 SWONRZ : indicates whether serial-wire output, NRZ, is supported

1: Supported

Bit 10 SWOMAN : indicates whether serial-wire output, Manchester encoded format, is supported

1: Supported

Bit 9 TCLKDATA : indicates whether trace clock plus data is supported

0: Supported

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

0x2: FIFO size = 4 bytes

Bit 5 CLKRELAT : indicates relationship between ATB clock and TRACECLKIN

0: Synchronous

1: Asynchronous

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

0x0: one input port

38.11.11 TPIU device type identifier register (TPIU_DEVTYPE)

Address offset: 0xFCC

Reset value: 0x0000 0011

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

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

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

0x1: trace port component

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

0x1: trace sink component

38.11.12 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.F4KCOUNT[3:0]JEP106CON[3:0]
rrrrrrrr

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

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

0x0: Register file occupies a single 4-Kbyte region.

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

0x4: Arm® JEDEC code

38.11.13 TPIU CoreSight peripheral identity register 0 (TPIU_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 00A1

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

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

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

0x02: TPIU part number

38.11.14 TPIU CoreSight peripheral identity register 1 (TPIU_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00B9

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

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

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

0xB: Arm® JEDEC code

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

0x0: TPIU part number

38.11.15 TPIU CoreSight peripheral identity register 2 (TPIU_PIDR2)

Address offset: 0xFE8

Reset value: 0x0000 004B

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

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

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

0x4: r0p5

Bit 3 JEDEC : JEDEC assigned value

0x1: Designer ID specified by JEDEC

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

0x3: Arm ® JEDEC code

38.11.16 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

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

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

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

0x0D: Common ID value

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

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

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

0x9: CoreSight component

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

0x0: Common ID value

38.11.19 TPIU CoreSight component identity register 2 (TPIU_CIDR2)

Address offset: 0xFF8

Reset value: 0x0000 0005

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

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

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

0x05: Common ID value

38.11.20 TPIU CoreSight component identity register 3 (TPIU_CIDR3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

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

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

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

0xB1: Common ID value

38.11.21 CPU 1 TPIU register map

Table 286. TPIU register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000TPIU_SSPSRPORTSIZE[31:0]
Reset value00000000000000000000000000000111
0x004TPIU_CSPSRPORTSIZE[31:0]
Reset value00000000000000000000000000000001
0x008 to 0x00CReservedReserved.
0x010TPIU_ACPRResResResResResResResResResResResResResResResResResResResPRESCALER[12:0]
Reset value0000000000000

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x014 to 0x0ECReservedReserved.
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.Res.TXMODE[1:0]
Reset value0 1
0x0F4 to 0x2FCReservedReserved.
0x300TPIU_FFSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FTNONSTOPTCPPRESENTFTSTOPPEDFLINPROG
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.Res.TRIGINRes.Res.Res.Res.Res.Res.ENFCONT
Reset value01
0x308TPIU_FSCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CYCCOUNT[12:0]
Reset value000000100000
0x30C to 0xF8CReservedReserved.
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
0xFA8 to 0xFReservedReserved.
0xFC8TPIU_DEVIDRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SWONRZSWOMANTCLKDATARes.FIFOSIZE[2:0]Res.CLKRELATRes.Res.MAXNUM[4:0]
Reset value110010100000
0xFC8TPIU_DEVTYPERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SUBTYPE[3:0]Res.Res.Res.MAJORTYPE[3:0]
Reset value00010001
0xFCCReservedReserved.
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.Res.Res.Res.Res.F4KCOUNT[3:0]JEP106CON[3:0]
Reset value0000
0xFD4 to 0xFDCReservedReserved.
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.Res.Res.Res.Res.Res.PARTNUM[7:0]
Reset value1010
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.Res.Res.Res.Res.JEP106ID[3:0]PARTNUM[11:8]
Reset value1011

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xFE8TPIU_PIDR2ResResResResResResResResResResResResResResResResResResResResResResResResREVISION [3:0]JEDECJEP106ID [6:4]
Reset value01001011
0xFECTPIU_PIDR3ResResResResResResResResResResResResResResResResResResResResResResResResREVAND[3:0]CMOD[3:0]
Reset value00000000
0xFF0TPIU_CIDR0ResResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE[7:0]
Reset value00001101
0xFF4TPIU_CIDR1ResResResResResResResResResResResResResResResResResResResResResResResResCLASS[3:0]PREAMBLE [11:8]
Reset value10010000
0xFF8TPIU_CIDR2ResResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE[19:12]
Reset value00000101
0xFFCTPIU_CIDR3ResResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE[27:20]
Reset value10110001

Refer to Section 38.8: CPU1 ROM table for the register boundary addresses.

38.12 Microcontroller debug unit (DBGMCU)

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 debug software) to perform the following tasks:

DBGMCU registers are not reset by a system reset, only by a power on reset. They are accessible to the debugger via the CPU1 AHB access port at base address 0xE0042000.

Note: DBGMCU is not a standard CoreSight component, consequently it does not appear in the CPU1 ROM table.

38.12.1 DBGMCU identity code register (DBGMCU_IDCODER)

Address offset: 0x000

Reset value: 0xXXXX 6497

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

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

For values, refer to the device errata sheet.

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

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

0x497: STM32WL5x

38.12.2 DBGMCU configuration register (DBGMCU_CR)

Address offset: 0x004

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_STANDBYDBG_STOPDBG_SLEEP
rwrwrw

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

Bit 2 DBG_STANDBY : Allows debug in Standby mode

This bit does not influence CPU2 operation, CPU2 cannot be debugged in Standby mode even when this bit is enabled.

0: Normal operation. All clocks are disabled and the domain powered down automatically in Standby mode.

1: Automatic clock stop/power down disabled. All active clocks and oscillators continue to run during Standby mode and the domain supply is maintained, allowing full debug capability. On exit from Standby mode, a domain reset is performed.

Bit 1 DBG_STOP : Allows debug in Stop mode

This bit does not influence CPU2 operation, CPU2 cannot be debugged in Stop mode even when this bit is enabled.

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 DBG_SLEEP : Allows CPU1 debug in Sleep mode

0: Normal operation. Processor clock is stopped automatically in Sleep mode.

1: Automatic clock stop disabled. Processor clock continue to run, allowing full debug capability.

38.12.3 DBGMCU CPU1 APB1 peripheral freeze register 1 (DBGMCU_APB1FZR1)

Address offset: 0x03C

Reset value: 0x0000 0000

31302928272625242322212019181716
DBG_LPTIM1_STOPRes.Res.Res.Res.Res.Res.Res.DBG_I2C3_STOPDBG_I2C2_STOPDBG_I2C1_STOPRes.Res.Res.Res.Res.
rwrwrwrw
1514131211109876543210
Res.Res.Res.DBG_IWDG_STOPDBG_WWDG_STOPDBG_RTC_STOPRes.Res.Res.Res.Res.Res.Res.Res.Res.DBG_TIM2_STOP
rwrwrwrw

Bit 31 DBG_LPTIM1_STOP : LPTIM1 stop in CPU1 debug

0: Normal operation. LPTIM1 continues to operate while CPU1 is in debug mode.

1: Stop in debug. LPTIM1 is frozen while CPU1 is in debug mode.

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

Bit 23 DBG_I2C3_STOP : I2C3 SMBUS timeout stop in CPU1 debug

0: Normal operation. I2C3 SMBUS timeout continues to operate while CPU1 is in debug mode.

1: Stop in debug. I2C3 SMBUS timeout is frozen while CPU1 is in debug mode.

Bit 22 DBG_I2C2_STOP : I2C2 SMBUS timeout stop in CPU1 debug

0: Normal operation. I2C2 SMBUS timeout continues to operate while CPU1 is in debug mode.

1: Stop in debug. I2C2 SMBUS timeout is frozen while CPU1 is in debug mode.

Bit 21 DBG_I2C1_STOP : I2C1 SMBUS timeout stop in CPU1 debug

0: Normal operation. I2C1 SMBUS timeout continues to operate while CPU1 is in debug mode.

1: Stop in debug. I2C1 SMBUS timeout is frozen while CPU1 is in debug mode.

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

Bit 12 DBG_IWDG_STOP : IWDG stop in CPU1 debug

0: Normal operation. IWDG continues to operate while CPU1 is in debug mode.

1: Stop in debug. IWDG is frozen while CPU1 is in debug mode.

Bit 11 DBG_WWDG_STOP : WWDG stop in CPU1 debug

0: Normal operation. WWDG continues to operate while CPU1 is in debug mode.

1: Stop in debug. WWDG is frozen while CPU1 is in debug mode.

Bit 10 DBG_RTC_STOP : RTC stop in CPU1 debug

0: Normal operation. RTC continues to operate while CPU1 is in debug mode.

1: Stop in debug. RTC is frozen while CPU1 is in debug mode.

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

Bit 0 DBG_TIM2_STOP : TIM2 stop in CPU1 debug

0: Normal operation. TIM2 continues to operate while CPU1 is in debug mode.

1: Stop in debug. TIM2 is frozen while CPU1 is in debug mode.

38.12.4 DBGMCU CPU2 APB1 peripheral freeze register 1 (DBGMCU_C2APB1FZR1)

Address offset: 0x040

Reset value: 0x0000 0000

31302928272625242322212019181716
DBG_LPTIM1_STOPRes.Res.Res.Res.Res.Res.Res.DBG_I2C3_STOPDBG_I2C2_STOPDBG_I2C1_STOPRes.Res.Res.Res.Res.
rwrwrwrw

1514131211109876543210
Res.Res.Res.DBG_IWDG_STOPRes.DBG_RTC_STOPRes.Res.Res.Res.Res.Res.Res.Res.Res.DBG_TIM2_STOP
rwrwrw

Bit 31 DBG_LPTIM1_STOP : LPTIM1 stop in CPU2 debug

0: Normal operation. LPTIM1 continues to operate while CPU2 is in debug mode.

1: Stop in debug. LPTIM1 is frozen while CPU2 is in debug mode.

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

Bit 23 DBG_I2C3_STOP : I2C3 SMBUS timeout stop in CPU2 debug

0: Normal operation. I2C3 SMBUS timeout continues to operate while CPU2 is in debug mode.

1: Stop in debug. I2C3 SMBUS timeout is frozen while CPU2 is in debug mode.

Bit 22 DBG_I2C2_STOP : I2C2 SMBUS timeout stop in CPU2 debug

0: Normal operation. I2C2 SMBUS timeout continues to operate while CPU2 is in debug mode.

1: Stop in debug. I2C2 SMBUS timeout is frozen while CPU2 is in debug mode.

Bit 21 DBG_I2C1_STOP : I2C1 SMBUS timeout stop in CPU2 debug

0: Normal operation. I2C1 SMBUS timeout continues to operate while CPU2 is in debug mode.

1: Stop in debug. I2C1 SMBUS timeout is frozen while CPU2 is in debug mode.

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

Bit 12 DBG_IWDG_STOP : IWDG stop in CPU2 debug

0: Normal operation. IWDG continues to operate while CPU2 is in debug mode.

1: Stop in debug. IWDG is frozen while CPU2 is in debug mode.

Bit 11 Reserved, must be kept at reset value.

Bit 10 DBG_RTC_STOP : RTC stop in CPU2 debug

0: Normal operation. RTC continues to operate while CPU2 is in debug mode.

1: Stop in debug. RTC is frozen while CPU2 is in debug mode.

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

Bit 0 DBG_TIM2_STOP : TIM2 stop in CPU2 debug

0: Normal operation. TIM2 continues to operate while CPU2 is in debug mode.

1: Stop in debug. TIM2 is frozen while CPU2 is in debug mode.

38.12.5 DBGMCU CPU1 APB1 peripheral freeze register 2 (DBGMCU_APB1FZR2)

Address offset: 0x044

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_LPTIM3_STOPDBG_LPTIM2_STOPRes.Res.Res.Res.Res.
rwrw

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

Bit 6 DBG_LPTIM3_STOP : LPTIM3 stop in CPU1 debug

0: Normal operation. LPTIM3 continues to operate while CPU1 is in debug mode.

1: Stop in debug. LPTIM3 is frozen while CPU1 is in debug mode.

Bit 5 DBG_LPTIM2_STOP : LPTIM2 stop in CPU1 debug

0: Normal operation. LPTIM2 continues to operate while CPU1 is in debug mode.

1: Stop in debug. LPTIM2 is frozen while CPU1 is in debug mode.

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

38.12.6 DBGMCU CPU2 APB1 peripheral freeze register 2 (DBGMCU_C2APB1FZR2)

Address offset: 0x048

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.DBG_LPTIM3_STOPDBG_LPTIM2_STOPRes.Res.Res.Res.Res.
rwrw

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

Bit 6 DBG_LPTIM3_STOP : LPTIM3 stop in CPU2 debug

0: Normal operation. LPTIM3 continues to operate while CPU2 is in debug mode.

1: Stop in debug. LPTIM3 is frozen while CPU2 is in debug mode.

Bit 5 DBG_LPTIM2_STOP : LPTIM2 stop in CPU2 debug

0: Normal operation. LPTIM2 continues to operate while CPU2 is in debug mode.

1: Stop in debug. LPTIM2 is frozen while CPU2 is in debug mode.

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

38.12.7 DBGMCU CPU1 APB2 peripheral freeze register (DBGMCU_APB2FZR)

Address offset: 0x04C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_TIM17_STOPDBG_TIM16_STOPRes.
rwrw
1514131211109876543210
Res.Res.Res.Res.DBG_TIM1_STOPRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw

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

Bit 18 DBG_TIM17_STOP : TIM17 stop in CPU1 debug

0: Normal operation. TIM17 continues to operate while CPU1 is in debug mode.

1: Stop in debug. TIM17 is frozen while CPU1 is in debug mode.

Bit 17 DBG_TIM16_STOP : TIM16 stop in CPU1 debug

0: Normal operation. TIM16 continues to operate while CPU1 is in debug mode.

1: Stop in debug. TIM16 is frozen while CPU1 is in debug mode.

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

Bit 11 DBG_TIM1_STOP : TIM1 stop in CPU1 debug

0: Normal operation. TIM1 continues to operate while CPU1 is in debug mode.

1: Stop in debug. TIM1 is frozen while CPU1 is in debug mode.

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

38.12.8 DBGMCU CPU2 APB2 peripheral freeze register (DBGMCU_C2APB2FZR)

Address offset: 0x048

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_TIM17_STOPDBG_TIM16_STOPRes.
1514131211109876543210
Res.Res.Res.Res.DBG_TIM1_STOPRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw

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

Bit 18 DBG_TIM17_STOP : TIM17 stop in CPU2 debug

Bit 17 DBG_TIM16_STOP : TIM16 stop in CPU2 debug

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

Bit 11 DBG_TIM1_STOP : TIM1 stop in CPU2 debug

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

38.12.9 DBGMCU register map

Table 287. DBGMCU register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000DBGMCU_IDCODERREV_ID[15:0]ResResResResDEV_ID[11:0]
Reset valuexxxxxxxxxxxxxxxx010010010111
0x004DBGMCU_CRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResDBG_STANDBYDBG_STOP
Reset value00
0x008-0x038ReservedReserved.

Table 287. DBGMCU register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x03CDBGMCU_
APB1FZR1
DBG_LPTIM1_STOPRes.Res.Res.Res.Res.Res.Res.DBG_I2C3_STOPDBG_I2C2_STOPDBG_I2C1_STOPRes.Res.Res.Res.Res.Res.Res.Res.DBG_IWDG_STOPDBG_WWDG_STOPDBG_RTC_STOPRes.Res.Res.Res.Res.Res.Res.Res.Res.DBG_TIM2_STOP
Reset valueoooooooo
0x040DBGMCU_
C2APB1FZR1
DBG_LPTIM1_STOPRes.Res.Res.Res.Res.Res.Res.DBG_I2C3_STOPDBG_I2C2_STOPDBG_I2C1_STOPRes.Res.Res.Res.Res.Res.Res.Res.DBG_IWDG_STOPRes.DBG_RTC_STOPRes.Res.Res.Res.Res.Res.Res.Res.Res.DBG_TIM2_STOP
Reset valueooooooo
0x044DBGMCU_
APB1FZR2
Res.Res.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_LPTIM3_STOPDBG_LPTIM2_STOPRes.Res.Res.Res.
Reset valueoo
0x048DBGMCU_
C2APB1FZR2
Res.Res.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_LPTIM3_STOPDBG_LPTIM2_STOPRes.Res.Res.Res.
Reset valueoo
0x04CDBGMCU_
APB2FZR
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_TIM17_STOPDBG_TIM16_STOPRes.Res.Res.Res.DBG_TIM1_STOPRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset valueooo
0x050DBGMCU_
C2APB2FZR
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_TIM17_STOPDBG_TIM16_STOPRes.Res.Res.Res.DBG_TIM1_STOPRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset valueooo

Refer to Section 38.12: Microcontroller debug unit (DBGMCU) for the register boundary addresses.

38.13 CPU2 ROM tables

The ROM tables are CoreSight components that contain the base addresses of all the CoreSight debug components accessible via the AHBD. These tables allow a debugger to discover the topology of the CoreSight system automatically.

There are two ROM tables in the CPU2 sub-system:

ROM1 occupies a 4-Kbyte, 32-bit wide chunk of AHB address space, from 0xF0000000 to 0xF0000FFC.

Table 288. ROM1 table

Address in ROM tableComponent nameComponent base addressComponent address offsetSizeEntry
0xF0000000CPU2 ROM table0xE00FF0000xF00FF0004 KB0xF00FF003
0xF0000004CTI0xF00010000x000010004 KB0x00001003
0xF0000008Not used---0x00002002
0xF000000CNot used---0x10000002
0xF0000010Top of table---0x00000000
0xF000000C to 0xF0000FC8Reserved---0x00000000
0xF0000FCC to 0xF0000FFCROM table registers---See Table 290

ROM2 occupies a 4-Kbyte, 32-bit wide chunk of APB-D address space, from 0xE00FF000 to 0xE00FFFFC.

Table 289. ROM2 table

Address in ROM tableComponent nameComponent base addressComponent address offsetSizeEntry
0xE00FF000SCS0xE000E0000xFFF0F0004 KB0xFFF0F003
0xE00FF004DWT0xE00010000xFFF020004 KB0xFFF02003
0xE00FF008BPU0xE00020000xFFF030004 KB0xFFF03003
0xE00FF00CTop of table---0x00000000
0xE00FF010 to 0xE00FFFC8Reserved---0x00000000
0xE00FFCC to 0xE00FFFFCROM table registers---See Table 291

The topology for the CoreSight components in the CPU2 subsystem is shown in Figure 393 .

Figure 393. CPU2 CoreSight topology

Figure 393. CPU2 CoreSight topology diagram showing the connection of AP1 (AHB-AP) to CPU2 ROM1 table, CPU2 ROM2 table, System control space (SCS), Cross trigger interface (CTI), Data watchpoint/trace (DWT), and Breakpoint Unit (BPU).

The diagram illustrates the CoreSight topology for the CPU2 subsystem. It shows the following components and their connections:

Connections: The AP_BASER register points to the CPU2 ROM1 table . The CPU2 ROM1 table points to the CPU2 ROM2 table . The CPU2 ROM2 table points to the System control space (SCS) . The CPU2 ROM1 table also points to the Cross trigger interface (CTI) . The CPU2 ROM2 table also points to the Data watchpoint/trace (DWT) . The CPU2 ROM2 table also points to the Breakpoint Unit (BPU) .

Figure 393. CPU2 CoreSight topology diagram showing the connection of AP1 (AHB-AP) to CPU2 ROM1 table, CPU2 ROM2 table, System control space (SCS), Cross trigger interface (CTI), Data watchpoint/trace (DWT), and Breakpoint Unit (BPU).

38.13.1 CPU2 ROM1 memory type register (C2ROM1_MEMTYPE)

Address offset: 0xFCC

Reset value: 0x0000 0001

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

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

Bit 0 SYSMEM : system memory
1: System memory present on this bus

38.13.2 CPU2 ROM1 CoreSight peripheral identity register 4 (C2ROM1_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.F4KCOUNT[3:0]JEP106CON[3:0]
rrrrrrrr

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

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

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

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

0x4: Arm ® JEDEC continuation code

38.13.3 CPU2 ROM1 CoreSight peripheral identity register 0 (C2ROM1_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 00C0

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

0xC0: Cortex ® -M0+ processor ROM table

38.13.4 CPU2 ROM1 CoreSight peripheral identity register 1 (C2ROM1_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 code

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

0x4: Cortex®-M0+processor ROM table

38.13.5 CPU2 ROM1 CoreSight peripheral identity register 2 (C2ROM1_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

38.13.6 CPU2 ROM1 CoreSight peripheral identity register 3 (C2ROM1_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

38.13.7 CPU2 ROM1 CoreSight component identity register 0 (C2ROM1_CIDR0)

Address offset: 0xFF0

Reset value: 0x0000 000D

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

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

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

0x0D: Common ID value

38.13.8 CPU2 ROM1 CoreSight peripheral identity register 1 (C2ROM1_CIDR1)

Address offset: 0xFF4

Reset value: 0x0000 0010

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

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

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

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

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

38.13.9 CPU2 ROM1 CoreSight component identity register 2 (C2ROM1_CIDR2)

Address offset: 0xFF8

Reset value: 0x0000 0005

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

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

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

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

38.13.10 CPU2 ROM1 CoreSight component identity register 3 (C2ROM1_CIDR3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

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

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

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

0xB1: Common ID value

38.13.11 CPU2 ROM1 register map

Table 290. CPU2 processor ROM table register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xFCCC2ROM1_MEMTYPERRes.SYSMEM
Reset value1
0xFD0C2ROM1_PIDR4Res.F4KCOUNT [3:0]JEP106CON [3:0]
Reset value00000100
0xFD4-0xFDCReservedReserved.
0xFE0C2ROM1_PIDR0Res.PARTNUM[7:0]
Reset value11000000
0xFE4C2ROM1_PIDR1Res.JEP106ID [3:0]PARTNUM [11:8]
Reset value10110100
0xFE8C2ROM1_PIDR2Res.REVISION[3:0]JEDECJEP106ID[6:4]
Reset value00001011
0xFECC2ROM1_PIDR3Res.REVAND[3:0]CMOD[3:0]
Reset value00000000
0xFF0C2ROM1_CIDR0Res.PREAMBLE[7:0]
Reset value00001101
0xFF4C2ROM1_CIDR1Res.CLASS[3:0]PREAMBLE [11:8]
Reset value00010000

Table 290. CPU2 processor ROM table register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xFF8C2ROM1_CIDR2<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
0xFFCC2ROM1_CIDR3<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 Section 38.13: CPU2 ROM tables for the register boundary addresses.

38.13.12 CPU2 ROM2 memory type register (C2ROM2_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

38.13.13 CPU2 ROM2 CoreSight peripheral identity register 4 (C2ROM2_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.F4KCOUNT[3:0]JEP106CON[3:0]
rrrrrrrr

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

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

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

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

0x4: Arm ® JEDEC continuation code

38.13.14 CPU2 ROM2 CoreSight peripheral identity register 0 (C2ROM2_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 00C0

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

0xC0: CPU2 ROM table

38.13.15 CPU2 ROM2 CoreSight peripheral identity register 1 (C2ROM2_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 code

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

0x4: CPU2 ROM table

38.13.16 CPU2 ROM2 CoreSight peripheral identity register 2 (C2ROM2_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

38.13.17 CPU2 ROM2 CoreSight peripheral identity register 3 (C2ROM2_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

38.13.18 CPU2 ROM2 CoreSight component identity register 0 (C2ROM2_CIDR0)

Address offset: 0xFF0

Reset value: 0x0000 000D

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

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

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

0x0D: Common ID value

38.13.19 CPU2 ROM2 CoreSight peripheral identity register 1 (C2ROM2_CIDR1)

Address offset: 0xFF4

Reset value: 0x0000 0010

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

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

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

0x1: ROM table component

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

0x0: Common ID value

38.13.20 CPU2 ROM2 CoreSight component identity register 2 (C2ROM2_CIDR2)

Address offset: 0xFF8

Reset value: 0x0000 0005

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

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

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

38.13.21 CPU2 ROM2 CoreSight component identity register 3 (C2ROM2_CIDR3)

Address offset: 0xFFC

Reset value: 0x0000 00B1

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

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

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

38.13.22 CPU2 ROM2 register map

Table 291. CPU2 ROM table register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SYSTEMMEM
0xFCCC2ROM2_MEMTYPER
Reset value1
0xFD0C2ROM2_PIDR4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.F4KCOUNT [3:0]JEP106CON [3:0]
Reset value00000100

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xFE0C2ROM2_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 value110000000
0xFE4C2ROM2_PIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.JEP106ID [3:0]PARTNUM [11:8]
Reset value10110100
0xFE8C2ROM2_PIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVISION[3:0]JEDECJEP106ID[6:4]
Reset value00001011
0xFECC2ROM2_PIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.REVAND[3:0]CMOD[3:0]
Reset value00000000
0xFF0C2ROM2_CIDR0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[7:0]
Reset value00001101
0xFF4C2ROM2_CIDR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLASS[3:0]PREAMBLE [11:8]
Reset value00010000
0xFF8C2ROM2_CIDR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[19:12]
Reset value00000101
0xFFCC2ROM2_CIDR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREAMBLE[27:20]
Reset value10110001

Refer to Section 38.13: CPU2 ROM tables for the register boundary addresses.

38.14 CPU2 breakpoint unit (BPU)

The BPU allows hardware breakpoints to be set. It contains eight comparators which monitor the instruction fetch address and return a breakpoint instruction when a match is detected. The CPU2 PBU does not support flash memory patch functionality.

38.14.1 BPU control register (BPU_CTRLR)

Address offset: 0x000

Reset value: 0x0000 0080

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.NUM_CODE6NUM_CODE5NUM_CODE4NUM_LIT[3:0]NUM_CODE[3:0]Res.Res.KEYENABLE
rrrrrrrrrrrrwrw

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

Bits 11:8 NUM_LIT[3:0] : number of literal address comparators supported (read only)
0x0: No literal comparators supported.

Bit 14,13,12,7,6,5,4 NUM_CODE[6:0] : number of instruction address comparators supported - least significant bits (read only)
0x8: 8 instruction comparators supported

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

Bit 1 KEY : write protect key
A write to BPU_CTRLR register is ignored if this bit is not set to 1.

Bit 0 ENABLE : BPU enable

38.14.2 BPU remap register (BPU_REMAPR)

Address offset: 0x004

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.RMPSPTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
r
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

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

Bit 29 RMPSP : Flash memory patch remap

Indicates whether flash memory patch remap is supported (read only).

0: Remapping not supported.

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

38.14.3 BPU comparator register x (BPU_COMPxR)

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

Reset value: 0x0000 0000

31302928272625242322212019181716
REPLACE[1:0]Res.COMP[26:14]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
COMP[13:0]Res.ENABLE
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:30 REPLACE[1:0] : Defines the behavior when a match occurs between the COMP field and the instruction fetch address.

0x0: reserved

0x1: Breakpoint on lower half-word, upper half-word is unaffected.

0x2: Breakpoint on upper half-word, lower half-word is unaffected.

0x3: Breakpoint on both upper and lower half-words

Bit 29 Reserved, must be kept at reset value.

Bits 28:2 COMP[26:0] : Value to compare with address bits 28:2 of accesses to instruction code memory (0x00000000 to 0x1FFFFFFF)

If a match occurs, the action to be taken is defined by the REPLACE field.

Bit 1 Reserved, must be kept at reset value.

Bit 0 ENABLE : comparator enable

The comparator is only enabled if both this bit and the BPU ENABLE bit in the BPU_CTRLR register are set.

0: Disabled

1: Enabled

38.14.4 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.F4KCOUNT[3:0]JEP106CON[3:0]
rrrrrrrr

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

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

0x0: Register file occupies a single 4-Kbyte region.

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

0x4: Arm® JEDEC code

38.14.5 BPU CoreSight peripheral identity register 0 (BPU_PIDR0)

Address offset: 0xFE0

Reset value: 0x0000 000C

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

0x0C: BPU part number

38.14.6 BPU CoreSight peripheral identity register 1 (BPU_PIDR1)

Address offset: 0xFE4

Reset value: 0x0000 00B0

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

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

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

0xB: Arm® JEDEC code

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

0x0: BPU part number

38.14.7 BPU CoreSight peripheral identity register 2 (BPU_PIDR2)

Address offset: 0xFE8

Reset value: 0x0000 002B

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

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

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

0x2: r0p3

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

38.14.8 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

38.14.9 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 ID bits [7:0]

0x0D: Common ID value

38.14.10 BPU CoreSight peripheral identity register 1 (BPU_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.
rrrrrrrr
CLASS[3:0]PREAMBLE[11:8]

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

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

0xE: Trace generator component

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

0x0: Common ID value

38.14.11 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.
rrrrrrrr
PREAMBLE[19:12]

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

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

0x05: Common ID value

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

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

0xB1: Common ID value

38.14.13 CPU2 BPU register map

Table 292. CPU2 BPU register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000BPU_CTRLRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NUM_CODE[6:4]NUM_LIT[3:0]NUM_CODE[3:0]Res.Res.KEYENABLE
Reset value0000000100000
0x004BPU_REMAPRRes.Res.RMPSPRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value0
0x008 to 0x024BPU_COMP0-7RREPLACE[1:0]Res.COMP[26:0]Res.ENABLE
Reset value00000000000000000000000000000
0x02C-0xFCCReservedReserved.
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.Res.F4KCOUNT [3:0]JEP106CON [3:0]
Reset value00000100
0xFD4-0xFDCReservedReserved.
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.Res.PARTNUM[7:0]
Reset value00001100
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.Res.JEP106ID [3:0]PARTNUM [11:8]
Reset value10110000

Table 292. CPU2 BPU register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xFE8BPU_PIDR2ResResResResResResResResResResResResResResResResResResResResResResResResREVISION [3:0]JEDecJEP106ID [6:4]
Reset value00101011
0xFECBPU_PIDR3ResResResResResResResResResResResResResResResResResResResResResResResResREVAND[3:0]CMOD[3:0]
Reset value00000000
0xFF0BPU_CIDR0ResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE[7:0]
Reset value00001101
0xFF4BPU_CIDR1ResResResResResResResResResResResResResResResResResResResResResResResCLASS[3:0]PREAMBLE [11:8]
Reset value11100000
0xFF8BPU_CIDR2ResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE[19:12]
Reset value00000101
0xFFCBPU_CIDR3ResResResResResResResResResResResResResResResResResResResResResResResPREAMBLE[27:20]
Reset value10110001

Refer to Section 38.13: CPU2 ROM tables for the register boundary addresses.

38.15 References

  1. 1. IHI 0031C (ID080813) - Arm® Debug Interface Architecture Specification ADIv5.0 to ADIv5.2, Issue C, 8th Aug 2013
  2. 2. DDI 0480F (ID100313) - Arm® CoreSight™ SoC-400 r3p2 Technical Reference Manual, Issue G, 16th March 2015
  3. 3. DDI 0461B (ID010111) - Arm® CoreSight™ Trace Memory Controller r0p1 Technical Reference Manual, Issue B, 10 Dec 2010
  4. 4. DDI 0314H - Arm® CoreSight™ Components Technical Reference Manual, Issue H, 10 July, 2009
  5. 5. DDI 0403D (ID100710) - Arm®v7-M Architecture Reference Manual, Issue E.b, 2 December 2014
  6. 6. DDI 0494-2a (ID062813) - Arm® CoreSight™ ETM™-M0+ r0p1 Technical Reference Manual, Issue D, 6 July, 2015
  7. 7. DDI 0440C (ID070610) - Arm® CoreSight™ ETM™-M4 r0p1 Technical Reference Manual, Issue C, 29 June 2012