97. Debug support (DBG)

97.1 DBG introduction

In the whole document:

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 the following Arm CoreSight components:

These components are described in Section 97.10. More information can be found in the Arm documents referenced in Section 97.14.

97.2 DBG use cases

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

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

97.3 DBG block diagram

Figure 1179. Block diagram of debug support infrastructure

Block diagram of debug support infrastructure showing Debug subsystem, Cortex-M33 core, Cortex-A35MP core, Cortex-M0+ core, and Trace subsystem.

The diagram illustrates the debug support infrastructure, divided into several key functional areas: Debug subsystem, Cortex-M33 core, Cortex-A35MP core, Cortex-M0+ core, and Trace subsystem.

Legend:
— APB-D (system debug bus)
— DAPBUS
— ATB (trace bus)
--→ CTM (cross trigger matrix)
······→ Timestamp
1. Arm CoreSight component

MSv66597V2

Block diagram of debug support infrastructure showing Debug subsystem, Cortex-M33 core, Cortex-A35MP core, Cortex-M0+ core, and Trace subsystem.

97.4 DBG pins

Table 1004. JTAG/Serial-wire debug port pins

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

Table 1005. Trace port pins

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

Table 1006. Serial-wire trace port pins

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

Table 1007. Trigger pins

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

Table 1008. Cortex-M0+ serial wire debug port pins

Pin nameTypeDescriptionPin assignment
SWCLKISerial-wire clockRefer to Datasheet
SWDIOOSerial-wire data in/out

97.5 DBG power and clocking

97.5.1 DBG power domains

All debug components except the SWJ-DP are in the \(V_{DDCORE}\) power domain.

The SWJ-DP is located in the VDD power domain, and as such is powered in all modes but the VBAT one. This means that the debugger is able to wake the device up from Standby modes. the Cortex-M0+ and its dedicated SWD interface are located in the VBAT power domain, and as such, can still be used in low-power mode where VDDCORE is off.

97.5.2 DBG clocks

Figure 1180. Debug clock domains

Block diagram of Figure 1180. Debug clock domains, showing clock domains: SWTCLK, CK_SYS_DBG, CK_MCU2_SS, CK_MCU1_SS, CK_SYS_ATB, and CK_MCU3_SS. Components include SWJ-DP, Cortex-M33 core, Cortex-A35 cores, Cortex-M0+ core, AXI-AP, APB-AP, ROM tables, DWT, FPB, ITM, CTI, ETM, PTM, STM, Funnel, ETF SRAM, ETR, TPIU, SWO, Replicators, and Timestamp generator.
Block diagram of Figure 1180. Debug clock domains, showing clock domains: SWTCLK, CK_SYS_DBG, CK_MCU2_SS, CK_MCU1_SS, CK_SYS_ATB, and CK_MCU3_SS. Components include SWJ-DP, Cortex-M33 core, Cortex-A35 cores, Cortex-M0+ core, AXI-AP, APB-AP, ROM tables, DWT, FPB, ITM, CTI, ETM, PTM, STM, Funnel, ETF SRAM, ETR, TPIU, SWO, Replicators, and Timestamp generator.

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

The SWJ-DP contains an asynchronous interface to the system debug clock domain, CK_SYS_DBG. The debug APB bus is in this domain.

The trace subsystem (that is all components on the ATB) is in the CK_SYS_ATB trace domain.

CK_SYS_DBG and the CK_SYS_ATB clocks are enabled by the debugger using CDBGPWRUPREQ in debug port CTRL/STAT register. They can also be enabled by software writing to a register in the RCC. The clocks must be enabled before the debugger or software can access any of the debug features on the device. They must be disabled when debug and trace are not used to avoid wasting energy.

The trace port (TPIU) output clock, TRACECLK, is generated by the flexible clock generator that can be programmed to match the capability of the IO ports. The same clock is used to drive the serial wire output (SWO).

Note: TRACECLK is enabled in the RCC. It must be activated whenever tracing is required, even if neither the TPIU nor the SWO are active (that is when using the embedded trace FIFO as a software buffer). This is to avoid filling up the SWO FIFO which would then block the trace output from the ITM in the Cortex-M33.

The debug and trace components included in the processors (such as PTM, ETM, ITM, DWG, FPB, CTI) are clocked with the corresponding core clock (CK_CPU1_SS for the Cortex-A35 subsystem, CK_CPU2_SS for the Cortex-M33 subsystem, and CK_CPU3_SS for the Cortex-M0+ subsystem).

97.5.3 Debug and low-power modes

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

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

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

97.5.4 Debug reset

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

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

97.6 Security

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

97.6.1 Authentication signals

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

The Cortex-A35 and Cortex-M33 have independent set of authentication signals to allow their debug capabilities to be set individually for each core. The Cortex-M33 authentication signals also apply to the Cortex-M0+.

The table below lists which signals apply to which debug and trace components.

Table 1009. Authentication signal connectivity

-DEVICEENDBGENSPIDENNIDENSPNIDENDBGSWEN
Debug APB-APX-----
System bus AXI-APX-X---

Table 1009. Authentication signal connectivity (continued)

-DEVICEENDBGENSPIDENNIDENSPNIDENDBGSWEN
Cortex-M33 AHB-APX-X(1)---
Cortex-M0+ AHB-APX-----
Cortex-M33 DWT/FPB/SCS/ITM-X(1)X(1)X(1)X(1)-
Cortex-M33 ETM-X(1)X(1)X(1)X(1)-
Cortex-M33 CTI-X(1)-X(1)--
Cortex-A35 Debug unit-X(2)X(2)X(2)X(2)X
Cortex-A35 PTM-X(2)-X(2)-X
Cortex-A35 CTI-X(2)-X(2)-X
Cortex-M0+ Debug unit-X(1)----
STM-X(1)(2)X(1)(2)X(1)(2)X(1)(2)X
ETF-----X
ETR-XX--X
TSGEN-----X
TPIU-----X
  1. 1. Cortex-M33/M0+ dedicated subset of authentication signals.
  2. 2. Cortex-A35 dedicated subset of authentication signals.

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

The initial states of the signals are set at power-on reset, according to the table below. States of the signals can be modified in BSEC_DENR register after boot-up by a trusted software with secure and privilege access rights.

Refer to Section 7: Boot and security control (BSEC), in the debug and trace control sections, for more details on the various combinations allowed for these signals.

Table 1010. Authentication signal initial states

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

97.7 Chip-level TAP controller (CLTAPC)

The JTAG interface is connected to the internal scan chain of the device. It is used for testing as well as for debug. The first component in the scan chain is the chip-level TAP

controller which implements a TAP state machine based on IEEE Std 1149.1-1990. It allows access to the built-in manufacturing test features.

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

The CLTAPC also contains three 16-bit registers which can be accessed using the CTRL instruction sequence (0b01000) followed by 0b1111 to bypass the SWJ-DP.

Next, the register address is shifted into the DR (LSB first). Finally, the 16-bit register content is shifted into or out of the DR, according to whether the register is read or write.

The CLTAPC registers are listed in the table below.

Table 1011. CLTAPC registers

NameAddressDescriptionread/write
SECSTS0b001Status of BSEC_DENR registerR
DBGCTL0b010Connected to BSEC_JTAGINR registerW
DBGSTS0b011Connected to BSEC_JTAGOUTR registerR

For details on BSEC register bits, refer to Section 7.3.13: JTAG registers.

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

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

Two types of interface can be configured:

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

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

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

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

JTCK/SWCLK must be cycled for each data bit.

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.

97.8.1 JTAG debug port

The JTAG-DP implements a TAP state machine (TAPSM) based on IEEE Std 1149.1-1990.

For more details on the JTAG debug protocol, refer to the Arm debug interface Architecture specification [1].

97.8.2 SWD debug port

The serial-wire debug protocol uses the two following pins:

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

  1. 1. packet request (8 bits) transmitted by the host
  2. 2. acknowledge response (3 bits) transmitted by the target
  3. 3. data transfer (33 bits) transmitted by the host (for a write) or target (for a read)

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.

In addition to the main SWJ-DP, a dedicated SWD-only interface is provisioned to be able to access the Cortex-M0+ for debug in low-power modes.

97.9 Access ports

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

Figure 1181. Debug and access port connections

Block diagram showing Debug and access port connections. JTAG/SWD connects to SWJ-DP. SWJ-DP connects to DAPBUS. DAPBUS connects to AP0 (APB-AP), AP1 (AHB-AP), AP2 (AHB-AP), AP4 (AXI-AP), and AP8 (AHB-AP). AP0 connects to Debug bus (APB). AP1 connects to SmartRun peripherals. AP2 connects to Cortex-M0+. AP4 connects to System interconnect (AXI). AP8 connects to Cortex-M33.
graph LR
    JTAGSWD[JTAG/SWD] <--> SWJDP[SWJ-DP]
    SWJDP <--> DAPBUS[DAPBUS]
    DAPBUS --> AP0[AP0
(APB-AP)] DAPBUS --> AP1[AP1
(AHB-AP)] DAPBUS --> AP2[AP2
(AHB-AP)] DAPBUS --> AP4[AP4
(AXI-AP)] DAPBUS --> AP8[AP8
(AHB-AP)] AP0 <--> DebugBus[Debug bus (APB)] AP1 <--> SmartRun[SmartRun peripherals] AP2 <--> CortexM0[Cortex-M0+] AP4 <--> SystemInterconnect[System interconnect (AXI)] AP8 <--> CortexM33[Cortex-M33]

MSv66596V2

Block diagram showing Debug and access port connections. JTAG/SWD connects to SWJ-DP. SWJ-DP connects to DAPBUS. DAPBUS connects to AP0 (APB-AP), AP1 (AHB-AP), AP2 (AHB-AP), AP4 (AXI-AP), and AP8 (AHB-AP). AP0 connects to Debug bus (APB). AP1 connects to SmartRun peripherals. AP2 connects to Cortex-M0+. AP4 connects to System interconnect (AXI). AP8 connects to Cortex-M33.

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

For more detailed information on the MEM-AP, refer to the Arm debug interface architecture specification [1].

97.9.1 Authentication

The effect of the authentication signals for each access port is shown in the tables below.

Table 1012. AP0 (Debug APB) authentication behavior

DEVICEENOther authentication signalBehavior
0XAll access blocked.
1All access enabled. Note that access to certain components may return an error depending on the state of the other authentication signals.

Table 1013. AP1-2-4-8 authentication behavior

DEVICEENSPIDEN(1)OthersBehavior
0XXAll transfers blocked. Any attempt to perform a transfer results in an error.
10Secure transfers blocked. Any attempt to perform a secure transfer results in an error. Non-secure transfers are enabled.
11Both non-secure and secure transfers are enabled.

1. AP1/2/8 are controlled from Cortex-M33/M0+ SPIDEN signal. AP4 is controlled from Cortex-A35 SPIDEN signal.

97.10 System debug features

The system debug features include the following CoreSight components:

These components are accessible by the debugger via the system APB-AP and its associated APB debug bus. They are also accessible from the Cortex-A35 and Cortex-M33 processors to the extent that self-hosted feature is enabled.

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

97.10.1 System ROM tables

There is one main ROM table on the debug APB bus. The ROM table is a CoreSight component that contains the base addresses of CoreSight debug components on APB bus. This table allows a debugger to discover automatically the CoreSight system topology.

The ROM table points to the CoreSight components located in the debug subsystem, and to a secondary ROM table in the Cortex-A35 subsystem.

The table occupies a 4-Kbyte, 32-bit wide chunk of APB address space:

Each component referenced in the ROM table occupies a 64-Kbyte range.

Table 1014. Debug subsystem ROM table

Address offset in ROM tableComponent nameComponent base address (system bus)Component base address (debugger)Component address offsetData
0x000DBGMCU0x4A01 00000x8001 00000x1 00000x0001 0002
0x004Funnel0x4A02 00000x8002 00000x2 00000x0002 0003
0x008ETF0x4A03 00000x8003 00000x3 00000x0003 0003
0x00CETR0x4A04 00000x8004 00000x4 00000x0004 0003
0x010TPIU0x4A05 00000x8005 00000x5 00000x0005 0003
0x014Replicator0x4A06 00000x8006 00000x6 00000x0006 0003
0x018Timestamp generator0x4A07 00000x8007 00000x7 00000x0007 0003
0x01CSTM0x4A08 00000x8008 00000x8 00000x0008 0003
0x020CTI00x4A09 00000x8009 00000x9 00000x0009 0003
0x024CTI10x4A0A 00000x800A 00000xA 00000x000A 0003
0x028SWO0x4A0B 00000x800B 00000xB 00000x000B 0003

Table 1014. Debug subsystem ROM table (continued)

Address offset in ROM tableComponent nameComponent base address (system bus)Component base address (debugger)Component address offsetData
0x02CCortex-A35 ROM table0x4A20 00000x8020 00000x20 00000x0020 0003
0x030Top of table---0x0000 0000
0x034 to 0xFC8Reserved---0x0000 0000
0xFCC to 0xFFCROM table registers----

The secondary ROM table below describes the debug components attached to the Cortex-A35 processors. It occupies a 4-Kbyte, 32-bit wide chunk of APB address space:

Table 1015. Cortex-A35 subsystem ROM table

Address offset in ROM tableComponent nameComponent base address (system bus)Component base address (debugger)Component address offsetEntry
0x000CA35_0_DBG0x4A21 00000x8021 00000x1 00000x0001 0003
0x004CA35_0_CTI0x4A22 00000x8022 00000x2 00000x0002 0003
0x008CA35_0_PMU0x4A23 00000x8023 00000x3 00000x0003 0003
0x00CCA35_0_ETM0x4A24 00000x8024 00000x4 00000x0004 0003
0x010CA35_1_DBG0x4A31 00000x8031 00000x11 00000x0011 0003
0x014CA35_1_CTI0x4A32 00000x8032 00000x12 00000x0012 0003
0x018CA35_1_PMU0x4A33 00000x8033 00000x13 00000x0013 0003
0x01CCA35_1_ETM0x4A34 00000x8034 00000x14 00000x0014 0003
0x020Top of table---0x0000 0000
0x024 to 0xFC8Reserved---0x0000 0000
0xFCC to 0xFFCROM table registers----

For more information on these ROM tables, refer to the Arm Debug Interface Architecture Specification [1].

The topology for CoreSight components on debug APB is shown in the figure below.

Figure 1182. Debug APB CoreSight topology

A detailed block diagram showing the Debug APB CoreSight topology. It illustrates the connections between various CoreSight components and the Debug subsystem ROM table. The diagram shows memory-mapped registers for components like Trace FIFO (ETF), Trace FIFO (ETR), Trace Funnel (CSTF), DBGMCU, Trace port interface (TPIU), Replicator, Timestamp generator, System trace macrocell (STM), System CTI_0, System CTI_1, Serial wire output (SWO), and Cortex-A35 subsystem ROM table. It also shows the Cortex-A35 debug, CTI, PMU, and ETM components. Arrows indicate the flow of data and control signals between these components and the central Debug subsystem ROM table.

The diagram illustrates the Debug APB CoreSight topology, showing the connections between various CoreSight components and the Debug subsystem ROM table. The components are organized into several groups:

The Debug subsystem ROM table @0x80000000 contains offsets from 0x000 to 0x030, PIDR4 (0xFD0), and CIDR3 (0xFFC). The BASE register (0xF8) APB-AP points to the ROM table. Arrows indicate the connections between the components and the ROM table, showing the flow of data and control signals.

A detailed block diagram showing the Debug APB CoreSight topology. It illustrates the connections between various CoreSight components and the Debug subsystem ROM table. The diagram shows memory-mapped registers for components like Trace FIFO (ETF), Trace FIFO (ETR), Trace Funnel (CSTF), DBGMCU, Trace port interface (TPIU), Replicator, Timestamp generator, System trace macrocell (STM), System CTI_0, System CTI_1, Serial wire output (SWO), and Cortex-A35 subsystem ROM table. It also shows the Cortex-A35 debug, CTI, PMU, and ETM components. Arrows indicate the flow of data and control signals between these components and the central Debug subsystem ROM table.

MSv67400V2

97.10.2 CoreSight global timestamp generator (TSGEN)

The CoreSight global timestamp generator contains a 64-bit counter that provides a common timing reference for all trace sources in the system (PTM, ETM, ITM and STM). These components insert timestamps in the trace streams that allow the trace analyzer to recover the chronological order of trace packets, which can be lost when multiple trace sources are multiplexed into one stream at the funnel.

TSGEN registers are accessible over the debug APB. This allows the debugger or debug software to perform the following tasks:

For more information on the TSGEN CoreSight component, refer to the Arm CoreSight SoC-400 technical reference manual [2].

The timestamp generator has its own clock domain CK_KER_TSGEN, and is distributed to the Cortex-A35 and Cortex-M33 to provide a time information for their respective trace macrocell, and to the STM to provide a time information for stamping its messages. To simplify the distribution over clock domain boundaries, the 64-bit timestamp is encoded in 7 bits, then decoded in the destination power domain. The timestamp distribution is shown in Figure 1183.

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

Figure 1183. CoreSight timestamp distribution

Block diagram of CoreSight timestamp distribution showing the flow from Debug APB to various components including Timestamp generator, Encoder, Replicator, and decoders/interpolators for STM, Cortex-A35, and Cortex-M33 domains.

The diagram illustrates the CoreSight timestamp distribution architecture. It starts with the Debug APB feeding into a Timestamp generator (containing a Counter [63:0]). The 64-bit output of the generator goes to a Timestamp Encoder, which produces a 10-bit output. This 10-bit signal enters a Timestamp replicator. The replicator has three outputs: one 10-bit output goes to a Timestamp decoder and then to the STM (64-bit path); two 10-bit outputs go to two separate domains. The top domain is the High-frequency CPU domain, which contains a Timestamp decoder, a Timestamp interpolator, and a Cortex-A35 block (containing PTM1 and PTM2). The bottom domain is the Cortex-M33 subsystem domain, which contains a Timestamp decoder, a Timestamp interpolator, and a Cortex-M33 block (containing ETM and ITM). Data paths are labeled with bit widths: 64, 10, and 48.

MSv66599V3

Block diagram of CoreSight timestamp distribution showing the flow from Debug APB to various components including Timestamp generator, Encoder, Replicator, and decoders/interpolators for STM, Cortex-A35, and Cortex-M33 domains.

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

The cross trigger interfaces (CTI) and cross trigger matrix (CTM) together form the CoreSight embedded cross trigger feature. There are six CTI components, two in the debug subsystem, one for each Cortex-A35, one dedicated to the Cortex-M33 and one dedicated to the Cortex-M0+.

The CTIs are connected to each other via two CTMs. Debug subsystem and Cortex-A35 CTIs are accessible to the debugger via the debug APB. The Cortex-M33 CTI is accessible on its private peripheral bus (PPB) via the Cortex-M33 AHB access port.

The Cortex-M0+CTI is accessible on its private peripheral bus (PPB) via the Cortex-M0+ AHB access port.

Figure 1184. Embedded cross trigger

Block diagram of the Embedded cross trigger system showing connections between Cortex-A35_0, Cortex-A35_1, Cortex-M0+, Cortex-M33, and various debug subsystems (CTI_0, CTI_1) and peripherals (ETR, ETF, TPIU, STM, TSGEN, DWT, ETM) via CTM channels [3:0].

The diagram illustrates the Embedded cross trigger architecture, centered around the CTM channels [3:0].

CTM channels [3:0] facilitate bidirectional trigger distribution across all CTI instances.

Block diagram of the Embedded cross trigger system showing connections between Cortex-A35_0, Cortex-A35_1, Cortex-M0+, Cortex-M33, and various debug subsystems (CTI_0, CTI_1) and peripherals (ETR, ETF, TPIU, STM, TSGEN, DWT, ETM) via CTM channels [3:0].

MSv67401V3

The CTIs allow events from various sources to trigger debug and/or trace activity. For example, a breakpoint reached in one of the processor cores can stop the other processors, or a transition detected on an external trigger input can start code trace.

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

Table 1016. Trace subsystem CTI_0 inputs
-Source signalSource componentComments
0ETRACQCOMPETRETR capture finished. Allows a debug event to be generated when trace acquisition is complete.
1ETRFULLETRETF full flag. Allows a debug event to be generated when the trace buffer is full.
2ETFACQCOMPETFETF capture finished. Allows a debug event to be generated when the trace FIFO is empty.
3ETFFULLETFETF full flag. Allows a debug event to be generated when the trace FIFO is full.
4TRIGOUTSPTESTMThe STM asserts this signal for one clock cycle when a trigger event is detected on a match using STMSPTER.
5TRIGOUTSWSTMThe STM asserts this signal for one clock cycle when a trigger event is generated on writes to a TRIG location in the extended stimulus port registers.
6TRIGOUTHETESTMThe STM asserts this signal for one clock cycle when a trigger event is detected on a match using STMHETER.
7ASYNCOOUTSTMAlignment synchronization signal. The STM asserts this signal for one clock cycle when an ASYNC-VERSION-FREQ sequence is output on the ATB interface, and the ASYNCOOUT signal can be used for cross-triggering.
Table 1017. Trace subsystem CTI_0 outputs
-Output signalDestination componentComments
0ETRTRIGETRETR trigger. Causes various kinds of flush, stops the TMC, and causes additional trigger insertion.
1ETRFLUSHETRETF flush trigger. Causes trace sources to be flushed into destination memory.
2ETFTRIGETFETF enable trigger. Starts filling the trace FIFO.
3ETFFLUSHETFETF flush trigger. Causes trace FIFO to be flushed.
4TPIUFLUSHTPIUTrace port flush trigger. Causes TPIU FIFO to be flushed.
5TPIUTRIGTPIUTrace port enable trigger. Starts trace output on the external trace port.
6--Not used
7--Not used
Table 1018. Trace subsystem CTI_1 inputs
-Source signalSource componentComments
0DBTRIGIGPIOExternal trigger input. Allows an external signal to generate a debug event
1--Not used
2--Not used
3--Not used
4--Not used
5--Not used
6--Not used
7--Not used
Table 1019. Trace subsystem CTI_1 outputs
-Output signalDestination componentComments
0DBTRIGOGPIOExternal I/O trigger output. Allows monitoring of events on external DBTRIGO pin.
1HWEVENTASTMSTM hardware event
2HWEVENTBSTMSTM hardware event
3HLTDBG_reqTSGENHalt timestamp in debug. Freezes TSGEN timestamp counter.
4HLTDBG_restartTSGENHalt timestamp in debug. Unfreezes TSGEN timestamp counter.
5--Not used
6--Not used
7--Not used
Table 1020. Cortex-A35_0/1 CTI inputs
-Source signalSource componentComments
0DBGTRIGGERCortex-A35 CPUPulsed high when the core enters in debug state
1PMUIRQPMUPerformance monitor interrupt with inverted polarity
2--Not used
3--Not used
4EXTOUT0ETMETM external trigger output
5EXTOUT1ETMETM external trigger output
6EXTOUT2ETMETM external trigger output
7EXTOUT3ETMETM external trigger output
Table 1021. Cortex-A35_0/1 CTI outputs
-Output signalDestination componentComments
0EDBGRQCortex-A35 CPUCPU halt request. Puts the CPU in debug mode.
1DBGRESTARTCortex-A35 CPUCPU restart request. The CPU exits debug mode.
2CTIIRQGICCTI interrupt
3--Not used
4EXTIN0ETMETM external input
5EXTIN1ETMETM external input
6EXTIN2ETMETM external input
7EXTIN3ETMETM external input
Table 1022. Cortex-M33 CTI inputs
-Source signalSource componentComments
0HALTEDCortex-M33 CPUPulsed high when the core enters in debug state
1DWTCOMP_0Cortex-M33 DWTDWT comparator output
2DWTCOMP_1Cortex-M33 DWTDWT comparator output
3DWTCOMP_2Cortex-M33 DWTDWT comparator output
4ETMEVENTO_0Cortex-M33 ETMETM event output
5ETMEVENTO_0Cortex-M33 ETMETM event output
6--Not used
7--Not used
Table 1023. Cortex-M33 CTI outputs
-Source signalDestination componentComments
0EDBGRQCortex-M33 CPUCPU halt request. Puts the CPU in debug mode.
1DBGRESTARTCortex-M33 CPUCPU restart request. The CPU exits debug mode.
2IRQ0Cortex-M33 NVICCTI interrupt
3IRQ1Cortex-M33 NVICCTI interrupt
4ETMEVENTIN_0Cortex-M33 ETMETM event input
5ETMEVENTIN_1Cortex-M33 ETMETM event input
6ETMEVENTIN_2Cortex-M33 ETMETM event input
7ETMEVENTIN_3Cortex-M33 ETMETM event input

Table 1024. Cortex-M0+ CTI inputs

-Source signalSource componentComments
0HALTEDCortex-M0+ CPUPulsed high when the core enters in debug state
1--Not used
2--Not used
3--Not used
4--Not used
5--Not used
6--Not used
7--Not used

Table 1025. Cortex-M0+ CTI outputs

-Source signalDestination componentComments
0EDBGRQCortex-M0+ CPUCPU halt request. Puts the CPU in debug mode.
1--Not used
2IRQ0Cortex-M0+ NVICCTI interrupt
3IRQ1Cortex-M0+ NVICCTI interrupt
4--Not used
5--Not used
6--Not used
7DBGRESTARTCortex-M0+ CPUCPU restart request. The CPU exits debug mode.

There are four event channels in a cross trigger matrix, which allows up to four, parallel, bidirectional connections between trigger inputs and outputs on different CTIs.

To connect input number m on CTIx to output number n on CTIy, the input must be connected to an event channel p using the CTIINENm register of CTIx. The same channel p must be connected to the output using the CTIOUTENn register of CTIy.

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

An input can be connected to more than one channel (up to four). An input can then be routed to several outputs. Similarly, an output can be connected to several inputs. Several inputs/outputs can also be connected to the same channel.

Figure 1185. Mapping trigger inputs to outputs Block diagram showing mapping trigger inputs to outputs. It consists of CTI x on the left with Input m, CTM in the middle with Channels p, q, r, s, and CTI y on the right with Output n. In CTI x, CTIINENm = p selects Channel p. In CTI y, CTIOUTENn = p connects Channel p to Output n. Document tracking ID MSv66593V2 is in the lower right corner.
Block diagram showing mapping trigger inputs to outputs. It consists of CTI x on the left with Input m, CTM in the middle with Channels p, q, r, s, and CTI y on the right with Output n. In CTI x, CTIINENm = p selects Channel p. In CTI y, CTIOUTENn = p connects Channel p to Output n. Document tracking ID MSv66593V2 is in the lower right corner.

Example configuration: When either the MCU or the MPU hits a breakpoint, stop the other processor and restart the two processors synchronously.

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

As mentioned in Table 1020 and Table 1022, the DBGTRIGGER signal from Cortex-A35_0 processor core0 is connected to input 0 of the Cortex-A35_0 CTI. The same signal from the Cortex-M33 core is connected to the same input on the Cortex-M33 CTI. The programming of the CTIINEN0 register on each CTI connects these inputs to a CTM channel (for example channel 0).

As mentioned in Table 1021 and Table 1023, the EDBGRQ signals to the CPUs are connected to output 0 of their respective CTIs. The programming of the CTIOUTEN0 register on each CTI connects these outputs to the same CTM channel.

To restart both cores simultaneously the debugger must use the APPPULSE register in either 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 mentioned in Table 1021 and Table 1023, the DBGRESTART signals to the CPUs are connected to output 1 of their respective CTIs. The programming of the CTIOUTEN1 register on each CTI connects these outputs to another CTM channel (for example, channel 1).

The above configuration is illustrated in the figure below.

Figure 1186. Cross trigger configuration example

Diagram showing cross trigger configuration between Cortex-M33 and Cortex-A35_0 processors. It illustrates four scenarios of triggering one processor from another using CTI (Cross Trigger Interface) and CTM (Cross Trigger Module) blocks across two channels. The top two scenarios show Cortex-M33 triggering Cortex-A35_0, while the bottom two show Cortex-A35_0 triggering Cortex-M33. Each scenario involves setting specific CTIINEN and CTIOUTEN register values and using signals like HALTED, DBGTRIGGER, EDBGREQ, and DBGRESTART.

The diagram illustrates four cross-trigger configurations between Cortex-M33 and Cortex-A35_0 processors using CTI (Cross Trigger Interface) and CTM (Cross Trigger Module) blocks.

MSv66592V2

Diagram showing cross trigger configuration between Cortex-M33 and Cortex-A35_0 processors. It illustrates four scenarios of triggering one processor from another using CTI (Cross Trigger Interface) and CTM (Cross Trigger Module) blocks across two channels. The top two scenarios show Cortex-M33 triggering Cortex-A35_0, while the bottom two show Cortex-A35_0 triggering Cortex-M33. Each scenario involves setting specific CTIINEN and CTIOUTEN register values and using signals like HALTED, DBGTRIGGER, EDBGREQ, and DBGRESTART.

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

  1. 1. Clear debug request by writing 0x01, then 0x00, to CTIINTACK register in each CTI.
  2. 2. Cause a pulse on channel 1 by writing 0x02 to APPPULSE 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 APPPULSE register in either CTI, which generates a pulse on channel 0.

Cross trigger interface registers

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

For more information on the CTI CoreSight component, refer to the Arm CoreSight SoC-400 technical reference manual [2].

97.10.4 Trace funnel (CSTF)

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

The slave ports are connected as follows:

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

The arbitration works as follows:

  1. 1. The arbiter selects the slave port with the highest assigned priority that has data valid.
  2. 2. Up to min_hold_time transfers are passed from the selected slave to the master port, where min_hold_time is programmable in the CONTROL register.
  3. 3. A new arbitration is then performed.

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

For more information on the CSTF CoreSight component, refer to the Arm CoreSight SoC-400 technical reference manual [2].

97.10.5 Embedded trace FIFO (ETF)

The ETF is a 64-Kbyte memory which captures trace data from five trace sources:

The ETF is a configuration of the CoreSight trace memory controller component. It can be used in the following modes (selected in the mode register):

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

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

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

This mode allows the trace to be transferred by DMA into the system memory, or to a high-speed interface (such as SPI, USB), or even monitored by software running on one of the cores.

Note: Unlike the hardware FIFO mode, this mode is invasive, since it uses system resources which are shared by the processors.

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

In this mode, the ETF stores the trace data on-chip, so the trace log size is limited to the ETF SRAM one (64 Kbytes in this case). Being a circular buffer, if the FIFO becomes full, incoming trace data overwrites the oldest stored data, which are lost. Therefore the contents of the trace buffer represent the most recent activity of the processor(s), up to the point when the buffer was stopped, rather than all the activity since the trace was started.

The possible methods to read out the buffer contents once the trace has stopped are details below:

For more information on the trace memory controller CoreSight component, refer to the Arm CoreSight Trace Memory Controller technical reference manual [3].

97.10.6 Embedded trace router (ETR)

The ETR allows trace data from the Arm trace bus to be sent to external memory, using a DMA scatter/gather interface over an AXI bus.

The ETR also supports programmable burst options for an optimum efficiency of the system interconnect and memory controller. The trace capture can be intrusive to system performance, because less memory is available to the rest of the system, and because the bandwidth must be shared between the ETR and regular system functions. However, the depth of trace capture available is likely to be much larger than available when storing in the

ETF and a trace port is not required. Reading of the AXI based trace buffer can either be done directly over the AXI from a normal bus master or through the ETR as if it is an ETB.

The ETR is a configuration of the CoreSight trace memory controller component. It is configured at design time, and some registers accessible through the APB interface allows some parameters to be modified. In particular, the following:

A low-power interface is implemented in order to allow the debugger to reset the ETR without provoking protocol violation on the global AXI bus interconnect. The LPI interface is controlled from a configuration register located in the Cortex-A35 system configuration.

From a security perspective, the ETR is associated with a RIMU that controls its master access to the interconnect (see Section 9: Resource isolation framework security controller (RIFSC) for more details on the RIMU).

97.10.7 Trace port interface unit (TPIU)

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

For more information on TPIU CoreSight component, refer to the Arm CoreSight SoC-400 technical reference manual [2].

97.10.8 Replicator

This Arm CoreSight component replicates an Arm trace bus input to two identical Arm trace bus outputs. The replicator does not accept more data from the trace source until all trace sinks have accepted this data. This reduces the throughput of the replicator to match that of the slowest trace sink. To prevent this, the APB interface is implemented on this replicator, in order to disable paths. This gives also some filtering capabilities (for example some trace off-chip, some to the ETR).

Table 1026. Replicator allocation

ATB portTrace sink
#0ETR
#1TPIU

97.10.9 Serial-wire output (SWO)

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

Compared to the TPIU, the SWO contains:

The SWO output supports Manchester encoded and UART NRZ formats.

For more information about the SWO CoreSight component, refer to the Arm CoreSight Components technical reference manual [4].

97.10.10 System trace macrocell (STM)

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

Figure 1187. System trace macrocell

Block diagram of the System Trace Macrocell (STM) showing its internal components and data flow.

The diagram illustrates the System Trace Macrocell (STM) architecture. It is a large rectangular block containing several internal components and external interfaces. On the left, five inputs are shown: 'Hardware events', 'AXI', 'Timestamps', 'APB', and 'Authentication'. 'Hardware events' and 'AXI' feed into an 'Arbiter' block. The 'Arbiter' output goes to a 'Packet generation' block. 'Timestamps' also feed into the 'Packet generation' block. Below the 'Arbiter' and 'Packet generation' blocks is a 'Registers' block, which receives input from the 'APB' interface. The output of the 'Packet generation' block goes to a 'FIFO' block. Finally, the 'FIFO' block outputs to the 'ATB' trace bus on the right. A small label 'MSv67402V2' is located in the bottom right corner of the STM block.

Block diagram of the System Trace Macrocell (STM) showing its internal components and data flow.

The STM is configured with the following values:

The various AXI masters can generate trace by writing to the extended STM stimulus ports via its AXI slave port, which is mapped in a 4-Mbyte window of address space

(see Section 2.4: Memory organization). A 256-byte extended stimulus port comprises 16 x 64-bit locations or registers. Writes to different locations generate different types of trace packets, as shown in the table below.

The base address for stimulus port n is the STM base address + n x 256. A master can use any number of the 16384 available stimulus ports mapped in the 4-Mbyte window.

Table 1027. STM extended stimulus port memory map

Address offsetNameDescription
0x00G_DMTSData, marked with timestamp, guaranteed
0x08G_DMData, marked, guaranteed
0x10G_DTSData, with timestamp, guaranteed
0x18G_DData, guaranteed
0x20-0x58-Reserved
0x60G_FLAGTSFlag with timestamp, guaranteed
0x68G_FLAGFlag, guaranteed
0x70G_TRIGTSTrigger with timestamp, guaranteed
0x78G_TRIGTrigger, guaranteed
0x80I_DMTSData, marked with timestamp, invariant timing
0x88I_DMData, marked, invariant timing
0x90I_DTSData, with timestamp, invariant timing
0x98I_DData, invariant timing
0xA0-0xD8-Reserved
0xE0I_FLAGTSFlag with timestamp, invariant timing
0xE8I_FLAGFlag, invariant timing
0xF0I_TRIGTSTrigger with timestamp, invariant timing
0xF8I_TRIGTrigger, invariant timing

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

The ID is mapped as follows:

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

Table 1028. STM trace packet ID mapping to AXI masters

MasterSecure access IDNon-secure access ID
Cortex-A35 processor core00x000x40
Cortex-A35 processor core10x010x41
Table 1028. STM trace packet ID mapping to AXI masters (continued)
MasterSecure access IDNon-secure access ID
Cortex-M330x020x42
HPDMA10x030x43
HPDMA20x040x44
HPDMA30x050x45
DAP-AXI-AP0x060x46

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

As shown in Table 1009, the STM is subject to the authentication signals for Cortex-A35 and Cortex-M33. This means that only a processor that has the rights to produce trace (established from BSEC_DENR) can use the STM.

For more information on the STM, refer to the Arm CoreSight STM technical reference manual [9].

Table 1029. Hardware event mapping 0 to 3
BankEventEXTMUX(7:0) = 0EXTMUX(7:0) = 1EXTMUX(7:0) = 2EXTMUX(7:0) = 3
HEBS = 00HPDMA1_ch0_cpu1_irqHPDMA2_ch0_cpu1_irqHPDMA3_ch0_cpu1_irqLPDMA1_ch0_cpu1_irq
1HPDMA1_ch1_cpu1_irqHPDMA2_ch1_cpu1_irqHPDMA3_ch1_cpu1_irqLPDMA1_ch1_cpu1_irq
2HPDMA1_ch2_cpu1_irqHPDMA2_ch2_cpu1_irqHPDMA3_ch2_cpu1_irqLPDMA1_ch2_cpu1_irq
3HPDMA1_ch3_cpu1_irqHPDMA2_ch3_cpu1_irqHPDMA3_ch3_cpu1_irqLPDMA1_ch3_cpu1_irq
4HPDMA1_ch4_cpu1_irqHPDMA2_ch4_cpu1_irqHPDMA3_ch4_cpu1_irqLPDMA1_ch0_cpu2_irq
5HPDMA1_ch5_cpu1_irqHPDMA2_ch5_cpu1_irqHPDMA3_ch5_cpu1_irqLPDMA1_ch1_cpu2_irq
6HPDMA1_ch6_cpu1_irqHPDMA2_ch6_cpu1_irqHPDMA3_ch6_cpu1_irqLPDMA1_ch2_cpu2_irq
7HPDMA1_ch7_cpu1_irqHPDMA2_ch7_cpu1_irqHPDMA3_ch7_cpu1_irqLPDMA1_ch3_cpu2_irq
8HPDMA1_ch8_cpu1_irqHPDMA2_ch8_cpu1_irqHPDMA3_ch8_cpu1_irqLPDMA1_ch0_cpu3_irq
9HPDMA1_ch9_cpu1_irqHPDMA2_ch9_cpu1_irqHPDMA3_ch9_cpu1_irqLPDMA1_ch1_cpu3_irq
10HPDMA1_ch10_cpu1_irqHPDMA2_ch10_cpu1_irqHPDMA3_ch10_cpu1_irqLPDMA1_ch2_cpu3_irq
11HPDMA1_ch11_cpu1_irqHPDMA2_ch11_cpu1_irqHPDMA3_ch11_cpu1_irqLPDMA1_ch3_cpu3_irq
12HPDMA1_ch12_cpu1_irqHPDMA2_ch12_cpu1_irqHPDMA3_ch12_cpu1_irq-
13HPDMA1_ch13_cpu1_irqHPDMA2_ch13_cpu1_irqHPDMA3_ch13_cpu1_irqLPTIMER1_IT_irq
14HPDMA1_ch14_cpu1_irqHPDMA2_ch14_cpu1_irqHPDMA3_ch14_cpu1_irqLPTIMER2_IT_irq

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

BankEventEXTMUX(7:0) = 0EXTMUX(7:0) = 1EXTMUX(7:0) = 2EXTMUX(7:0) = 3
HEBS = 015HPDMA1_ch15_cpu1_irqHPDMA2_ch15_cpu1_irqHPDMA3_ch15_cpu1_irqLPTIMER3_IT_irq
16HPDMA1_ch0_cpu2_irqHPDMA2_ch0_cpu2_irqHPDMA3_ch0_cpu2_irqLPTIMER4_IT_irq
17HPDMA1_ch1_cpu2_irqHPDMA2_ch1_cpu2_irqHPDMA3_ch1_cpu2_irqLPTIMER5_IT_irq
18HPDMA1_ch2_cpu2_irqHPDMA2_ch2_cpu2_irqHPDMA3_ch2_cpu2_irq-
19HPDMA1_ch3_cpu2_irqHPDMA2_ch3_cpu2_irqHPDMA3_ch3_cpu2_irqSPI1_irq
20HPDMA1_ch4_cpu2_irqHPDMA2_ch4_cpu2_irqHPDMA3_ch4_cpu2_irqSPI2_irq
21HPDMA1_ch5_cpu2_irqHPDMA2_ch5_cpu2_irqHPDMA3_ch5_cpu2_irqSPI3_irq
22HPDMA1_ch6_cpu2_irqHPDMA2_ch6_cpu2_irqHPDMA3_ch6_cpu2_irqSPI4_irq
23HPDMA1_ch7_cpu2_irqHPDMA2_ch7_cpu2_irqHPDMA3_ch7_cpu2_irqSPI5_irq
24HPDMA1_ch8_cpu2_irqHPDMA2_ch8_cpu2_irqHPDMA3_ch8_cpu2_irqSPI6_irq
25HPDMA1_ch9_cpu2_irqHPDMA2_ch9_cpu2_irqHPDMA3_ch9_cpu2_irqSPI7_irq
26HPDMA1_ch10_cpu2_irqHPDMA2_ch10_cpu2_irqHPDMA3_ch10_cpu2_irqSPI8_irq
27HPDMA1_ch11_cpu2_irqHPDMA2_ch11_cpu2_irqHPDMA3_ch11_cpu2_irq-
28HPDMA1_ch12_cpu2_irqHPDMA2_ch12_cpu2_irqHPDMA3_ch12_cpu2_irqSAI1_irq
29HPDMA1_ch13_cpu2_irqHPDMA2_ch13_cpu2_irqHPDMA3_ch13_cpu2_irqSAI2_irq
30HPDMA1_ch14_cpu2_irqHPDMA2_ch14_cpu2_irqHPDMA3_ch14_cpu2_irqSAI3_irq
31HPDMA1_ch15_cpu2_irqHPDMA2_ch15_cpu2_irqHPDMA3_ch15_cpu2_irqSAI4_irq
HEBS = 10EXTI2_EXTI0_irqPWRCTL_wkup1_irqTIM1_brk_irqI2C1_glb_irq
1EXTI2_EXTI1_irqPWRCTL_wkup2_irqTIM1_cc_irqI2C2_glb_irq
2EXTI2_EXTI2_irqPWRCTL_wkup3_irqTIM1_trg_irqI2C3_glb_irq
3EXTI2_EXTI3_irqPWRCTL_wkup4_irqTIM1_upd_irqI2C4_glb_irq
4EXTI2_EXTI4_irqPWRCTL_wkup5_irqTIM2_irqI2C5_glb_irq
5EXTI2_EXTI5_irqPWRCTL_wkup6_irqTIM3_irqI2C6_glb_irq
6EXTI2_EXTI6_irq-TIM4_irqI2C7_glb_irq
7EXTI2_EXTI7_irqADC1_irqTIM5_gbl_irqI2C8_glb_irq
8EXTI2_EXTI8_irqADC2_irqTIM6_gbl_irqI3C1_glb_irq
9EXTI2_EXTI9_irqADC3_irqTIM7_gbl_irqI3C2_glb_irq
10EXTI2_EXTI10_irq-TIM8_brk_irqI3C3_glb_irq
11EXTI2_EXTI11_irqFMC_glb_irqTIM8_cc_irqI3C4_glb_irq
12EXTI2_EXTI12_irqOTFDEC1_irqTIM8_trg_irq-
13EXTI2_EXTI13_irqOTFDEC2_irqTIM8_upd_irqSPDIF_RX_irq
14EXTI2_EXTI14_irqOCTOSPI2_irqTIM10_gbl_irqSDMMC1_irq
15EXTI2_EXTI15_irqOCTOSPI1_irqTIM11_gbl_irqSDMMC2_irq
16EXTI1_EXTI0_irq-TIM12_gbl_irqSDMMC3_irq

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

BankEventEXTMUX(7:0) = 0EXTMUX(7:0) = 1EXTMUX(7:0) = 2EXTMUX(7:0) = 3
HEBS = 117EXTI1_EXTI1_irqFDCAN_cal_irqTIM13_gbl_irqHSEM1_IT0_irq
18EXTI1_EXTI2_irqFDCAN1_intr0_irqTIM14_gbl_irqHSEM1_sIT0_irq
19EXTI1_EXTI3_irqFDCAN1_intr1_irqTIM15_gbl_irqHSEM1_sIT1_irq
20EXTI1_EXTI4_irqFDCAN2_intr0_irqTIM16_gbl_irqHSEM1_IT1_irq
21EXTI1_EXTI5_irqFDCAN2_intr1_irqTIM17_gbl_irqHSEM1_IT3_irq
22EXTI1_EXTI6_irqFDCAN3_intr0_irqTIM20_brk_irq-
23EXTI1_EXTI7_irqFDCAN3_intr1_irqTIM20_cc_irqEXTI_wwdg2_wkup
24EXTI1_EXTI8_irq-TIM20_trg_irqEXTI_wwdg1_wkup
25EXTI1_EXTI9_irqFPU_irqTIM20_upd_irqIWDG1_ew_irq
26EXTI1_EXTI10_irqGPU_IT_irq-IWDG2_ew_irq
27EXTI1_EXTI11_irq--IWDG3_ew_irq
28EXTI1_EXTI12_irqLTDC_cpu1_I01_irq-IWDG4_ew_irq
29EXTI1_EXTI13_irqLTDC_cpu1_I01_err_irq-IWDG5_ew_irq
30EXTI1_EXTI14_irqLTDC_cpu1_I2_irq-WWDG1_ew_irq
31EXTI1_EXTI15_irqLTDC_cpu1_I2_err_irq-WWDG2_ew_irq

Table 1030. Hardware event mapping 4 to 7

BankEventEXTMUX(7:0) = 4EXTMUX(7:0) = 5EXTMUX(7:0) = 6EXTMUX(7:0) = 7
HEBS = 00HWEVENTA -LTDC_cpu2_I01_irqMDF1_FLT0_irqUSART1_irq
1HWEVENTA -LTDC_cpu2_I01_err_irqMDF1_FLT1_irqUSART2_irq
2HWEVENTB -LTDC_cpu2_I2_irqMDF1_FLT2_irqUSART3_irq
3HWEVENTB -LTDC_cpu2_I2_err_irqMDF1_FLT3_irqUART4_irq
4--MDF1_FLT4_irqUART5_irq
5cpu2_sysreset_irqDCMIPP_glb_irqMDF1_FLT5_irqUSART6_irq
6VDDcpu_vd_irqDSIhost_com_cpu1_irqMDF1_FLT6_irqUART7_irq
7VDDcore_vd_irqDSIhost_com_cpu2_irqMDF1_FLT7_irqUART8_irq
8TEMP_irq-ADF1_irqUART9_irq
9RETRAMcrc_err_irqCSIhost_irq-LPUART1_irq
10-CCI_irqIPCC1_rx0_cpu1_irq-
11CRYP1_irq-IPCC1_rx0_cpu1_s_irqUSART1_RX_sreq
12CRYP2_irqETH1_lpi_irqIPCC1_tx0_cpu1_irqUSART1_TX_sreq
13SAES_irqETH1_pmt_irqIPCC1_tx0_cpu1_s_irqUSART2_RX_sreq
14HASH_irqETH1_sbd_irqIPCC2_rx1_cpu1_irqUSART2_TX_sreq

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

BankEventEXTMUX(7:0) = 4EXTMUX(7:0) = 5EXTMUX(7:0) = 6EXTMUX(7:0) = 7
HEBS = 015PKA_irqETH2_lpi_irqIPCC2_rx1_cpu1_s_irqUSART3_RX_sreq
16RNG_irqETH2_pmt_irqIPCC2_tx1_cpu1_irqUSART3_TX_sreq
17TAMP_cpu1_s_wkupETH2_sbd_irqIPCC2_tx1_cpu1_s_irqUART4_RX_sreq
18TAMP_cpu1_wkup-IPCC1_rx1_cpu2_irqUART4_TX_sreq
19TAMP_cpu2_s_wkupETHSW_fsc_irqIPCC1_rx1_cpu2_s_irqUART5_RX_sreq
20TAMP_cpu2_wkupETHSW_msg_buf_irqIPCC1_tx1_cpu2_irqUART5_TX_sreq
21TAMP_cpu3_wkupETHSW_combined_irqIPCC1_tx1_cpu2_s_irqUSART6_RX_sreq
22--IPCC2_rx1_cpu2_irqUSART6_TX_sreq
23IAC_cpu1_irqvenc_gbl_irqIPCC2_rx1_cpu2_s_irqUART7_RX_sreq
24IAC_cpu2_irqvdec_gbl_irqIPCC2_tx1_cpu2_irqUART7_TX_sreq
25--IPCC2_tx1_cpu2_s_irqUART8_RX_sreq
26RTC_cpu1_wkuprcc_hsifmon_cpu1_irqIPCC2_rx0_cpu3_irqUART8_TX_sreq
27RTC_cpu1_s_wkuprcc_hsifmon_cpu2_irqIPCC2_tx0_cpu3_irqUART9_RX_sreq
28RTC_cpu2_wkup-ddrphy_irqUART9_TX_sreq
29RTC_cpu2_s_wkupTIM8_CH1_sreqddrperfm_irqLPUART1_RX_sreq
30-TIM8_CH2_srequmctl2_irqLPUART1_TX_sreq
31----
HEBS = 10TIM1_CH1_sreqTIM8_CH3_sreqdfi_error_irqSPI1_RX_sreq
1TIM1_CH2_sreqTIM8_CH4_sreqSERF_irqSPI1_TX_sreq
2TIM1_CH3_sreqTIM8_UP_sreq-SPI2_RX_sreq
3TIM1_CH4_sreqTIM8_TRIG_sreqI2C1_EVC_sreqSPI2_TX_sreq
4TIM1_TRIG_sreqTIM8_COM_sreqI2C2_EVC_sreqSPI3_RX_sreq
5TIM1_UP_sreqTIM15_CH1_sreqI2C3_EVC_sreqSPI3_TX_sreq
6TIM1_COM_sreqTIM15_UP_sreqI2C4_EVC_sreqSPI4_RX_sreq
7TIM2_CH1_sreqTIM15_TRIG_sreqI2C5_EVC_sreqSPI4_TX_sreq
8TIM2_CH2_sreqTIM15_COM_sreqI2C6_EVC_sreqSPI5_RX_sreq
9TIM2_CH3_sreqTIM16_CH1_sreqI2C7_EVC_sreqSPI5_TX_sreq
10TIM2_CH4_sreqTIM16_UP_sreqI2C8_EVC_sreqSPI6_RX_sreq
11TIM2_UP_sreqTIM17_CH1_sreqI2C1_RX_sreqSPI6_TX_sreq
12TIM3_CH1_sreqTIM17_UP_sreqI2C1_TX_sreqSPI7_RX_sreq
13TIM3_CH2_sreqTIM20_CH1_sreqI2C2_RX_sreqSPI7_TX_sreq
14TIM3_CH3_sreqTIM20_CH2_sreqI2C2_TX_sreqSPI8_RX_sreq
15TIM3_CH4_sreqTIM20_CH3_sreqI2C3_RX_sreqSPI8_TX_sreq
16TIM3_UP_sreqTIM20_CH4_sreqI2C3_TX_sreq-

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

BankEventEXTMUX(7:0) = 4EXTMUX(7:0) = 5EXTMUX(7:0) = 6EXTMUX(7:0) = 7
HEBS = 117TIM3_TRIG_sreqTIM20_UP_sreqI2C4_RX_sreqSAI1_A_sreq
18TIM4_CH1_sreqTIM20_TRIG_sreqI2C4_TX_sreqSAI1_B_sreq
19TIM4_CH2_sreqTIM20_COM_sreqI2C5_RX_sreqSAI2_A_sreq
20TIM4_CH3_sreqLPTIMER1_IC1_sreqI2C5_TX_sreqSAI2_B_sreq
21TIM4_CH4_sreqLPTIMER1_IC2_sreqI2C6_RX_sreqSAI3_A_sreq
22TIM4_UP_sreqLPTIMER1_UE_sreqI2C6_TX_sreqSAI3_B_sreq
23TIM5_CH1_sreqLPTIMER2_IC1_sreqI2C7_RX_sreqSAI4_A_sreq
24TIM5_CH2_sreqLPTIMER2_IC2_sreqI2C7_TX_sreqSAI4_B_sreq
25TIM5_CH3_sreqLPTIMER2_UE_sreqI2C8_RX_sreq-
26TIM5_CH4_sreqLPTIMER3_IC1_sreqI2C8_TX_sreqDCMI_sreq
27TIM5_UP_sreqLPTIMER3_UE_sreq--
28TIM5_TRIG_sreqLPTIMER4_IC1_sreqADC1_sreqUSBPD_TX_sreq
29TIM6_UP_sreqLPTIMER4_UE_sreqADC2_sreqUSBPD_RX_sreq
30TIM7_UP_sreqLPTIMER5_IC1_sreqADC3_sreq-
31-LPTIMER5_UE_sreq--
Key: sreq = DMA request; irq = interrupt request; - = active going; \(\bar{\phantom{x}}\) = inactive going

Table 1031. Hardware event mapping 8 to 9

BankEventEXTMUX(7:0) = 8EXTMUX(7:0) = 9BankEventEXTMUX(7:0) = 8
HEBS = 00FMC_TXRX_sreqEXTI_iwdg1_wkupHEBS = 10SYS_DS_EXIT
1FMC_BCH_sreqEXTI_iwdg2_wkup1CPU1_DS_EXIT
2OCTOSPI2_sreqEXTI_iwdg3_wkup2CPU2_DS_EXIT
3OCTOSPI1_sreqEXTI_iwdg4_wkup3PWRDS_CPU1
4-EXTI_iwdg5_wkup4PWRDS_CPU2
5SPDIF_RX_DT_sreqEXTI_pwr_pvd_wkup5PWRDS_SYS
6SPDIF_RX_CS_sreqEXTI_cpu1_sev_irq6C1_STBY_EXIT
7-EXTI_cpu2_sev_irq7C2_STBY_EXIT
8MDF1_FLT0_sreqEXTI_cpu3_sev_irq8AWU_WAKE_CPU1_V33
9MDF1_FLT1_sreq-9AWU_WAKE_CPU2_V33
10MDF1_FLT2_sreqRCC_cpu1_wkup_irq10PWRWAKE_CPU1
11MDF1_FLT3_sreqRCC_cpu2_wkup_irq11PWRWAKE_CPU2
12MDF1_FLT4_sreqRCC_cpu1_irq12PWRWAKE_SYS
13MDF1_FLT5_sreqRCC_cpu2_irq13-

Table 1031. Hardware event mapping 8 to 9 (continued)

BankEventEXTMUX(7:0) = 8EXTMUX(7:0) = 9BankEventEXTMUX(7:0) = 8
HEBS = 014MDF1_FLT6_sreqRAMCFG_irqHEBS = 114cpu1_c0_standbywfi
15MDF1_FLT7_sreq-15cpu1_c1_standbywfi
16ADF1_FLT0_sreqpcie_cfg_aer_rc_err_int16cpu1_standbywfi_l2
17-pcie_cfg_sys_err_rc_int17cpu2_sleeping
18CRYP1_IN_sreqpcie_cfg_link_auto_bw_msi18cpu2_sleepdeep
19CRYP1_OUT_sreqpcie_cfg_bw_mgt_int19cpu3_sleeping
20CRYP2_IN_sreqpcie_cfg_link_auto_bw_int20cpu3_sleepdeep
21CRYP2_OUT_sreqpcie_cfg_aer_rc_err_msi21-
22HASH2_IN_sreqpcie_cfg_pme_int22exti_pwr_pvm_wkup
23SAES_IN_sreqpcie_cfg_pme_msi23exti_usbh_wkup
24SAES_OUT_sreqpcie_cfg_bw_mgt_msi24exti_usb3dr_wkup
25-pcie_1_link_rst_int25exti_combophy_wkup
26USBDPD_gbl_irqpcie_1_ptm_responder_rdy26exti_usbtc_vbus_detect
27USBH_ohci_irqpcie_1_ptm_clock_updated27exti_usbtc_vsafe5V
28USBH_ehci_irqpcie_INTA28exti_vddgpu_vd_irq
29USB3_bc_irqpcie_INTB29-
30USB3_host_legacy_irqpcie_INTC30-
31-pcie_INTD31-

STM registers

The STM is configured and controlled by registers mapped on the debug APB accessible either from the debugger through JTAG or through the interconnect for self-hosted debug (see Section 2.4: Memory organization).

97.10.11 Microcontroller debug unit (DBGMCU)

The DBGMCU is a component containing a number of registers which control the power and clock behavior in debug mode. It allows the debugger or debug software for the following tasks:

Low-power mode emulation in debug

When entering a low-power mode, the clock to the processor, the system clock, or the core power supply (only in Standby), can be switched off. This prevents any debug accesses to the unclocked domains.

To simplify debugging of applications which use these power saving features, the clock and power can be maintained or not according to the setting of DBG_STANDBY, DBG_STOP, and DBG_SLEEP in DBGMCU_CR.

There are no restrictions from a security perspective to access these control bits as the overall system behavior is not modified, apart that the power and clocks remain on. The application software does not need to be modified.

If the system enters one of the power saving modes, and the corresponding register bit is set, the system state in the EXTI is not affected: the system enters and exits the low-power mode as usual. The clock and power remain active, allowing the debugger full access.

Note: If the TPIU is used, loss of trace data can occur if the system enters Standby and switches off the core power before the TPIU FIFO is empty. The software can check the FIFO state to avoid this. If DBG_STANDBY bit is set while using the trace port, the trace continues to flush during Standby, and no specific software action is required.

Peripheral clock “freeze” in debug

When one or more processors are halted in debug state, by default the peripherals continue to operate. The system state, at the moment the breakpoint was taken, is overwritten and can not be recovered. Some peripherals require software intervention on a regular basis, without which they may time out and generate a reset (watchdogs for example).

By setting the corresponding bits in DBGMCU peripheral freeze registers, some peripheral clocks can be stopped automatically as soon as one or more processors enter debug state. The clocks remain stopped until the processor is restarted.

The following peripherals support this feature:

There is one CPU specific register for each peripheral to control whether the peripheral is sensitive to Cortex-A35, Cortex-M33, or Cortex-M0+ debug states.

In STM32MP23/25xx, peripherals can be dedicated to one specific processor thanks to a RISU (resource isolation slave unit) for peripherals (see Section 9: Resource isolation framework security controller (RIFSC) for more details on the RISUP). DBGMCU register bits inherit from these RISUP. As a consequence, accesses to the register bits are filtered accordingly to the processor which has been associated to the peripheral.

As the DBGMCU can not be accessed from the Cortex-M0+, the Cortex-M33 has the delegation to program the freeze registers associated to the Cortex-M0+.

The access to the registers depends also on the secure state of the processor as follows:

The status (secure or non-secure) and the allocation of a peripheral or a DMA channel, are signaled to the DBGMCU by the peripheral. To ensure that these settings are always taken into account, the debugger can only access registers through the DAP AXI-AP. The access then goes through the device interconnect, and must satisfy the same rules as a processor with respect to secure and allocation schemes.

Cortex-M33 and Cortex-M0+ debug states correspond to a high level on their respective HALTED signal. The Cortex-A35 is an OR of the DBGACK signal from each core. If either Cortex-A35 processor core enters debug, and the corresponding bit in the peripheral freeze register is set, the peripheral clock is then frozen.

The IWDG1 (secure watchdog for Cortex-A35) is an exception to the above. When secure debugging is disabled (SPIDEN = 0), any Cortex-A35 processor core which is in secure state does not stop in debug mode until it exits secure state. For security reasons, when SPIDEN = 0, the IWDG1 does not stop unless both Cortex-A35 processor core DBGACK signals are active: both processor cores have stopped, and are then in non-secure state.

When secure debugging is enabled (SPIDEN = 1), the behavior is determined by WDFZCTL in DBGMCU_CRA35 register. The IWDG1 behavior is summarized in the table below.

Table 1032. IWDG1 behavior in debug

InputsIWDG1 frozen?
IWDG1(1)SPIDENWDFZCTL(2)DEBUGACK
(Cortex-A35 core0)
DEBUGACK
(Cortex-A35 core1)
0XXXXNo
10X0XNo
10XX0No
10X11Yes
11000No
1101XYes
110X1Yes
1110XNo
111X0No
11111Yes

1. Bit in DBGMCU_APB3FZ1 register.

2. Bit in DBGMCU_CRA35 register.

Processor debug unit registers

DBGMCU registers are not reset by a system reset, only by a power on reset. A few of them (DBGMCU_IDC and DBGMCU_CR) are accessible to the debugger via the debug APB bus at base address 0xE008 1000. The whole register set is accessible by processors and debugger (through DAP AXI-AP) at base address 0x5A01 0000 (to the extent they satisfy the secure/allocation conditions as explained earlier).

DBGMCU identity code register (DBGMCU_IDC)

Address offset: 0x000

Reset value: 0x2000 6505

31302928272625242322212019181716
MAJOR_REV_ID[15:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.DEV_ID[11:0]
rrrrrrrrrrrr
Bits 31:16 MAJOR_REV_ID[15:0] : Revision

Example 0x2000 = revision 2

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

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

0x0505: STM32MP23/25xx

DBGMCU configuration register (DBGMCU_CR)

Address offset: 0x004

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.Res.Res.Res.DBG_S
WD_S
EL_N
Res.DBG_S
TANDB
Y
DBG_S
TOP
DBG_S
LEEP
rwrwrwrs

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

Bit 4 DBG_SWD_SEL_N : Cortex-M0+ debug interface selectionSee Section 97.13.1: Single-wire debug interface .

0: SWD used to access the Cortex-M0+

1: Main debug interface (SWJ-DP) used to access the Cortex-M0+

Bit 3 Reserved, must be kept at reset value.

Bit 2 DBG_STANDBY : Debug enable in Standby mode0: Normal operation. All clocks are disabled and \(V_{DDCORE}\) (and \(V_{DDCPU}\) if selected) domains are powered down automatically in Standby mode.1: Automatic clock stop/power down disabled. All active clocks and oscillators continue to run during Standby, and \(V_{DDCORE}\) as well as \(V_{DDCPU}\) domain supplies are maintained, allowing full debug capability. Note: On exit from Standby mode, a system reset is performed.

Bit 1 DBG_STOP: Debug enable in Stop mode

0: Normal operation. All clocks are disabled automatically in Stop mode.

1: Automatic clock stop disabled. All active clocks and oscillators continue to run during Stop mode, allowing full debug capability.

Note: On exit from Stop mode, the clock settings are set to the Stop mode exit state.

Bit 0 DBG_SLEEP: Debug enable in Sleep mode

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

1: Automatic clock stop disabled. The processor clock continues to run, allowing full debug capability.

DBGMCU configuration register CPU1 (DBGMCU_CRA35)

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.Res.Res.Res.Res.Res.Res.DBG_STGEN_STOPWDFZCTL
rwrs

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

Bit 1 DBG_STGEN_STOP: STGEN behavior when debug is enabled

This bit determines the behavior of the time generator used for the operating system timer in debug mode.

0: Normal operation. OS timer continues to run.

1: Freeze OS timer when either Cortex-A35 processor core halts in debug mode.

Bit 0 WDFZCTL: IWDG1 behavior when secure debug is enabled

This bit determines the behavior of the IWDG1 in debug mode when SPIDEN = 1 (see Table 1032 for more details).

0: OR. Freeze IWDG1 when either Cortex-A35 processor core halts in debug mode.

1: AND. Freeze IWDG1 only when both Cortex-A35 processor cores halt in debug mode.

DBGMCU AHB2 - lowest part - peripheral freeze register CPU1
(DBGMCU_AHB2LFZ1)

Address offset: 0x010

Reset value: 0x0000 0000

31302928272625242322212019181716
DBG_H
PDMA2
_CH15
_STOP
DBG_H
PDMA2
_CH14
_STOP
DBG_H
PDMA2
_CH13
_STOP
DBG_H
PDMA2
_CH12
_STOP
DBG_H
PDMA2
_CH11
_STOP
DBG_H
PDMA2
_CH10
_STOP
DBG_H
PDMA2
_CH9
_STOP
DBG_H
PDMA2
_CH8
_STOP
DBG_H
PDMA2
_CH7
_STOP
DBG_H
PDMA2
_CH6
_STOP
DBG_H
PDMA2
_CH5
_STOP
DBG_H
PDMA2
_CH4
_STOP
DBG_H
PDMA2
_CH3
_STOP
DBG_H
PDMA2
_CH2
_STOP
DBG_H
PDMA2
_CH1
_STOP
DBG_H
PDMA2
_CH0
_STOP
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DBG_H
PDMA1
_CH15
_STOP
DBG_H
PDMA1
_CH14
_STOP
DBG_H
PDMA1
_CH13
_STOP
DBG_H
PDMA1
_CH12
_STOP
DBG_H
PDMA1
_CH11
_STOP
DBG_H
PDMA1
_CH10
_STOP
DBG_H
PDMA1
_CH9
_STOP
DBG_H
PDMA1
_CH8
_STOP
DBG_H
PDMA1
_CH7
_STOP
DBG_H
PDMA1
_CH6
_STOP
DBG_H
PDMA1
_CH5
_STOP
DBG_H
PDMA1
_CH4
_STOP
DBG_H
PDMA1
_CH3
_STOP
DBG_H
PDMA1
_CH2
_STOP
DBG_H
PDMA1
_CH1
_STOP
DBG_H
PDMA1
_CH0
_STOP
rwrwrwrwrwrwrwrsrwrwrwrwrwrwrwrs

Bits 31:16 DBG_HPDMA2_CHn_STOP: HPDMA2_CHn suspend in debug (n = 15 to 0)

0: Normal operation. HPDMA2_CHn continues to operate while Cortex-A35 is in debug mode.

1: Stop in debug. HPDMA2_CHn is suspended while Cortex-A35 is in debug mode.

Bits 15:0 DBG_HPDMA1_CHn_STOP: HPDMA1_CHn suspend in debug (n = 15 to 0)

0: Normal operation. HPDMA1_CHn continues to operate while Cortex-A35 is in debug mode.

1: Stop in debug. HPDMA1_CHn is suspended while Cortex-A35 is in debug mode.

DBGMCU AHB2 - highest part- peripheral freeze register CPU1
(DBGMCU_AHB2HFZ1)

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
DBG_H
PDMA3
_CH15
_STOP
DBG_H
PDMA3
_CH14
_STOP
DBG_H
PDMA3
_CH13
_STOP
DBG_H
PDMA3
_CH12
_STOP
DBG_H
PDMA3
_CH11
_STOP
DBG_H
PDMA3
_CH10
_STOP
DBG_H
PDMA3
_CH9
_STOP
DBG_H
PDMA3
_CH8
_STOP
DBG_H
PDMA3
_CH7
_STOP
DBG_H
PDMA3
_CH6
_STOP
DBG_H
PDMA3
_CH5
_STOP
DBG_H
PDMA3
_CH4
_STOP
DBG_H
PDMA3
_CH3
_STOP
DBG_H
PDMA3
_CH2
_STOP
DBG_H
PDMA3
_CH1
_STOP
DBG_H
PDMA3
_CH0
_STOP
rwrwrwrwrwrwrwrsrwrwrwrwrwrwrwrs

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

Bits 15:0 DBG_HPDMA3_CHn_STOP: HPDMA3_CHn suspend in debug (n = 15 to 0)

0: Normal operation. HPDMA3_CHn continues to operate while Cortex-A35 is in debug mode.

1: Stop in debug. HPDMA3_CHn is suspended while Cortex-A35 is in debug mode.

DBGMCU AHB2 - lowest part - peripheral freeze register CPU2
(DBGMCU_AHB2LFZ2)

Address offset: 0x018

Reset value: 0x0000 0000

31302928272625242322212019181716
DBG_H
PDMA2
_CH15
_STOP
DBG_H
PDMA2
_CH14
_STOP
DBG_H
PDMA2
_CH13
_STOP
DBG_H
PDMA2
_CH12
_STOP
DBG_H
PDMA2
_CH11
_STOP
DBG_H
PDMA2
_CH10
_STOP
DBG_H
PDMA2
_CH9
_STOP
DBG_H
PDMA2
_CH8
_STOP
DBG_H
PDMA2
_CH7
_STOP
DBG_H
PDMA2
_CH6
_STOP
DBG_H
PDMA2
_CH5
_STOP
DBG_H
PDMA2
_CH4
_STOP
DBG_H
PDMA2
_CH3
_STOP
DBG_H
PDMA2
_CH2
_STOP
DBG_H
PDMA2
_CH1
_STOP
DBG_H
PDMA2
_CH0
_STOP
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DBG_H
PDMA1
_CH15
_STOP
DBG_H
PDMA1
_CH14
_STOP
DBG_H
PDMA1
_CH13
_STOP
DBG_H
PDMA1
_CH12
_STOP
DBG_H
PDMA1
_CH11
_STOP
DBG_H
PDMA1
_CH10
_STOP
DBG_H
PDMA1
_CH9
_STOP
DBG_H
PDMA1
_CH8
_STOP
DBG_H
PDMA1
_CH7
_STOP
DBG_H
PDMA1
_CH6
_STOP
DBG_H
PDMA1
_CH5
_STOP
DBG_H
PDMA1
_CH4
_STOP
DBG_H
PDMA1
_CH3
_STOP
DBG_H
PDMA1
_CH2
_STOP
DBG_H
PDMA1
_CH1
_STOP
DBG_H
PDMA1
_CH0
_STOP
rwrwrwrwrwrwrwrsrwrwrwrwrwrwrwrs

Bits 31:16 DBG_HPDMA2_CHn_STOP: HPDMA2_CHn suspend in debug (n = 15 to 0)

0: Normal operation. HPDMA2_CHn continues to operate while Cortex-M33 is in debug mode.

1: Stop in debug. HPDMA2_CHn is suspended while Cortex-M33 is in debug mode.

Bits 15:0 DBG_HPDMA1_CHn_STOP: HPDMA1_CHn suspend in debug (n = 15 to 0)

0: Normal operation. HPDMA1_CHn continues to operate while Cortex-M33 is in debug mode.

1: Stop in debug. HPDMA1_CHn is suspended while Cortex-M33 is in debug mode.

DBGMCU AHB2 - highest part- peripheral freeze register CPU2
(DBGMCU_AHB2HFZ2)

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
DBG_H
PDMA3
_CH15
_STOP
DBG_H
PDMA3
_CH14
_STOP
DBG_H
PDMA3
_CH13
_STOP
DBG_H
PDMA3
_CH12
_STOP
DBG_H
PDMA3
_CH11
_STOP
DBG_H
PDMA3
_CH10
_STOP
DBG_H
PDMA3
_CH9
_STOP
DBG_H
PDMA3
_CH8
_STOP
DBG_H
PDMA3
_CH7
_STOP
DBG_H
PDMA3
_CH6
_STOP
DBG_H
PDMA3
_CH5
_STOP
DBG_H
PDMA3
_CH4
_STOP
DBG_H
PDMA3
_CH3
_STOP
DBG_H
PDMA3
_CH2
_STOP
DBG_H
PDMA3
_CH1
_STOP
DBG_H
PDMA3
_CH0
_STOP
rwrwrwrwrwrwrwrsrwrwrwrwrwrwrwrs

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

Bits 15:0 DBG_HPDMA3_CHn_STOP: HPDMA3_CHn suspend in debug (n = 15 to 0)

0: Normal operation. HPDMA3_CHn continues to operate while Cortex-M33 is in debug mode.

1: Stop in debug. HPDMA3_CHn is suspended while Cortex-M33 is in debug mode.

DBGMCU AHBSR peripheral freeze register CPU1 (DBGMCU_AHBSRFZ1)

Address offset: 0x020

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_L
PDMA1
_CH3
_STOP
DBG_L
PDMA1
_CH2
_STOP
DBG_L
PDMA1
_CH1
_STOP
DBG_L
PDMA1
_CH0
_STOP
rwrwrwrs

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

Bits 3:0 DBG_LPDMA1_CHn_STOP : LPDMA1_CHn suspend in debug (n = 3 to 0)

0: Normal operation. LPDMA1_CHn continues to operate while Cortex-A35 is in debug mode.

1: Stop in debug. LPDMA1_CHn is suspended while Cortex-A35 is in debug mode.

DBGMCU AHBSR peripheral freeze register CPU2 (DBGMCU_AHBSRFZ2)

Address offset: 0x024

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.DBG_L
PDMA1
_CH3
_STOP
DBG_L
PDMA1
_CH2
_STOP
DBG_L
PDMA1
_CH1
_STOP
DBG_L
PDMA1
_CH0
_STOP
rwrwrwrs

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

Bits 3:0 DBG_LPDMA1_CHn_STOP : LPDMA1_CHn suspend in debug (n = 3 to 0)

0: Normal operation. LPDMA1_CHn continues to operate while Cortex-M33 is in debug mode.

1: Stop in debug. LPDMA1_CHn is suspended while Cortex-M33 is in debug mode.

DBGMCU AHBSR peripheral freeze register CPU3 (DBGMCU_AHBSRFZ3)

Address offset: 0x028

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_L
PDMA1
_CH3_
STOP
DBG_L
PDMA1
_CH2_
STOP
DBG_L
PDMA1
_CH1_
STOP
DBG_L
PDMA1
_CH0_
STOP
rwrwrwrs

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

Bits 3:0 DBG_LPDMA1_CHn_STOP : LPDMA1_CHn suspend in debug (n = 3 to 0)

0: Normal operation. LPDMA1_CHn continues to operate while Cortex-M0+ is in debug mode.

1: Stop in debug. LPDMA1_CHn is suspended while Cortex-M0+ is in debug mode.

DBGMCU APB1 peripheral freeze register CPU1 (DBGMCU_APB1FZ1)

Address offset: 0x02C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.DBG_T
IM11_S
TOP
DBG_T
IM10_S
TOP
DBG_I
3C3_S
TOP
DBG_I
3C2_S
TOP
DBG_I
3C1_S
TOP
DBG_I
2C7_S
TOP
DBG_I
2C6_S
TOP
DBG_I
2C5_S
TOP
DBG_I
2C4_S
TOP
DBG_I
2C3_S
TOP
DBG_I
2C2_S
TOP
DBG_I
2C1_S
TOP
Res.Res.
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.DBG_L
PTIM2_
STOP
DBG_L
PTIM1_
STOP
DBG_T
IM14_S
TOP
DBG_T
IM13_S
TOP
DBG_T
IM12_S
TOP
DBG_T
IM7_ST
OP
DBG_T
IM6_ST
OP
DBG_T
IM5_ST
OP
DBG_T
IM4_ST
OP
DBG_T
IM3_ST
OP
DBG_T
IM2_ST
OP
rwrwrsrwrwrwrwrwrwrwrs

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

Bit 29 DBG_TIM11_STOP : TIM11 stop in debug

0: Normal operation. TIM11 continues to operate while Cortex-A35 is in debug mode.

1: Stop in debug. TIM11 is frozen while Cortex-A35 is in debug mode.

Bit 28 DBG_TIM10_STOP : TIM10 stop in debug

0: Normal operation. TIM10 continues to operate while Cortex-A35 is in debug mode.

1: Stop in debug. TIM10 is frozen while Cortex-A35 is in debug mode.

Bit 27 DBG_I3C3_STOP : I3C3 SMBUS timeout stop in debug

0: Normal operation. I3C3 SMBUS timeout continues to operate while Cortex-A35 is in debug mode.

1: Stop in debug. I3C3 SMBUS timeout is frozen while Cortex-A35 is in debug mode.

Bit 26 DBG_I3C2_STOP : I3C2 SMBUS timeout stop in debug

0: Normal operation. I3C2 SMBUS timeout continues to operate while Cortex-A35 is in debug mode.

1: Stop in debug. I3C2 SMBUS timeout is frozen while Cortex-A35 is in debug mode.

Bit 4 DBG_TIM6_STOP: TIM6 stop in debug

Bit 3 DBG_TIM5_STOP: TIM5 stop in debug

Bit 2 DBG_TIM4_STOP: TIM4 stop in debug

Bit 1 DBG_TIM3_STOP: TIM3 stop in debug

Bit 0 DBG_TIM2_STOP: TIM2 stop in debug

DBGMCU APB1 peripheral freeze register CPU2 (DBGMCU_APB1FZ2)

Address offset: 0x030

Reset value: 0x0000 0000

RM0457Bits 5:3 Bits 2:0column_3POSTDIV2[2:0] POSTDIV1[2:0]column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15column_16
31302928272625242322212019181716
DBG_TDBG_TDBG_IDBG_IDBG_IDBG_IDBG_IDBG_IDBG_IDBG_IDBG_IDBG_I
Res.Res.IM11_SIM10_S3C3_S3C2_S3C1_S2C7_S2C6_S2C5_S2C4_S2C3_S2C2_S2C1_SRes.Res.
TOPTOPTOPTOPTOPTOPTOPTOPTOPTOPTOPTOP
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DBG_LDBG_LDBG_TDBG_TDBG_TDBG_TDBG_TDBG_TDBG_TDBG_TDBG_T
Res.Res.Res.Res.Res.PTIM2_PTIM1_IM14_SIM13_SIM12_SIM7_STIM6_STIM5_STIM4_STIM3_STIM2_ST
STOPSTOPTOPTOPTOPOPOPOPOPOPOP
rwrwrsrwrwrwrwrwrwrwrs
Bit 29DBG_TIM11_STOP: TIM11 stop in debug
Bit 28DBG_TIM10_STOP: TIM10 stop in debug
Bit 27DBG_I3C3_STOP: I3C3 SMBUS timeout stop in debug
Bit 26DBG_I3C2_STOP: I3C2 SMBUS timeout stop in debug
RM0457 Rev 55817/5881

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

Bit 29 DBG_TIM11_STOP: TIM11 stop in debug

Bit 28 DBG_TIM10_STOP: TIM10 stop in debug

Bit 27 DBG_I3C3_STOP: I3C3 SMBUS timeout stop in debug

Bit 26 DBG_I3C2_STOP: I3C2 SMBUS timeout stop in debug

Bit 4 DBG_TIM6_STOP: TIM6 stop in debug

Bit 3 DBG_TIM5_STOP: TIM5 stop in debug

Bit 2 DBG_TIM4_STOP: TIM4 stop in debug

Bit 1 DBG_TIM3_STOP: TIM3 stop in debug

Bit 0 DBG_TIM2_STOP: TIM2 stop in debug

DBGMCU APB2 peripheral freeze register CPU1 (DBGMCU_APB2FZ1)

Address offset: 0x034

Reset value: 0x0000 0000

RM0457Bit 4 Bit 3 Bit 2 Bit 1 Bit 0column_3column_4column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15column_16
3130292827262524232221201918 DBG_T1716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IM20_S TOP rwRes.Res.
1514131211109876543210
DBG_FDBG_TDBG_TDBG_TDBG_TDBG_T
Res.Res.DCAN_Res.Res.Res.Res.Res.IM17_SIM16_SIM15_SRes.Res.Res.IM8_STIM1_ST
STOPTOPTOPTOPOPOP
rwrwrwrwrwrs
Bit 18DBG_TIM20_STOP: TIM20 stop in debug
Bit 13DBG_FDCAN_STOP: FDCAN stop in debug
Bit 7DBG_TIM17_STOP: TIM17 stop in debug
RM0457 Rev 55819/5881

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

Bit 18 DBG_TIM20_STOP: TIM20 stop in debug

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

Bit 13 DBG_FDCAN_STOP: FDCAN stop in debug

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

Bit 7 DBG_TIM17_STOP: TIM17 stop in debug

Bit 6 DBG_TIM16_STOP: TIM16 stop in debug

Bit 5 DBG_TIM15_STOP: TIM15 stop in debug

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

Bit 1 DBG_TIM8_STOP: TIM8 stop in debug

Bit 0 DBG_TIM1_STOP: TIM1 stop in debug

DBGMCU APB2 peripheral freeze register CPU2 (DBGMCU_APB2FZ2)

Address offset: 0x038

Reset value: 0x0000 0000

column_1Bit 6 Bit 5 Bit 1 Bit 0column_3column_4column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15RM0457
3130292827262524232221201918 DBG_T1716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IM20_S TOP rwRes.Res.
1514131211109876543210
DBG_FDBG_TDBG_TDBG_TDBG_TDBG_T
Res.Res.DCAN_Res.Res.Res.Res.Res.IM17_SIM16_SIM15_SRes.Res.Res.IM8_STIM1_ST
STOPTOPTOPTOPOPOP
rwrwrwrwrwrs
Bit 18DBG_TIM20_STOP: TIM20 stop in debug
Bit 13DBG_FDCAN_STOP: FDCAN stop in debug
Bit 7DBG_TIM17_STOP: TIM17 stop in debug
Bit 6DBG_TIM16_STOP: TIM16 stop in debug

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

Bit 18 DBG_TIM20_STOP: TIM20 stop in debug

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

Bit 13 DBG_FDCAN_STOP: FDCAN stop in debug

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

Bit 7 DBG_TIM17_STOP: TIM17 stop in debug

Bit 6 DBG_TIM16_STOP: TIM16 stop in debug

Bit 5 DBG_TIM15_STOP: TIM15 stop in debug

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

Bit 1 DBG_TIM8_STOP: TIM8 stop in debug

Bit 0 DBG_TIM1_STOP: TIM1 stop in debug

DBGMCU APB3 peripheral freeze register CPU1 (DBGMCU_APB3FZ1)

Address offset: 0x03C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_WWDG1_STOPRes.Res.DBG_IWDG2_STOPDBG_IWDG1_STOPRes.
rwrwrw

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

Bit 5 DBG_WWDG1_STOP: WWDG1 stop in debug

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

Bit 2 DBG_IWDG2_STOP: IWDG2 stop in debug

Bit 1 DBG_IWDG1_STOP: IWDG1 stop in debug

Bit 0 Reserved, must be kept at reset value.

DBGMCU APB3 peripheral freeze register CPU2 (DBGMCU_APB3FZ2)

Address offset: 0x040

Reset value: 0x0000 0000

column_1column_2column_3column_4column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15RM0457
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
15141312111098765 DBG_ WWDG4 DBG_I3 DBG_I210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WDG4 _STOPWDG3 _STOPRes.Res.Res.
rwrwrw
Bit 5DBG_WWDG1_STOP: WWDG1 stop in debug
Bit 4DBG_IWDG4_STOP: IWDG4 stop in debug
Bit 3DBG_IWDG3_STOP: IWDG3 stop in debug
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
151413121110 DBG_9876543210
DBG_IDBG_LDBG_LDBG_LDBG_IDBG_R
Res.Res.Res.Res.Res.Res.3C4_SPTIM5_PTIM4_PTIM3_2C8_SRes.Res.Res.TC_ST
TOPSTOPSTOPSTOPTOPOP
rwrsrwrwrwrwrs
Bit 10DBG_WWDG2_STOP: WWDG2 stop in debug

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

Bit 5 DBG_WWDG1_STOP: WWDG1 stop in debug

0: Normal operation. WWDG1 continues to operate while Cortex-M33 is in debug mode.

1: Stop in debug. WWDG1 is frozen while Cortex-M33 is in debug mode.

Bit 4 DBG_IWDG4_STOP: IWDG4 stop in debug

0: Normal operation. Watchdog continues to count while Cortex-M33 is in debug mode.

1: Stop in debug. Watchdog is frozen while Cortex-M33 is in debug mode.

Bit 3 DBG_IWDG3_STOP: IWDG3 stop in debug

0: Normal operation. Watchdog continues to count while Cortex-M33 is in debug mode.

1: Stop in debug. Watchdog is frozen while Cortex-M33 is in debug mode.

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

DBGMCU APBSR peripheral freeze register CPU1 (DBGMCU_APBSRFZ1)

Address offset: 0x044

Reset value: 0x0000 0000

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

Bit 10 DBG_WWDG2_STOP: WWDG2 stop in debug

0: Normal operation. WWDG2 continues to operate while Cortex-A35 is in debug mode.

1: Stop in debug. WWDG2 is frozen while Cortex-A35 is in debug mode.

Bit 9 Reserved, must be kept at reset value.

DBGMCU APBSR peripheral freeze register CPU2 (DBGMCU_APBSRFZ2)

Address offset: 0x048

Reset value: 0x0000 0000

RM0457Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 0column_3column_4column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15column_16
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
151413121110 DBG_9876543210
DBG_IDBG_LDBG_LDBG_LDBG_IDBG_R
Res.Res.Res.Res.Res.Res.3C4_SPTIM5_PTIM4_PTIM3_2C8_SRes.Res.Res.TC_ST
TOPSTOPSTOPSTOPTOPOP
rwrsrwrwrwrwrs
Bit 10DBG_WWDG2_STOP: WWDG2 stop in debug
Bit 8DBG_I3C4_STOP: I3C4 stop in debug
RM0457 Rev 55823/5881

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

Bit 7 DBG_LPTIM5_STOP: LPTIM5 stop in debug

Bit 6 DBG_LPTIM4_STOP: LPTIM4 stop in debug

Bit 5 DBG_LPTIM3_STOP: LPTIM3 stop in debug

Bit 4 DBG_I2C8_STOP: I2C8 stop in debug

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

Bit 0 DBG_RTC_STOP: RTC clock is suspended in debug

DBGMCU APB5 peripheral freeze register CPU3 (DBGMCU_APBSRFZ3)

Address offset: 0x04C

Reset value: 0x0000 0000

RM0457Bits 5:3 Bits 2:0column_3POSTDIV2[2:0] POSTDIV1[2:0]column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15column_16
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
151413121110 DBG_9876543210
DBG_IDBG_IDBG_LDBG_LDBG_LDBG_IDBG_R
Res.Res.Res.Res.Res.WDG53C4_SPTIM5_PTIM4_PTIM3_2C8_SRes.Res.Res.TC_ST
_STOPTOPSTOPSTOPSTOPTOPOP
rwrwrsrwrwrwrwrs
Bit 10DBG_WWDG2_STOP: WWDG2 stop in debug
Bit 9DBG_IWDG5_STOP: IWDG5 stop in debug
Bit 8DBG_I3C4_STOP: I3C4 stop in debug
Bit 7DBG_LPTIM5_STOP: LPTIM5 stop in debug

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

Bit 10 DBG_WWDG2_STOP: WWDG2 stop in debug

Bit 9 DBG_IWDG5_STOP: IWDG5 stop in debug

Bit 8 DBG_I3C4_STOP: I3C4 stop in debug

Bit 7 DBG_LPTIM5_STOP: LPTIM5 stop in debug

Bit 6 DBG_LPTIM4_STOP: LPTIM4 stop in debug

Bit 5 DBG_LPTIM3_STOP: LPTIM3 stop in debug

Bit 4 DBG_I2C8_STOP: I2C8 stop in debug

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

Bit 0 DBG_RTC_STOP: RTC clock is suspended in debug

DBGMCU register map

Table 1033. DBGMCU register map and reset values

RM0457 Bit 6 DBG_LPTIM4_STOP : LPTIM4 stop in debug 0: Normal operation. LPTIM4 continues to operate while Cortex-M0+ is in debug mode. 1: Stop in debug. LPTIM4 is frozen while Cortex-M0+ is in debug mode. Bit 5 DBG_LPTIM3_STOP : LPTIM3 stop in debug 0: Normal operation. LPTIM3 continues to operate while Cortex-M0+ is in debug mode. 1: Stop in debug. LPTIM3 is frozen while Cortex-M0+ is in debug mode. Bit 4 DBG_I2C8_STOP : I2C8 stop in debug 0: Normal operation. I2C8 continues to operate while Cortex-M0+ is in debug mode. 1: Stop in debug. I2C8 is frozen while Cortex-M0+ is in debug mode. Bits 3:1 Reserved, must be kept at reset value. Bit 0 DBG_RTC_STOP : RTC clock is suspended in debug 0: Normal operation. RTC clock continues to operate while Cortex-M0+ is in debug mode 1: Stop in debug. RTC clock is suspended while Cortex-M0+ is in debug mode. DBGMCU register map Table 1033. DBGMCU register map and reset valuescolumn_2column_3column_4column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15Debug support (DBG)
Offset Register name 31 3 0 2 9 2 8 2 7 2 6 2 5 2 4 2 3 2 2 21 2 0 19 18 1716151413121 1 10 9 8 7 6 5 4 3 2 1 0
0x000 DBGMCU_IDC MAJOR_REV_ID[15:0]Re s.Re s.Re s.Re s.DEV_ID[11:0]
Reset value 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 00 1 0 1 0 0 0 0 0 1 0 1
G S D B T A N D B Y _
D B G S L E E P _
S T O P D B G _
G SWD_ S D B N_ E L_
0x004 DBGMCU_CR R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s.Re s.Re s.Re s.Re s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.
Reset value1 000
S T G E N_ S T O P D B G _
R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s.Re s.Re s.Re s.Re s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.
WD F Z C T L
Reset value00
0x00C Reserved Reserved
A2_ C 9_ S O G H P D M H T P D B _
C S O G H P D M A2_ H 8_ T P D B _
C S O G H P D M A2_ H T P D B 7_ _
C S O G H P D M A2_ H 6_ T P D B _
C S O G H P D M A2_ H 5_ T P D B _
O H P D M A2_ C H 4_ S T P D B G _
O H P D M A2_ C H 3_ S T P D B G _
C S O G H P D M A2_ H 2_ T P D B _
C S O G H P D M A2_ H1_ T P D B _
A2_ C 0_ S O G H P D M H T P D B_
C S O G H P D M A1_ H 9_ T P D B _
C S O G H P D M A1_ H 8_ T P D B _
C S O G H P D M A1_ H T P D B 7_ _
A1_ C 6_ S O G H P D M H T P D B _
A1_ C S O G H P D M H 5_ T P D B _
C S O G H P D M A1_ H 4_ T P D B _
C S O G H P D M A1_ H 3_ T P D B _
A1_ C 2_ S O G H P D M H T P D B _
H P D M A1_ C H1_ S T O P D B G _
H P D M A1_ C H 0_ S T O P D B G _
C S O G H P D M A2_ H15_ T P D B _
C S O G H P D M A2_ H14_ T P D B _
O H P D M A2_ C H13_ S T P D B G _
O H P D M A2_ C H12_ S T P D B G _
C S O G H P D M A2_ H10_ T P D B _
A1_ C H15_ S O G H P D M T P D B_
C S O G H P D M A1_ H14_ T P D B_
C S O G H P D M A1_ H13_ T P D B_
C S O G H P D M A1_ H12_ T P D B_
C S O G H P D M A1_ H10_ T P D B _
C S O G H P D M A2_ H1 1_ T P D B _
C S O G H P D M A1_ H1 1_ T P D B _
RM0457 Rev 55825/ 5881

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x014DBGMCU_AHB2HFZ1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_HPDMA3_CH15_STOPDBG_HPDMA3_CH14_STOPDBG_HPDMA3_CH13_STOPDBG_HPDMA3_CH12_STOPDBG_HPDMA3_CH11_STOPDBG_HPDMA3_CH10_STOPDBG_HPDMA3_CH9_STOPDBG_HPDMA3_CH8_STOPDBG_HPDMA3_CH7_STOPDBG_HPDMA3_CH6_STOPDBG_HPDMA3_CH5_STOPDBG_HPDMA3_CH4_STOPDBG_HPDMA3_CH3_STOPDBG_HPDMA3_CH2_STOPDBG_HPDMA3_CH1_STOPDBG_HPDMA3_CH0_STOP
Reset value00000000000000000000000000000000
0x018DBGMCU_AHB2LFZ2DBG_HPDMA2_CH15_STOPDBG_HPDMA2_CH14_STOPDBG_HPDMA2_CH13_STOPDBG_HPDMA2_CH12_STOPDBG_HPDMA2_CH11_STOPDBG_HPDMA2_CH10_STOPDBG_HPDMA2_CH9_STOPDBG_HPDMA2_CH8_STOPDBG_HPDMA2_CH7_STOPDBG_HPDMA2_CH6_STOPDBG_HPDMA2_CH5_STOPDBG_HPDMA2_CH4_STOPDBG_HPDMA2_CH3_STOPDBG_HPDMA2_CH2_STOPDBG_HPDMA2_CH1_STOPDBG_HPDMA2_CH0_STOPDBG_HPDMA1_CH15_STOPDBG_HPDMA1_CH14_STOPDBG_HPDMA1_CH13_STOPDBG_HPDMA1_CH12_STOPDBG_HPDMA1_CH11_STOPDBG_HPDMA1_CH10_STOPDBG_HPDMA1_CH9_STOPDBG_HPDMA1_CH8_STOPDBG_HPDMA1_CH7_STOPDBG_HPDMA1_CH6_STOPDBG_HPDMA1_CH5_STOPDBG_HPDMA1_CH4_STOPDBG_HPDMA1_CH3_STOPDBG_HPDMA1_CH2_STOPDBG_HPDMA1_CH1_STOPDBG_HPDMA1_CH0_STOP
Reset value00000000000000000000000000000000
0x01CDBGMCU_AHB2HFZ2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_HPDMA3_CH15_STOPDBG_HPDMA3_CH14_STOPDBG_HPDMA3_CH13_STOPDBG_HPDMA3_CH12_STOPDBG_HPDMA3_CH11_STOPDBG_HPDMA3_CH10_STOPDBG_HPDMA3_CH9_STOPDBG_HPDMA3_CH8_STOPDBG_HPDMA3_CH7_STOPDBG_HPDMA3_CH6_STOPDBG_HPDMA3_CH5_STOPDBG_HPDMA3_CH4_STOPDBG_HPDMA3_CH3_STOPDBG_HPDMA3_CH2_STOPDBG_HPDMA3_CH1_STOPDBG_HPDMA3_CH0_STOP
Reset value0000000000000000
0x020DBGMCU_AHBSRFZ1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0x024DBGMCU_AHBSRFZ2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0x028DBGMCU_AHBSRFZ3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
ST logo
ST logo

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x02CDBGMCU_APB1FZ1Res.Res.DBG_TIM11_STOPDBG_TIM10_STOPDBG_I3C3_STOPDBG_I3C2_STOPDBG_I3C1_STOPDBG_I2C7_STOPDBG_I2C6_STOPDBG_I2C5_STOPDBG_I2C4_STOPDBG_I2C3_STOPDBG_I2C2_STOPDBG_I2C1_STOPRes.Res.Res.Res.Res.Res.Res.DBG_LPTIM2_STOPDBG_LPTIM1_STOPDBG_TIM14_STOPDBG_TIM13_STOPDBG_TIM12_STOPDBG_TIM7_STOPDBG_TIM6_STOPDBG_TIM5_STOPDBG_TIM4_STOPDBG_TIM3_STOPDBG_TIM2_STOP
Reset value00000000000000000000000
0x030DBGMCU_APB1FZ2Res.Res.DBG_TIM11_STOPDBG_TIM10_STOPDBG_I3C3_STOPDBG_I3C2_STOPDBG_I3C1_STOPDBG_I2C7_STOPDBG_I2C6_STOPDBG_I2C5_STOPDBG_I2C4_STOPDBG_I2C3_STOPDBG_I2C2_STOPDBG_I2C1_STOPRes.Res.Res.Res.Res.Res.Res.DBG_LPTIM2_STOPDBG_LPTIM1_STOPDBG_TIM14_STOPDBG_TIM13_STOPDBG_TIM12_STOPDBG_TIM7_STOPDBG_TIM6_STOPDBG_TIM5_STOPDBG_TIM4_STOPDBG_TIM3_STOPDBG_TIM2_STOP
Reset value00000000000000000000000
0x034DBGMCU_APB2FZ1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_TIM20_STOPRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_TIM17_STOPDBG_TIM16_STOPDBG_TIM15_STOPRes.Res.Res.Res.Res.Res.
Reset value0000
0x038DBGMCU_APB2FZ2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_TIM20_STOPRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_TIM17_STOPDBG_TIM16_STOPDBG_TIM15_STOPRes.Res.Res.Res.Res.Res.
Reset value0000
0x03CDBGMCU_APB3FZ1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0x040DBGMCU_APB3FZ2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0x044DBGMCU_APBSRFZ1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_WWDG2_STOPRes.DBG_I3C4_STOPDBG_LPTIM5_STOPDBG_LPTIM4_STOPDBG_LPTIM3_STOPDBG_I2C8_STOPRes.Res.Res.Res.Res.
Reset value000000

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x048DBGMCU_APBSRFZ2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_WWDG2_STOPRes.DBG_I3C4_STOPDBG_LPTIM5_STOPDBG_LPTIM4_STOPDBG_LPTIM3_STOPDBG_I2C8_STOPRes.Res.Res.DBG_RTC_STOP
Reset value00000000
0x04CDBGMCU_APBSRFZ3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBG_WWDG2_STOPDBG_IWDG5_STOPDBG_I3C4_STOPDBG_LPTIM5_STOPDBG_LPTIM4_STOPDBG_LPTIM3_STOPDBG_I2C8_STOPRes.Res.Res.DBG_RTC_STOP
Reset value00000000

97.11 Cortex-A35 debug features

The Cortex-A35 subsystem integrates the following CoreSight components (one of each per processor core):

These components are accessible by the debugger via the APB-AP and its associated debug APB bus. They are also accessible by both Cortex-A35 and Cortex-M33 via the system interconnect.

97.11.1 Cortex-A35 debug unit

The debug unit enables the debugger to access the debug features built into Cortex-A35. The debug features allow an external debugger to perform the following:

For detailed information on the debug unit, refer to the Cortex-A35 technical reference manual [10].

97.11.2 Cortex-A35 performance monitoring unit (PMU)

The performance monitoring unit contains six 32-bit event counters, and one 64-bit processor clock-cycle counter. The event counters can be configured to increment every time a specified event occurs. Examples of events that can be counted include:

When a counter wraps, it can generate an interrupt on PMUIRQ. This interrupt is connected to the CTI that can halt the processor cores, start or stop the trace.

Most of the events are connected to the ETM via the PMUEVENTS bus. This allows ETM resources to be used to filter the events. The filtered events are returned to the PMU via the four EXTOUT outputs of the ETM.

For a list of PMU events and the corresponding line of the PMUEVENTS bus, refer to the Cortex-A35 technical reference manual [10].

PMU registers

PMU registers are accessed by the debugger via the debug APB at addresses:

The same registers are accessible by software at addresses 0x4A21 0000 to 0x4A21 0FFC, and 0x4A31 0000 to 0x4A31 0FFC respectively.

Each CPU can also access the registers of its own PMU via CP15 registers.

97.11.3 Embedded trace macrocell (ETM)

The Cortex-A35 ETM is a CoreSight component closely coupled to the CPU. There are two ETM units, one for each Cortex-A35 processor core. The ETM generates trace packets that allow the Cortex-A35 processor core execution to be traced. Only instruction execution can be traced.

The ETM receives information from the CPU over the processor trace interface, including:

For more information, refer to the Arm ETM v4 reference manual [7].

97.11.4 Cross trigger interface (CTI)

See Section 97.10.3: Cross trigger interface (CTI) and matrix (CTM).

97.12 Cortex-M33 debug features

The Cortex-M33 subsystem integrates the following CoreSight components:

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

97.12.1 ROM tables

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

There is one integration ROM table in the Cortex-M33 subsystem. This table is pointed to by the BASE register in Cortex-M33 AHB-AP. It links to the processor ROM table that contains the base address pointer for the system control space registers, which allow the debugger to identify the CPU core, as well as for the FPB, DWT, ITM, ETM and CTI.

The Cortex-M33 CPU ROM table occupies a 4-Kbyte, 32-bit wide chunk of address space, from 0xE00F F000 to 0xE00F FFFC.

Table 1034. Cortex-M33 CPU ROM table

Address in ROM tableComponent
name
Component
base address
Component
address offset
Size
(Kbytes)
Entry
0xE00F F000SCS0xE000 E0000xFFF0 F00040xFFF0 F003
0xE00F F004DWT0xE000 10000xFFF0 20000xFFF0 2003
0xE00F F008FPB0xE000 20000xFFF0 30000xFFF0 3003
0xE00F F00CITM0xE000 00000xFFF0 10000xFFF0 1003
0xE00F F010Reserved0xE004 00000xFFF4 10000xFFF4 1002
0xE00F F014ETM0xE004 10000xFFF4 20000xFFF4 2003
0xE00F E018CTI0xE004 20000xFFF4 30000xFFF4 3003
0xE00F F01CReserved0xE004 30000xFFF4 40000xFFF4 4002
0xE00F F020Top of table---0x0000 0000
0xE00F F024 to 0xE00F FFC8Reserved---0x0000 0000
0xE00F FFCC to 0xE00F FFFCROM table
registers
----

The topology for the CoreSight components in the Cortex-M33 subsystem is shown in the figure below.

Figure 1188. Cortex-M33 CoreSight topology

Figure 1188. Cortex-M33 CoreSight topology diagram showing the interconnection of various CoreSight components.

The diagram illustrates the Cortex-M33 CoreSight topology, showing the interconnection of various components and their memory-mapped registers.

BASE register (0xF8) AHB-AP at 0xE00FE000 connects to the Cortex-M33 integration ROM table @0xE00FE000 at offset 0x1000. This table contains pointers to the PIDR4 and CIDR3 registers.

The Cortex-M33 integration ROM table points to the Cortex-M33 ROM table @0xE00FF000. This table contains offsets for various components:

The Cortex-M33 ROM table also contains pointers to the PIDR4 and CIDR3 registers.

The System control space (SCS) @0xE000E000 contains the Register file base, PIDR4, and CIDR3 registers.

The Breakpoint unit (FPB) @0xE0002000 contains the Register file base, PIDR4, and CIDR3 registers.

The Data watchpoint/trace (DWT) @0xE0001000 contains the Register file base, PIDR4, and CIDR3 registers.

The Instrumentation trace (ITM) @0xE0000000 contains the Register file base, PIDR4, and CIDR3 registers.

The Embedded trace (ETM) @0xE0042000 contains the Register file base, PIDR4, and CIDR3 registers.

The Cross trigger (CTI) @0xE0043000 contains the Register file base, PIDR4, and CIDR3 registers.

MSv66595V2

Figure 1188. Cortex-M33 CoreSight topology diagram showing the interconnection of various CoreSight components.

97.12.2 Data watchpoint and trace unit (DWT)

The DWT provides four comparators that can be used as:

The DWT also contains counters for:

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

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

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

A watchpoint debug event either generates a 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 Cortex-M33 processor technical reference manual [5].

97.12.3 Instrumentation trace macrocell (ITM)

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

For more details on how to use the ITM, refer to the Arm Cortex-M33 processor technical reference manual [5].

97.12.4 Breakpoint unit (FPB)

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

97.12.5 Embedded trace macrocell (ETM)

The Cortex-M33 ETM is a CoreSight component closely coupled to the CPU. The ETM generates trace packets that allow the execution of the Cortex-M33 core to be traced.

Note: Data accesses are not included in the trace information.

The ETM receives information from the CPU over the processor trace interface, including:

For more information, refer to the Arm CoreSight ETM-Cortex-M33 technical reference manual [8].

97.12.6 Cross trigger interface (CTI)

See Section 97.10.3: Cross trigger interface (CTI) and matrix (CTM).

97.13 Cortex-M0+ debug features

The Cortex-M0+ subsystem integrates the following CoreSight components:

These components are accessible by the debugger via the Cortex-M0+ AHB-AP.

97.13.1 Single-wire debug interface

The Cortex-M0+ AHB-AP is located by default at reset exit behind the main JTAG port used for the debuggers to access the main processors. It can be switched behind a dedicated SWD interface (see Table 1008) after clearing DBGMCU_SWD_SELn in DBGMCU_CR. This allows the Cortex-M0+ to be debugged in VBAT mode where other power domains are switched off.

This interface available on GPIO PZ0 and PZ1 can be used when the TAMPER output is not enabled in the RTC, and Cortex-M0+ debug is enabled.

97.13.2 ROM tables

There is one integration level ROM table pointing to the Cortex-M0+ processor and to additional CoreSight components. This table is pointed to by the BASE register in Cortex-M0+ AHB-AP.

The integration level ROM table occupies a 4-Kbyte, 32-bit wide chunk of address space, from 0xF000 0000 to 0xF000 FFFC.

The Cortex-M0+ CPU ROM table occupies a 4-Kbyte, 32-bit wide chunk of address space, from 0xE00F F000 to 0xE00F FFFC.

Table 1035. Cortex-M0+ integration level ROM table

Address in ROM tableComponent nameComponent base addressComponent address offsetSize (Kbytes)Entry
0xF000 0000CM0+ ROM table0xE00F F0000xF00F F00040xF00F F003
0xF000 0004CTI0xF000 00000x0000 10000x0000 1003
0xF000 0008Reserved--0x0000 2002
0xF000 000CReserved--0x1000 0002
0xF000 0010Top of table---0x0000 0000
0xE00F F014 to 0xE00F FFC8Reserved---0x0000 0000
0xE00F FFCC to 0xE00F FFFCROM table registers----

Table 1036. Cortex-M0+ processor ROM table

Address in ROM tableComponent nameComponent base addressComponent address offsetSize (Kbytes)Entry
0xE00F F000SCS0xE000 E0000xFFF0 F00040xFFF0 F003
0xE00F F004DWT0xE000 10000xFFF0 20000xFFF0 2003
0xE00F F008BPU0xE000 20000xFFF0 30000xFFF0 3003
0xE00F F00CTop of table---0x0000 0000
0xE00F F010 to 0xE00F FFC8Reserved---0x0000 0000
0xE00F FFCC to 0xE00F FFFCROM table registers----

The topology for the CoreSight components in the Cortex-M0+ subsystem is shown in the figure below.

Figure 1189. Cortex-M0+ CoreSight topology

Diagram of Cortex-M0+ CoreSight topology showing the mapping of BASE register to various CoreSight components and their internal structures.

The diagram illustrates the CoreSight topology for the Cortex-M0+ subsystem. It shows the mapping of the BASE register (0xF8, AHB-AP) to various components and their internal structures.

MSv66594V2

Diagram of Cortex-M0+ CoreSight topology showing the mapping of BASE register to various CoreSight components and their internal structures.

97.13.3 Data watchpoint and trace unit (DWT)

The DWT allows external PC sampling using a PC sample register, and provides two comparators that support:

The PC sampling feature and watchpoint support operate independently of each other. The watchpoint events result in a processor halt and entry to debug state.

For more details on how to use the DWT, refer to the Arm Cortex-M0+ processor technical reference manual [6].

97.13.4 Breakpoint unit (BPU)

The BPU provides support for breakpoint functionality on instruction fetches. It includes four breakpoint comparators that operate only on instruction read access, meaning there is no read or write data match capability.

97.13.5 Cross trigger interface (CTI)

See Section 97.10.3: Cross trigger interface (CTI) and matrix (CTM).

97.14 References

Note: Some of these documents may not be available to customers due to Arm IP rules.

  1. 1. IHI 0031C (ID080813) - Arm® debug interface architecture specification ADIv5.0 to ADIv5.2, issue C, 8 Aug 2013.
  2. 2. DDI 0480F (ID100313) - Arm® CoreSight™ SoC-400 r3p1 technical reference manual, Issue F, 26th Sept 2013
  3. 3. DDI 0461B (ID010111) - Arm® CoreSight™ trace memory controller r0p1 technical reference manual, Issue B, 10 Dec 2010
  4. 4. DDI 0314H - Arm® CoreSight™ components technical reference manual, Issue H, 10 July, 2009
  5. 5. Arm® Cortex®-M33 processor r1p0 technical reference manual, Issue 0100-03, 19 June 2020
  6. 6. DDI 0484C (ID121612) Arm® Cortex®-M0+ processor r0p1 technical reference manual, Issue C, 16 Dec 2012
  7. 7. IHI0064F (ID42818) - Arm® embedded trace macrocell architecture specification v4, Issue F, 30 April 2018
  8. 8. Arm® CoreSight™ ETM™-TEAL r0p0 technical reference manual, issue 0000-00-04, 04 Dec 2015
  9. 9. DDI 0528B (ID062514) - Arm® CoreSight™ STM system trace macrocell r0p1 technical reference manual, Issue B, 11 March 2014
  10. 10. Arm® Cortex®-A35 processor r1p0 technical reference manual, issue 0100-00, 28 February 2019