97. Debug support (DBG)
97.1 DBG introduction
In the whole document:
- • The Cortex-A35 is also called CPU1 or MPU.
- • The Cortex-M33 is also called CPU2 or MCU.
- • The Cortex- M0+ is also called CPU3.
A comprehensive set of debug features is provided to support software development and system integration:
- • Independent breakpoint debugging of each CPU core in the system
- • Code execution tracing
- • Software instrumentation
- • Cross-triggering
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:
- • SWJ-DP: JTAG/serial-wire debug port
- • AXI-AP: AXI access port
- • AHB-AP: AHB access port
- • APB-AP: APB access port
- • ITM: instrumentation trace macrocell
- • DWT: data watchpoint and trace
- • ETM: embedded trace macrocell
- • ETF: embedded trace FIFO
- • ETR: embedded trace router
- • TPIU: trace port interface unit
- • SWO: serial wire output
- • CTI: cross trigger interface
- • CTM: cross trigger matrix
- • Timestamp generator
- • STM: system trace macrocell
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:
- • Low cost software trace (Cortex-M33 only)
A limited trace capability is available over the single-wire debug output. This supports code instrumentation using “printf”, tracing of data and address watchpoints, interrupt detection and program counter sampling. - • External debugging of each core independently
All processor cores can be simultaneously and independently debugged using equipment connected to the JTAG/SWD debug port. This allows breakpoint and watchpoint settings, code stepping, and memory access. - • Self-hosted debugging of each core independently
All processor cores can be simultaneously and independently debugged by software running on one of the cores. This allows breakpoint and watchpoint settings, code stepping, and memory access. - • Synchronous debugging of cores
When one core stops due to a breakpoint or a debugger stop command, other cores can be stopped as well. Similarly, the cores can be restarted at the same time. This allows debugging of loosely coupled applications which require the processors to remain synchronized. - • Tracing code execution from one or more cores via the trace port
The trace information from all cores is combined into a single trace stream and output to a trace port analyzer in real time. An ID embedded in the trace allows the analyzer to identify the source of each information packet. - • Code and hardware instrumentation via the trace port
The software data from the processors, memory content via DMA, and hardware event trace information can be generated using the STM. The information is combined with the processor trace stream and output to a trace port analyzer in real time. - • Capturing trace continuously into the ETF programmed as a circular buffer (ETB)
The combined trace information can be stored on-chip in a private circular buffer. The trace storage can be started and stopped by a debugger command, a software command, an external trigger signal, or an internal event. - • Capturing trace continuously into a system memory
Thanks to the ETR, the combined trace information can be sent to a system memory, either on-chip SRAM or off-chip DDR or PCIE. The trace storage can be started and stopped by a debugger command, a software command, an external trigger signal, an internal event. - • Reading the stored trace with the debugger
The debugger can read the contents of the recorded trace data via the debug port. This is slower than the trace port, but allows basic trace functionality on the debugger without the cost of a trace port analyzer. - • Self-hosted trace analysis
The recorded trace data can be read by any of the processor cores. This powerful feature allows built-in test software to monitor code execution in real time, analyze and identify faults, autonomously handle exceptions.
- • Uploading stored trace
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

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.
- Debug subsystem:
- Includes JTAG/Serial-wire port pins (JTMS/SWDIO, JTDI, JTDO, JTCK/SWCLK, NJTRST) interfacing to SWJ-DP1.
- SWJ-DP1 connects to DAPBUS.
- Includes AXI-AP1, APB-AP1, System bus matrix, APB mux, ROM table1, DBG_MCU, and Timestamp generator1.
- SWDIO and SWCLK also connect to SWD1 leading to Mux and Cortex-M0+ core with AHB-AP1.
- Cortex-M33 core:
- Contains Cortex-M33 core, AHB-AP1, AHB, DWT1, FPB1, ITM1, ROM table1, PPB, CTI1, ETM1, and Replicator.
- Cortex-A35MP core:
- Dual Cortex-A35 cores with associated CTI1, PTM1, and shared ROM table1.
- Trace subsystem:
- Consists of CTM (Cross Trigger Matrix), CTI1, STM1, Funnel1, SWO1, TRACESWO (Serial-wire trace port), ETF1, SRAM, ETR1 (connected to System bus matrix), Replicator1, TPIU1, and Trace port pins (TRACECLK, TRACED[15:0]).
- Includes external trigger pins DBTRGI, DBTRGO.
Legend:
— APB-D (system debug bus)
— DAPBUS
— ATB (trace bus)
--→ CTM (cross trigger matrix)
······→ Timestamp
1. Arm CoreSight component
MSv66597V2
97.4 DBG pins
Table 1004. JTAG/Serial-wire debug port pins
| Pin name | JTAG debug port | SWD debug port | Pin assignment | ||
|---|---|---|---|---|---|
| Type | Description | Type | Description | ||
| JTMS/SWDIO | I | JTAG test mode select | I/O | Serial-wire data in/out | - |
| JTCK/SWCLK | I | JTAG test clock | I | Serial-wire clock | - |
| JTDI | I | JTAG test data input | - | - | - |
| JTDO | O | JTAG test data output | - | - | - |
| NJTRST | I | JTAG test reset | - | - | - |
Table 1005. Trace port pins
| Pin name | Type | Description | Pin assignment |
|---|---|---|---|
| TRACED[15:0] | O | Trace synchronous data out (can be 1, 2, 4, 8 or 16 pins) | Refer to Datasheet |
| TRACECLK | O | Trace clock |
Table 1006. Serial-wire trace port pins
| Pin name | Type | Description | Pin assignment |
|---|---|---|---|
| TRACESWO | O | Trace asynchronous data out | (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 name | Type | Description | Pin assignment |
|---|---|---|---|
| DBTRGI | I | External trigger input to CTI | Refer to Datasheet |
| DBTRGO | O | External trigger output from CTI |
Table 1008. Cortex-M0+ serial wire debug port pins
| Pin name | Type | Description | Pin assignment |
|---|---|---|---|
| SWCLK | I | Serial-wire clock | Refer to Datasheet |
| SWDIO | O | Serial-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

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:
- • DEVICEEN: Controls access to debug components via the external debug port.
- 0: External debugger has no access to debug components or system interconnect.
- 1: External debugger has access to debug components and system interconnect. External access to secure system interconnect depends on SPIDEN state.
- • DBGEN: Global enable for all debug and trace features
- 0: All debug features are disabled.
- 1: Debug features in non-secure mode are enabled. Debug features in secure mode depend on SPIDEN state.
- • SPIDEN: Enables debug in secure privileged mode when DBGEN = 1.
- 0: Debug features are disabled in secure privileged mode. External access to secure system interconnect is disabled.
- 1: Debug features are enabled in secure privileged mode. External access to secure system interconnect is enabled.
- • NIDEN: Enables trace and performance monitoring (non-invasive debug).
- 0: Trace generation is disabled.
- 1: Trace generation in non-secure mode is enabled. Trace generation in non-secure mode depends on SPIDEN state.
- • SPNIDEN: Enables trace and performance monitoring in secure privileged mode when NIDEN = 1.
- 0: Trace generation is disabled in secure privileged mode.
- 1: Trace generation is enabled in secure privileged mode.
- • DBGSWEN: Enables self-hosted debug (by a software running on a processor).
- 0: Software access to debug components on the APB-AP is disabled.
- 1: Software access to debug components on the APB-AP is enabled.
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
| - | DEVICEEN | DBGEN | SPIDEN | NIDEN | SPNIDEN | DBGSWEN |
|---|---|---|---|---|---|---|
| Debug APB-AP | X | - | - | - | - | - |
| System bus AXI-AP | X | - | X | - | - | - |
Table 1009. Authentication signal connectivity (continued)
| - | DEVICEEN | DBGEN | SPIDEN | NIDEN | SPNIDEN | DBGSWEN |
|---|---|---|---|---|---|---|
| Cortex-M33 AHB-AP | X | - | X(1) | - | - | - |
| Cortex-M0+ AHB-AP | X | - | - | - | - | - |
| 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 | - | X | X | - | - | X |
| TSGEN | - | - | - | - | - | X |
| TPIU | - | - | - | - | - | X |
- 1. Cortex-M33/M0+ dedicated subset of authentication signals.
- 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 state | Description |
|---|---|---|
| Open device | All ones | All debug and trace is enabled at boot-up. |
| Closed device | All zeros | All 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
| Name | Address | Description | read/write |
|---|---|---|---|
| SECSTS | 0b001 | Status of BSEC_DENR register | R |
| DBGCTL | 0b010 | Connected to BSEC_JTAGINR register | W |
| DBGSTS | 0b011 | Connected to BSEC_JTAGOUTR register | R |
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:
- • 5-pin standard JTAG interface (JTAG-DP)
- • 2-pin (clock + data) serial-wire debug port (SW-DP)
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:
- • SWCLK: clock from host to target
- • SWDIO: bi-directional serial data (100 kΩ pull-up required)
Serial data is transferred LSB first, synchronously with the clock. A transfer comprises the following phases:
- 1. packet request (8 bits) transmitted by the host
- 2. acknowledge response (3 bits) transmitted by the target
- 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

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
- • AP0: Debug access port (APB-AP). It allows access to CoreSight components on debug APB bus, including the Cortex-A35. The DBGMCU is also located on this bus.
- • AP1: SmartRun peripherals access (AHB-AP) port. It allows access to peripherals located in the SmartRun power domain even though the Cortex-M0+ is switched off.
- • AP2: Cortex-M0+ access port (AHB-AP). It allows access to debug features integrated in the Cortex-M0+ processor via its PPB bus. By default, the Cortex-M0+ debug is accessed through AP2, but this can be switched to a separate SWD port by clearing DBG_SWD_SEL_N in DBGMCU_CR (refer to Table 1033).
- • AP4: System bus access port (AXI-AP). It allows access to the system bus matrix. This gives visibility of all memories and peripherals accessible via AXI and AHB interconnects, except the ones on system APB debug bus. No CoreSight components are accessible via this port.
- • AP8: Cortex-M33 access port (AHB-AP). It allows access to debug and trace features integrated in the Cortex-M33 processor core via its PPB bus.
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
| DEVICEEN | Other authentication signal | Behavior |
|---|---|---|
| 0 | X | All access blocked. |
| 1 | All 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
| DEVICEEN | SPIDEN(1) | Others | Behavior |
|---|---|---|---|
| 0 | X | X | All transfers blocked. Any attempt to perform a transfer results in an error. |
| 1 | 0 | Secure transfers blocked. Any attempt to perform a secure transfer results in an error. Non-secure transfers are enabled. | |
| 1 | 1 | Both 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:
- • System ROM tables
- • Global trace timestamp generator (TSGEN)
- • System cross-trigger interface (CTI)
- • Cross-trigger matrix (CTM)
- • Trace port interface Unit (TPIU)
- • Trace bus funnel (CSTF)
- • Embedded trace FIFO (ETF)
- • Embedded trace router (ETR)
- • Replicator
- • System trace macrocell (STM)
- • Serial wire output (SWO)
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:
- • from 0x8000 0000 to 0x8000 0FFC when accessed by the JTAG debugger through the debug APB-AP
- • from 0x4A00 0000 to 0x4A00 0FFC when accessed from the system bus
Each component referenced in the ROM table occupies a 64-Kbyte range.
Table 1014. Debug subsystem ROM table
| Address offset in ROM table | Component name | Component base address (system bus) | Component base address (debugger) | Component address offset | Data |
|---|---|---|---|---|---|
| 0x000 | DBGMCU | 0x4A01 0000 | 0x8001 0000 | 0x1 0000 | 0x0001 0002 |
| 0x004 | Funnel | 0x4A02 0000 | 0x8002 0000 | 0x2 0000 | 0x0002 0003 |
| 0x008 | ETF | 0x4A03 0000 | 0x8003 0000 | 0x3 0000 | 0x0003 0003 |
| 0x00C | ETR | 0x4A04 0000 | 0x8004 0000 | 0x4 0000 | 0x0004 0003 |
| 0x010 | TPIU | 0x4A05 0000 | 0x8005 0000 | 0x5 0000 | 0x0005 0003 |
| 0x014 | Replicator | 0x4A06 0000 | 0x8006 0000 | 0x6 0000 | 0x0006 0003 |
| 0x018 | Timestamp generator | 0x4A07 0000 | 0x8007 0000 | 0x7 0000 | 0x0007 0003 |
| 0x01C | STM | 0x4A08 0000 | 0x8008 0000 | 0x8 0000 | 0x0008 0003 |
| 0x020 | CTI0 | 0x4A09 0000 | 0x8009 0000 | 0x9 0000 | 0x0009 0003 |
| 0x024 | CTI1 | 0x4A0A 0000 | 0x800A 0000 | 0xA 0000 | 0x000A 0003 |
| 0x028 | SWO | 0x4A0B 0000 | 0x800B 0000 | 0xB 0000 | 0x000B 0003 |
Table 1014. Debug subsystem ROM table (continued)
| Address offset in ROM table | Component name | Component base address (system bus) | Component base address (debugger) | Component address offset | Data |
|---|---|---|---|---|---|
| 0x02C | Cortex-A35 ROM table | 0x4A20 0000 | 0x8020 0000 | 0x20 0000 | 0x0020 0003 |
| 0x030 | Top of table | - | - | - | 0x0000 0000 |
| 0x034 to 0xFC8 | Reserved | - | - | - | 0x0000 0000 |
| 0xFCC to 0xFFC | ROM 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:
- • from 0x8020 0000 to 0x8020 0FFC when accessed by the debugger
- • from 0x4A21 0000 to 0x4A21 0FFC when accessed from the system bus
Table 1015. Cortex-A35 subsystem ROM table
| Address offset in ROM table | Component name | Component base address (system bus) | Component base address (debugger) | Component address offset | Entry |
|---|---|---|---|---|---|
| 0x000 | CA35_0_DBG | 0x4A21 0000 | 0x8021 0000 | 0x1 0000 | 0x0001 0003 |
| 0x004 | CA35_0_CTI | 0x4A22 0000 | 0x8022 0000 | 0x2 0000 | 0x0002 0003 |
| 0x008 | CA35_0_PMU | 0x4A23 0000 | 0x8023 0000 | 0x3 0000 | 0x0003 0003 |
| 0x00C | CA35_0_ETM | 0x4A24 0000 | 0x8024 0000 | 0x4 0000 | 0x0004 0003 |
| 0x010 | CA35_1_DBG | 0x4A31 0000 | 0x8031 0000 | 0x11 0000 | 0x0011 0003 |
| 0x014 | CA35_1_CTI | 0x4A32 0000 | 0x8032 0000 | 0x12 0000 | 0x0012 0003 |
| 0x018 | CA35_1_PMU | 0x4A33 0000 | 0x8033 0000 | 0x13 0000 | 0x0013 0003 |
| 0x01C | CA35_1_ETM | 0x4A34 0000 | 0x8034 0000 | 0x14 0000 | 0x0014 0003 |
| 0x020 | Top of table | - | - | - | 0x0000 0000 |
| 0x024 to 0xFC8 | Reserved | - | - | - | 0x0000 0000 |
| 0xFCC to 0xFFC | ROM 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

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:
- Trace FIFO (ETF) @0x80030000: Contains Register file base (0x000), PIDR4 (0xFD0), and CIDR3 (0xFFC).
- Trace FIFO (ETR) @0x80040000: Contains Register file base (0x000), PIDR4 (0xFD0), and CIDR3 (0xFFC).
- Trace Funnel (CSTF) @0x80020000: Contains Register file base (0x000), PIDR4 (0xFD0), and CIDR3 (0xFFC).
- DBGMCU @0x80010000: Contains Register file base (0x000), PIDR4 (0xFD0), and CIDR3 (0xFFC).
- Trace port interface (TPIU) @0x80050000: Contains Register file base (0x000), PIDR4 (0xFD0), and CIDR3 (0xFFC).
- Replicator @0x80060000: Contains Register file base (0x000), PIDR4 (0xFD0), and CIDR3 (0xFFC).
- Timestamp generator @0x80070000: Contains Register file base (0x000), PIDR4 (0xFD0), and CIDR3 (0xFFC).
- System trace macrocell (STM) @0x80080000: Contains Register file base (0x000), PIDR4 (0xFD0), and CIDR3 (0xFFC).
- System CTI_0 @0x80090000: Contains Register file base (0x000), PIDR4 (0xFD0), and CIDR3 (0xFFC).
- System CTI_1 @0x800A0000: Contains Register file base (0x000), PIDR4 (0xFD0), and CIDR3 (0xFFC).
- Serial wire output (SWO) @0x800B0000: Contains Register file base (0x000), PIDR4 (0xFD0), and CIDR3 (0xFFC).
- Cortex-A35 subsystem ROM table @0x80200000: Contains offsets from 0x000 to 0x020, PIDR4 (0xFD0), and CIDR3 (0xFFC).
- Cortex-A35 debug @0x80210000: Contains Register file base (0x000), PIDR4 (0xFD0), and CIDR3 (0xFFC).
- Cortex-A35_0 CTI @0x80220000: Contains Register file base (0x000), PIDR4 (0xFD0), and CIDR3 (0xFFC).
- Cortex-A35_0 PMU @0x80230000: Contains Register file base (0x000), PIDR4 (0xFD0), and CIDR3 (0xFFC).
- Cortex-A35_0 ETM @0x80240000: Contains Register file base (0x000), PIDR4 (0xFD0), and CIDR3 (0xFFC).
- Cortex-A35_1 debug @0x80310000: Contains Register file base (0x000), PIDR4 (0xFD0), and CIDR3 (0xFFC).
- Cortex-A35_1 CTI @0x80320000: Contains Register file base (0x000), PIDR4 (0xFD0), and CIDR3 (0xFFC).
- Cortex-A35_1 PMU @0x80330000: Contains Register file base (0x000), PIDR4 (0xFD0), and CIDR3 (0xFFC).
- Cortex-A35_1 ETM @0x80340000: Contains Register file base (0x000), PIDR4 (0xFD0), and CIDR3 (0xFFC).
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.
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:
- • Start and stop the timestamp incrementing.
- • Cause the timestamp counter to stop when debug state is entered. To enable this feature, the debug subsystem CTI must be configured to signal to the timestamp generator when system-wide debug state has been entered (all CPU cores halted).
- • Read the current timestamp value.
- • Change the current timestamp value. The timestamp counter must be halted while it is changed. When the timestamp value is changed, the timestamp generator resynchronizes all trace sources.
- • Change the reported timestamp increment.
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

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
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].](/RM0457-STM32MP23-25/e03a7a66cb0df0ebd48775a0650b6640_img.jpg)
The diagram illustrates the Embedded cross trigger architecture, centered around the CTM channels [3:0].
- Cortex-A35_0 and Cortex-A35_1: Each CPU is connected to its own CTI block via APB-Debug. The CTI blocks handle DBGTRIGGER, EDBGRQ, DBGRESTART, PMUIRQ, and CTIIRQ0/1. They also interface with PMU and PTM blocks for external triggers (EXTOUT0-3, EXTIN0-3) and GIC400 for interrupts.
- Debug subsystems (CTI_0 and CTI_1): These blocks manage triggers for various peripherals:
- CTI_0: Manages triggers for ETR (ETRFULL, ETRACQCOMP, ETRFLUSH, ETRTRIG), ETF (ETFFULL, ETFACQCOMP, ETFFLUSH, ETFTRIG), TPIU (TPIUFLUSH, TPIUTRIG), and STM (TRIGOUTSPTE, TRIGOUTSW, TRIGOUTHETE, ASYNCOUT).
- CTI_1: Manages triggers for DBTRGI, DBTRGO, STM (HWEVENTA, HWEVENTB), and TSGEN (HLTDBG_req, HLTDBG_restart).
- Cortex-M33 CTI: Connected via PPB-M33. It interfaces with Cortex-M33 CPU (HALTED, EDBGRQ, DBGRESTART, CTIIRQ0, CTIIRQ1), DWT (DWT_COMP0, DWT_COMP1, DWT_COMP2), and ETM (ETMEVENTO_0, ETMEVENTO_1, ETMEVENTIN_0, ETMEVENTIN_1, ETMEVENTIN_2, ETMEVENTIN_3).
- Cortex-M0+ CTI: Connected via PPB-M0+. It handles HALTED, EDBGRQ, DBGRESTART, CTIIRQ0, and CTIIRQ1 with Cortex-M0+ CPU.
CTM channels [3:0] facilitate bidirectional trigger distribution across all CTI instances.
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 signal | Source component | Comments |
|---|---|---|---|
| 0 | ETRACQCOMP | ETR | ETR capture finished. Allows a debug event to be generated when trace acquisition is complete. |
| 1 | ETRFULL | ETR | ETF full flag. Allows a debug event to be generated when the trace buffer is full. |
| 2 | ETFACQCOMP | ETF | ETF capture finished. Allows a debug event to be generated when the trace FIFO is empty. |
| 3 | ETFFULL | ETF | ETF full flag. Allows a debug event to be generated when the trace FIFO is full. |
| 4 | TRIGOUTSPTE | STM | The STM asserts this signal for one clock cycle when a trigger event is detected on a match using STMSPTER. |
| 5 | TRIGOUTSW | STM | The 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. |
| 6 | TRIGOUTHETE | STM | The STM asserts this signal for one clock cycle when a trigger event is detected on a match using STMHETER. |
| 7 | ASYNCOOUT | STM | Alignment 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. |
| - | Output signal | Destination component | Comments |
|---|---|---|---|
| 0 | ETRTRIG | ETR | ETR trigger. Causes various kinds of flush, stops the TMC, and causes additional trigger insertion. |
| 1 | ETRFLUSH | ETR | ETF flush trigger. Causes trace sources to be flushed into destination memory. |
| 2 | ETFTRIG | ETF | ETF enable trigger. Starts filling the trace FIFO. |
| 3 | ETFFLUSH | ETF | ETF flush trigger. Causes trace FIFO to be flushed. |
| 4 | TPIUFLUSH | TPIU | Trace port flush trigger. Causes TPIU FIFO to be flushed. |
| 5 | TPIUTRIG | TPIU | Trace port enable trigger. Starts trace output on the external trace port. |
| 6 | - | - | Not used |
| 7 | - | - | Not used |
| - | Source signal | Source component | Comments |
|---|---|---|---|
| 0 | DBTRIGI | GPIO | External 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 |
| - | Output signal | Destination component | Comments |
|---|---|---|---|
| 0 | DBTRIGO | GPIO | External I/O trigger output. Allows monitoring of events on external DBTRIGO pin. |
| 1 | HWEVENTA | STM | STM hardware event |
| 2 | HWEVENTB | STM | STM hardware event |
| 3 | HLTDBG_req | TSGEN | Halt timestamp in debug. Freezes TSGEN timestamp counter. |
| 4 | HLTDBG_restart | TSGEN | Halt timestamp in debug. Unfreezes TSGEN timestamp counter. |
| 5 | - | - | Not used |
| 6 | - | - | Not used |
| 7 | - | - | Not used |
| - | Source signal | Source component | Comments |
|---|---|---|---|
| 0 | DBGTRIGGER | Cortex-A35 CPU | Pulsed high when the core enters in debug state |
| 1 | PMUIRQ | PMU | Performance monitor interrupt with inverted polarity |
| 2 | - | - | Not used |
| 3 | - | - | Not used |
| 4 | EXTOUT0 | ETM | ETM external trigger output |
| 5 | EXTOUT1 | ETM | ETM external trigger output |
| 6 | EXTOUT2 | ETM | ETM external trigger output |
| 7 | EXTOUT3 | ETM | ETM external trigger output |
| - | Output signal | Destination component | Comments |
|---|---|---|---|
| 0 | EDBGRQ | Cortex-A35 CPU | CPU halt request. Puts the CPU in debug mode. |
| 1 | DBGRESTART | Cortex-A35 CPU | CPU restart request. The CPU exits debug mode. |
| 2 | CTIIRQ | GIC | CTI interrupt |
| 3 | - | - | Not used |
| 4 | EXTIN0 | ETM | ETM external input |
| 5 | EXTIN1 | ETM | ETM external input |
| 6 | EXTIN2 | ETM | ETM external input |
| 7 | EXTIN3 | ETM | ETM external input |
| - | Source signal | Source component | Comments |
|---|---|---|---|
| 0 | HALTED | Cortex-M33 CPU | Pulsed high when the core enters in debug state |
| 1 | DWTCOMP_0 | Cortex-M33 DWT | DWT comparator output |
| 2 | DWTCOMP_1 | Cortex-M33 DWT | DWT comparator output |
| 3 | DWTCOMP_2 | Cortex-M33 DWT | DWT comparator output |
| 4 | ETMEVENTO_0 | Cortex-M33 ETM | ETM event output |
| 5 | ETMEVENTO_0 | Cortex-M33 ETM | ETM event output |
| 6 | - | - | Not used |
| 7 | - | - | Not used |
| - | Source signal | Destination component | Comments |
|---|---|---|---|
| 0 | EDBGRQ | Cortex-M33 CPU | CPU halt request. Puts the CPU in debug mode. |
| 1 | DBGRESTART | Cortex-M33 CPU | CPU restart request. The CPU exits debug mode. |
| 2 | IRQ0 | Cortex-M33 NVIC | CTI interrupt |
| 3 | IRQ1 | Cortex-M33 NVIC | CTI interrupt |
| 4 | ETMEVENTIN_0 | Cortex-M33 ETM | ETM event input |
| 5 | ETMEVENTIN_1 | Cortex-M33 ETM | ETM event input |
| 6 | ETMEVENTIN_2 | Cortex-M33 ETM | ETM event input |
| 7 | ETMEVENTIN_3 | Cortex-M33 ETM | ETM event input |
Table 1024. Cortex-M0+ CTI inputs
| - | Source signal | Source component | Comments |
|---|---|---|---|
| 0 | HALTED | Cortex-M0+ CPU | Pulsed 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 signal | Destination component | Comments |
|---|---|---|---|
| 0 | EDBGRQ | Cortex-M0+ CPU | CPU halt request. Puts the CPU in debug mode. |
| 1 | - | - | Not used |
| 2 | IRQ0 | Cortex-M0+ NVIC | CTI interrupt |
| 3 | IRQ1 | Cortex-M0+ NVIC | CTI interrupt |
| 4 | - | - | Not used |
| 5 | - | - | Not used |
| 6 | - | - | Not used |
| 7 | DBGRESTART | Cortex-M0+ CPU | CPU 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
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

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.
- Top-left: Cortex-M33 sends a HALTED signal to CTI M33 (Channel 0). CTIINEN0 = 0001 is set. The output goes to CTM (Channel 0), which then triggers CTI C-A35_0 (Channel 0). CTIOUTEN0 = 0001 is set, sending an EDBGRQ signal to Cortex-A35_0.
- Top-right: Cortex-M33 sends a HALTED signal to CTI M33 (Channel 1). CTIINEN1 = 0000 is set. The output goes to CTM (Channel 1), which then triggers CTI C-A35_0 (Channel 1). CTIOUTEN1 = 0010 is set, sending a DBGRESTART signal to Cortex-A35_0.
- Bottom-left: Cortex-A35_0 sends a DBGTRIGGER signal to CTI C-A35_1 (Channel 0). CTIINEN0 = 0001 is set. The output goes to CTM (Channel 0), which then triggers CTI M33 (Channel 0). CTIOUTEN0 = 0001 is set, sending an EDBGRQ signal to Cortex-M33.
- Bottom-right: Cortex-A35_0 sends a DBGTRIGGER signal to CTI C-A35_1 (Channel 1). CTIINEN1 = 0000 is set. The output goes to CTM (Channel 1), which then triggers CTI M33 (Channel 1). CTIOUTEN1 = 0010 is set, sending a DBGRESTART signal to Cortex-M33.
MSv66592V2
To force the processors to restart simultaneously, the debugger must use the following procedure:
- 1. Clear debug request by writing 0x01, then 0x00, to CTIINTACK register in each CTI.
- 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:
- • S0: Cortex-A35_0 PTM
- • S1: Cortex-A35_1 PTM
- • S2: STM
- • S3: Cortex-M33 ETM
- • S4: Cortex-M33 ITM
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. The arbiter selects the slave port with the highest assigned priority that has data valid.
- 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. 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:
- • PTM/ETM of each Cortex-A35 core
- • ITM of Cortex-M33
- • STM
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):
- • Hardware FIFO mode
The trace memory is used as a FIFO that is drained through the ATB master interface. Trace data is captured into the trace RAM and when full, the incoming trace stream is stalled. When the trace buffer is not empty, trace data is drained out through the ATB master interface to the TPIU.
In this mode, the role of the FIFO is to smooth the flow of trace information arriving at the trace port. Since the trace data can be very bursty in nature, the peak data rate can easily exceed the port capability, resulting in an overflow. The ETF allows a steady data rate at the trace port, which can then be sized according to the average rate rather than the peak. The trace is stored off-chip in real time by the trace port analyzer tool, and so the trace log can be very big.
- • Software FIFO mode
The trace memory is used as a FIFO that can be read through the RRD register while trace is being captured. Trace data is captured into the trace RAM and when full, the incoming trace stream is stalled.
This mode allows the trace to be transferred by DMA into the system memory, or to a high-speed interface (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.
- • Circular buffer mode (embedded trace buffer)
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:
- – via the trace port: With the TPIU enabled, the contents of the buffer are output over the trace port. This can be done by setting the DrainBuffer bit in the ETF_FFCR register.
- – via the ETR: The buffer can be sent out to memory, either internal such as SRAM, or external such as DDR. With the ETR enabled, this can be done by setting the DrainBuffer bit in the ETF_FFCR register.
- – via the debug port: the debugger can read the buffer via the RRD register which is accessible over the debug APB.
- – by software: Either processor can read the buffer via the RRD register, since the debug APB is accessible from the system bus. This can also be performed by software triggered DMA transfers. No hardware DMA request is available so the FULL flag can be used to trigger an interrupt to the appropriate core via the cross trigger. The software can then read the ETF_CBUFLVL register to find out the number of data to be read.
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:
- • AXI control register: It contains a field indicating the maximum number of data transfers that can occur within each burst initiated by the TMC on the AXI master interface.
- • data buffer address low and high registers: They contain the 32-bit address used to locate the trace buffer in the system memory.
- • formatter and flush control register: It enables the trace data to be TWP formatted with only frames (no padding or syncs). When disabled, the data is raw data from the ATB input, without the ID.
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 port | Trace sink |
|---|---|
| #0 | ETR |
| #1 | TPIU |
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:
- • no formatter
- • no pattern generator
- • an 8-bit ATB input
- • no synchronous trace output (no TRACEDx or TRACECLK pin)
- • no support for flush (because this is not required)
- • no support for triggering
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

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.
The STM is configured with the following values:
- • DATA_FIFO_DEPTH = 16
- • CHN_FIFO_DEPTH = 8
- • HW_EVOBIF_PRESENT = TRUE
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 offset | Name | Description |
|---|---|---|
| 0x00 | G_DMTS | Data, marked with timestamp, guaranteed |
| 0x08 | G_DM | Data, marked, guaranteed |
| 0x10 | G_DTS | Data, with timestamp, guaranteed |
| 0x18 | G_D | Data, guaranteed |
| 0x20-0x58 | - | Reserved |
| 0x60 | G_FLAGTS | Flag with timestamp, guaranteed |
| 0x68 | G_FLAG | Flag, guaranteed |
| 0x70 | G_TRIGTS | Trigger with timestamp, guaranteed |
| 0x78 | G_TRIG | Trigger, guaranteed |
| 0x80 | I_DMTS | Data, marked with timestamp, invariant timing |
| 0x88 | I_DM | Data, marked, invariant timing |
| 0x90 | I_DTS | Data, with timestamp, invariant timing |
| 0x98 | I_D | Data, invariant timing |
| 0xA0-0xD8 | - | Reserved |
| 0xE0 | I_FLAGTS | Flag with timestamp, invariant timing |
| 0xE8 | I_FLAG | Flag, invariant timing |
| 0xF0 | I_TRIGTS | Trigger with timestamp, invariant timing |
| 0xF8 | I_TRIG | Trigger, 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:
- • Bit [7] = 0
- • Bit [6] = secure/non-secure state
- • Bit [5:0] = master ID
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
| Master | Secure access ID | Non-secure access ID |
|---|---|---|
| Cortex-A35 processor core0 | 0x00 | 0x40 |
| Cortex-A35 processor core1 | 0x01 | 0x41 |
| Master | Secure access ID | Non-secure access ID |
|---|---|---|
| Cortex-M33 | 0x02 | 0x42 |
| HPDMA1 | 0x03 | 0x43 |
| HPDMA2 | 0x04 | 0x44 |
| HPDMA3 | 0x05 | 0x45 |
| DAP-AXI-AP | 0x06 | 0x46 |
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| Bank | Event | EXTMUX(7:0) = 0 | EXTMUX(7:0) = 1 | EXTMUX(7:0) = 2 | EXTMUX(7:0) = 3 |
|---|---|---|---|---|---|
| HEBS = 0 | 0 | HPDMA1_ch0_cpu1_irq | HPDMA2_ch0_cpu1_irq | HPDMA3_ch0_cpu1_irq | LPDMA1_ch0_cpu1_irq |
| 1 | HPDMA1_ch1_cpu1_irq | HPDMA2_ch1_cpu1_irq | HPDMA3_ch1_cpu1_irq | LPDMA1_ch1_cpu1_irq | |
| 2 | HPDMA1_ch2_cpu1_irq | HPDMA2_ch2_cpu1_irq | HPDMA3_ch2_cpu1_irq | LPDMA1_ch2_cpu1_irq | |
| 3 | HPDMA1_ch3_cpu1_irq | HPDMA2_ch3_cpu1_irq | HPDMA3_ch3_cpu1_irq | LPDMA1_ch3_cpu1_irq | |
| 4 | HPDMA1_ch4_cpu1_irq | HPDMA2_ch4_cpu1_irq | HPDMA3_ch4_cpu1_irq | LPDMA1_ch0_cpu2_irq | |
| 5 | HPDMA1_ch5_cpu1_irq | HPDMA2_ch5_cpu1_irq | HPDMA3_ch5_cpu1_irq | LPDMA1_ch1_cpu2_irq | |
| 6 | HPDMA1_ch6_cpu1_irq | HPDMA2_ch6_cpu1_irq | HPDMA3_ch6_cpu1_irq | LPDMA1_ch2_cpu2_irq | |
| 7 | HPDMA1_ch7_cpu1_irq | HPDMA2_ch7_cpu1_irq | HPDMA3_ch7_cpu1_irq | LPDMA1_ch3_cpu2_irq | |
| 8 | HPDMA1_ch8_cpu1_irq | HPDMA2_ch8_cpu1_irq | HPDMA3_ch8_cpu1_irq | LPDMA1_ch0_cpu3_irq | |
| 9 | HPDMA1_ch9_cpu1_irq | HPDMA2_ch9_cpu1_irq | HPDMA3_ch9_cpu1_irq | LPDMA1_ch1_cpu3_irq | |
| 10 | HPDMA1_ch10_cpu1_irq | HPDMA2_ch10_cpu1_irq | HPDMA3_ch10_cpu1_irq | LPDMA1_ch2_cpu3_irq | |
| 11 | HPDMA1_ch11_cpu1_irq | HPDMA2_ch11_cpu1_irq | HPDMA3_ch11_cpu1_irq | LPDMA1_ch3_cpu3_irq | |
| 12 | HPDMA1_ch12_cpu1_irq | HPDMA2_ch12_cpu1_irq | HPDMA3_ch12_cpu1_irq | - | |
| 13 | HPDMA1_ch13_cpu1_irq | HPDMA2_ch13_cpu1_irq | HPDMA3_ch13_cpu1_irq | LPTIMER1_IT_irq | |
| 14 | HPDMA1_ch14_cpu1_irq | HPDMA2_ch14_cpu1_irq | HPDMA3_ch14_cpu1_irq | LPTIMER2_IT_irq |
Table 1029. Hardware event mapping 0 to 3 (continued)
| Bank | Event | EXTMUX(7:0) = 0 | EXTMUX(7:0) = 1 | EXTMUX(7:0) = 2 | EXTMUX(7:0) = 3 |
|---|---|---|---|---|---|
| HEBS = 0 | 15 | HPDMA1_ch15_cpu1_irq | HPDMA2_ch15_cpu1_irq | HPDMA3_ch15_cpu1_irq | LPTIMER3_IT_irq |
| 16 | HPDMA1_ch0_cpu2_irq | HPDMA2_ch0_cpu2_irq | HPDMA3_ch0_cpu2_irq | LPTIMER4_IT_irq | |
| 17 | HPDMA1_ch1_cpu2_irq | HPDMA2_ch1_cpu2_irq | HPDMA3_ch1_cpu2_irq | LPTIMER5_IT_irq | |
| 18 | HPDMA1_ch2_cpu2_irq | HPDMA2_ch2_cpu2_irq | HPDMA3_ch2_cpu2_irq | - | |
| 19 | HPDMA1_ch3_cpu2_irq | HPDMA2_ch3_cpu2_irq | HPDMA3_ch3_cpu2_irq | SPI1_irq | |
| 20 | HPDMA1_ch4_cpu2_irq | HPDMA2_ch4_cpu2_irq | HPDMA3_ch4_cpu2_irq | SPI2_irq | |
| 21 | HPDMA1_ch5_cpu2_irq | HPDMA2_ch5_cpu2_irq | HPDMA3_ch5_cpu2_irq | SPI3_irq | |
| 22 | HPDMA1_ch6_cpu2_irq | HPDMA2_ch6_cpu2_irq | HPDMA3_ch6_cpu2_irq | SPI4_irq | |
| 23 | HPDMA1_ch7_cpu2_irq | HPDMA2_ch7_cpu2_irq | HPDMA3_ch7_cpu2_irq | SPI5_irq | |
| 24 | HPDMA1_ch8_cpu2_irq | HPDMA2_ch8_cpu2_irq | HPDMA3_ch8_cpu2_irq | SPI6_irq | |
| 25 | HPDMA1_ch9_cpu2_irq | HPDMA2_ch9_cpu2_irq | HPDMA3_ch9_cpu2_irq | SPI7_irq | |
| 26 | HPDMA1_ch10_cpu2_irq | HPDMA2_ch10_cpu2_irq | HPDMA3_ch10_cpu2_irq | SPI8_irq | |
| 27 | HPDMA1_ch11_cpu2_irq | HPDMA2_ch11_cpu2_irq | HPDMA3_ch11_cpu2_irq | - | |
| 28 | HPDMA1_ch12_cpu2_irq | HPDMA2_ch12_cpu2_irq | HPDMA3_ch12_cpu2_irq | SAI1_irq | |
| 29 | HPDMA1_ch13_cpu2_irq | HPDMA2_ch13_cpu2_irq | HPDMA3_ch13_cpu2_irq | SAI2_irq | |
| 30 | HPDMA1_ch14_cpu2_irq | HPDMA2_ch14_cpu2_irq | HPDMA3_ch14_cpu2_irq | SAI3_irq | |
| 31 | HPDMA1_ch15_cpu2_irq | HPDMA2_ch15_cpu2_irq | HPDMA3_ch15_cpu2_irq | SAI4_irq | |
| HEBS = 1 | 0 | EXTI2_EXTI0_irq | PWRCTL_wkup1_irq | TIM1_brk_irq | I2C1_glb_irq |
| 1 | EXTI2_EXTI1_irq | PWRCTL_wkup2_irq | TIM1_cc_irq | I2C2_glb_irq | |
| 2 | EXTI2_EXTI2_irq | PWRCTL_wkup3_irq | TIM1_trg_irq | I2C3_glb_irq | |
| 3 | EXTI2_EXTI3_irq | PWRCTL_wkup4_irq | TIM1_upd_irq | I2C4_glb_irq | |
| 4 | EXTI2_EXTI4_irq | PWRCTL_wkup5_irq | TIM2_irq | I2C5_glb_irq | |
| 5 | EXTI2_EXTI5_irq | PWRCTL_wkup6_irq | TIM3_irq | I2C6_glb_irq | |
| 6 | EXTI2_EXTI6_irq | - | TIM4_irq | I2C7_glb_irq | |
| 7 | EXTI2_EXTI7_irq | ADC1_irq | TIM5_gbl_irq | I2C8_glb_irq | |
| 8 | EXTI2_EXTI8_irq | ADC2_irq | TIM6_gbl_irq | I3C1_glb_irq | |
| 9 | EXTI2_EXTI9_irq | ADC3_irq | TIM7_gbl_irq | I3C2_glb_irq | |
| 10 | EXTI2_EXTI10_irq | - | TIM8_brk_irq | I3C3_glb_irq | |
| 11 | EXTI2_EXTI11_irq | FMC_glb_irq | TIM8_cc_irq | I3C4_glb_irq | |
| 12 | EXTI2_EXTI12_irq | OTFDEC1_irq | TIM8_trg_irq | - | |
| 13 | EXTI2_EXTI13_irq | OTFDEC2_irq | TIM8_upd_irq | SPDIF_RX_irq | |
| 14 | EXTI2_EXTI14_irq | OCTOSPI2_irq | TIM10_gbl_irq | SDMMC1_irq | |
| 15 | EXTI2_EXTI15_irq | OCTOSPI1_irq | TIM11_gbl_irq | SDMMC2_irq | |
| 16 | EXTI1_EXTI0_irq | - | TIM12_gbl_irq | SDMMC3_irq |
Table 1029. Hardware event mapping 0 to 3 (continued)
| Bank | Event | EXTMUX(7:0) = 0 | EXTMUX(7:0) = 1 | EXTMUX(7:0) = 2 | EXTMUX(7:0) = 3 |
|---|---|---|---|---|---|
| HEBS = 1 | 17 | EXTI1_EXTI1_irq | FDCAN_cal_irq | TIM13_gbl_irq | HSEM1_IT0_irq |
| 18 | EXTI1_EXTI2_irq | FDCAN1_intr0_irq | TIM14_gbl_irq | HSEM1_sIT0_irq | |
| 19 | EXTI1_EXTI3_irq | FDCAN1_intr1_irq | TIM15_gbl_irq | HSEM1_sIT1_irq | |
| 20 | EXTI1_EXTI4_irq | FDCAN2_intr0_irq | TIM16_gbl_irq | HSEM1_IT1_irq | |
| 21 | EXTI1_EXTI5_irq | FDCAN2_intr1_irq | TIM17_gbl_irq | HSEM1_IT3_irq | |
| 22 | EXTI1_EXTI6_irq | FDCAN3_intr0_irq | TIM20_brk_irq | - | |
| 23 | EXTI1_EXTI7_irq | FDCAN3_intr1_irq | TIM20_cc_irq | EXTI_wwdg2_wkup | |
| 24 | EXTI1_EXTI8_irq | - | TIM20_trg_irq | EXTI_wwdg1_wkup | |
| 25 | EXTI1_EXTI9_irq | FPU_irq | TIM20_upd_irq | IWDG1_ew_irq | |
| 26 | EXTI1_EXTI10_irq | GPU_IT_irq | - | IWDG2_ew_irq | |
| 27 | EXTI1_EXTI11_irq | - | - | IWDG3_ew_irq | |
| 28 | EXTI1_EXTI12_irq | LTDC_cpu1_I01_irq | - | IWDG4_ew_irq | |
| 29 | EXTI1_EXTI13_irq | LTDC_cpu1_I01_err_irq | - | IWDG5_ew_irq | |
| 30 | EXTI1_EXTI14_irq | LTDC_cpu1_I2_irq | - | WWDG1_ew_irq | |
| 31 | EXTI1_EXTI15_irq | LTDC_cpu1_I2_err_irq | - | WWDG2_ew_irq |
Table 1030. Hardware event mapping 4 to 7
| Bank | Event | EXTMUX(7:0) = 4 | EXTMUX(7:0) = 5 | EXTMUX(7:0) = 6 | EXTMUX(7:0) = 7 |
|---|---|---|---|---|---|
| HEBS = 0 | 0 | HWEVENTA - | LTDC_cpu2_I01_irq | MDF1_FLT0_irq | USART1_irq |
| 1 | HWEVENTA - | LTDC_cpu2_I01_err_irq | MDF1_FLT1_irq | USART2_irq | |
| 2 | HWEVENTB - | LTDC_cpu2_I2_irq | MDF1_FLT2_irq | USART3_irq | |
| 3 | HWEVENTB - | LTDC_cpu2_I2_err_irq | MDF1_FLT3_irq | UART4_irq | |
| 4 | - | - | MDF1_FLT4_irq | UART5_irq | |
| 5 | cpu2_sysreset_irq | DCMIPP_glb_irq | MDF1_FLT5_irq | USART6_irq | |
| 6 | VDDcpu_vd_irq | DSIhost_com_cpu1_irq | MDF1_FLT6_irq | UART7_irq | |
| 7 | VDDcore_vd_irq | DSIhost_com_cpu2_irq | MDF1_FLT7_irq | UART8_irq | |
| 8 | TEMP_irq | - | ADF1_irq | UART9_irq | |
| 9 | RETRAMcrc_err_irq | CSIhost_irq | - | LPUART1_irq | |
| 10 | - | CCI_irq | IPCC1_rx0_cpu1_irq | - | |
| 11 | CRYP1_irq | - | IPCC1_rx0_cpu1_s_irq | USART1_RX_sreq | |
| 12 | CRYP2_irq | ETH1_lpi_irq | IPCC1_tx0_cpu1_irq | USART1_TX_sreq | |
| 13 | SAES_irq | ETH1_pmt_irq | IPCC1_tx0_cpu1_s_irq | USART2_RX_sreq | |
| 14 | HASH_irq | ETH1_sbd_irq | IPCC2_rx1_cpu1_irq | USART2_TX_sreq |
Table 1030. Hardware event mapping 4 to 7 (continued)
| Bank | Event | EXTMUX(7:0) = 4 | EXTMUX(7:0) = 5 | EXTMUX(7:0) = 6 | EXTMUX(7:0) = 7 |
|---|---|---|---|---|---|
| HEBS = 0 | 15 | PKA_irq | ETH2_lpi_irq | IPCC2_rx1_cpu1_s_irq | USART3_RX_sreq |
| 16 | RNG_irq | ETH2_pmt_irq | IPCC2_tx1_cpu1_irq | USART3_TX_sreq | |
| 17 | TAMP_cpu1_s_wkup | ETH2_sbd_irq | IPCC2_tx1_cpu1_s_irq | UART4_RX_sreq | |
| 18 | TAMP_cpu1_wkup | - | IPCC1_rx1_cpu2_irq | UART4_TX_sreq | |
| 19 | TAMP_cpu2_s_wkup | ETHSW_fsc_irq | IPCC1_rx1_cpu2_s_irq | UART5_RX_sreq | |
| 20 | TAMP_cpu2_wkup | ETHSW_msg_buf_irq | IPCC1_tx1_cpu2_irq | UART5_TX_sreq | |
| 21 | TAMP_cpu3_wkup | ETHSW_combined_irq | IPCC1_tx1_cpu2_s_irq | USART6_RX_sreq | |
| 22 | - | - | IPCC2_rx1_cpu2_irq | USART6_TX_sreq | |
| 23 | IAC_cpu1_irq | venc_gbl_irq | IPCC2_rx1_cpu2_s_irq | UART7_RX_sreq | |
| 24 | IAC_cpu2_irq | vdec_gbl_irq | IPCC2_tx1_cpu2_irq | UART7_TX_sreq | |
| 25 | - | - | IPCC2_tx1_cpu2_s_irq | UART8_RX_sreq | |
| 26 | RTC_cpu1_wkup | rcc_hsifmon_cpu1_irq | IPCC2_rx0_cpu3_irq | UART8_TX_sreq | |
| 27 | RTC_cpu1_s_wkup | rcc_hsifmon_cpu2_irq | IPCC2_tx0_cpu3_irq | UART9_RX_sreq | |
| 28 | RTC_cpu2_wkup | - | ddrphy_irq | UART9_TX_sreq | |
| 29 | RTC_cpu2_s_wkup | TIM8_CH1_sreq | ddrperfm_irq | LPUART1_RX_sreq | |
| 30 | - | TIM8_CH2_sreq | umctl2_irq | LPUART1_TX_sreq | |
| 31 | - | - | - | - | |
| HEBS = 1 | 0 | TIM1_CH1_sreq | TIM8_CH3_sreq | dfi_error_irq | SPI1_RX_sreq |
| 1 | TIM1_CH2_sreq | TIM8_CH4_sreq | SERF_irq | SPI1_TX_sreq | |
| 2 | TIM1_CH3_sreq | TIM8_UP_sreq | - | SPI2_RX_sreq | |
| 3 | TIM1_CH4_sreq | TIM8_TRIG_sreq | I2C1_EVC_sreq | SPI2_TX_sreq | |
| 4 | TIM1_TRIG_sreq | TIM8_COM_sreq | I2C2_EVC_sreq | SPI3_RX_sreq | |
| 5 | TIM1_UP_sreq | TIM15_CH1_sreq | I2C3_EVC_sreq | SPI3_TX_sreq | |
| 6 | TIM1_COM_sreq | TIM15_UP_sreq | I2C4_EVC_sreq | SPI4_RX_sreq | |
| 7 | TIM2_CH1_sreq | TIM15_TRIG_sreq | I2C5_EVC_sreq | SPI4_TX_sreq | |
| 8 | TIM2_CH2_sreq | TIM15_COM_sreq | I2C6_EVC_sreq | SPI5_RX_sreq | |
| 9 | TIM2_CH3_sreq | TIM16_CH1_sreq | I2C7_EVC_sreq | SPI5_TX_sreq | |
| 10 | TIM2_CH4_sreq | TIM16_UP_sreq | I2C8_EVC_sreq | SPI6_RX_sreq | |
| 11 | TIM2_UP_sreq | TIM17_CH1_sreq | I2C1_RX_sreq | SPI6_TX_sreq | |
| 12 | TIM3_CH1_sreq | TIM17_UP_sreq | I2C1_TX_sreq | SPI7_RX_sreq | |
| 13 | TIM3_CH2_sreq | TIM20_CH1_sreq | I2C2_RX_sreq | SPI7_TX_sreq | |
| 14 | TIM3_CH3_sreq | TIM20_CH2_sreq | I2C2_TX_sreq | SPI8_RX_sreq | |
| 15 | TIM3_CH4_sreq | TIM20_CH3_sreq | I2C3_RX_sreq | SPI8_TX_sreq | |
| 16 | TIM3_UP_sreq | TIM20_CH4_sreq | I2C3_TX_sreq | - |
Table 1030. Hardware event mapping 4 to 7 (continued)
| Bank | Event | EXTMUX(7:0) = 4 | EXTMUX(7:0) = 5 | EXTMUX(7:0) = 6 | EXTMUX(7:0) = 7 |
|---|---|---|---|---|---|
| HEBS = 1 | 17 | TIM3_TRIG_sreq | TIM20_UP_sreq | I2C4_RX_sreq | SAI1_A_sreq |
| 18 | TIM4_CH1_sreq | TIM20_TRIG_sreq | I2C4_TX_sreq | SAI1_B_sreq | |
| 19 | TIM4_CH2_sreq | TIM20_COM_sreq | I2C5_RX_sreq | SAI2_A_sreq | |
| 20 | TIM4_CH3_sreq | LPTIMER1_IC1_sreq | I2C5_TX_sreq | SAI2_B_sreq | |
| 21 | TIM4_CH4_sreq | LPTIMER1_IC2_sreq | I2C6_RX_sreq | SAI3_A_sreq | |
| 22 | TIM4_UP_sreq | LPTIMER1_UE_sreq | I2C6_TX_sreq | SAI3_B_sreq | |
| 23 | TIM5_CH1_sreq | LPTIMER2_IC1_sreq | I2C7_RX_sreq | SAI4_A_sreq | |
| 24 | TIM5_CH2_sreq | LPTIMER2_IC2_sreq | I2C7_TX_sreq | SAI4_B_sreq | |
| 25 | TIM5_CH3_sreq | LPTIMER2_UE_sreq | I2C8_RX_sreq | - | |
| 26 | TIM5_CH4_sreq | LPTIMER3_IC1_sreq | I2C8_TX_sreq | DCMI_sreq | |
| 27 | TIM5_UP_sreq | LPTIMER3_UE_sreq | - | - | |
| 28 | TIM5_TRIG_sreq | LPTIMER4_IC1_sreq | ADC1_sreq | USBPD_TX_sreq | |
| 29 | TIM6_UP_sreq | LPTIMER4_UE_sreq | ADC2_sreq | USBPD_RX_sreq | |
| 30 | TIM7_UP_sreq | LPTIMER5_IC1_sreq | ADC3_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
| Bank | Event | EXTMUX(7:0) = 8 | EXTMUX(7:0) = 9 | Bank | Event | EXTMUX(7:0) = 8 |
|---|---|---|---|---|---|---|
| HEBS = 0 | 0 | FMC_TXRX_sreq | EXTI_iwdg1_wkup | HEBS = 1 | 0 | SYS_DS_EXIT |
| 1 | FMC_BCH_sreq | EXTI_iwdg2_wkup | 1 | CPU1_DS_EXIT | ||
| 2 | OCTOSPI2_sreq | EXTI_iwdg3_wkup | 2 | CPU2_DS_EXIT | ||
| 3 | OCTOSPI1_sreq | EXTI_iwdg4_wkup | 3 | PWRDS_CPU1 | ||
| 4 | - | EXTI_iwdg5_wkup | 4 | PWRDS_CPU2 | ||
| 5 | SPDIF_RX_DT_sreq | EXTI_pwr_pvd_wkup | 5 | PWRDS_SYS | ||
| 6 | SPDIF_RX_CS_sreq | EXTI_cpu1_sev_irq | 6 | C1_STBY_EXIT | ||
| 7 | - | EXTI_cpu2_sev_irq | 7 | C2_STBY_EXIT | ||
| 8 | MDF1_FLT0_sreq | EXTI_cpu3_sev_irq | 8 | AWU_WAKE_CPU1_V33 | ||
| 9 | MDF1_FLT1_sreq | - | 9 | AWU_WAKE_CPU2_V33 | ||
| 10 | MDF1_FLT2_sreq | RCC_cpu1_wkup_irq | 10 | PWRWAKE_CPU1 | ||
| 11 | MDF1_FLT3_sreq | RCC_cpu2_wkup_irq | 11 | PWRWAKE_CPU2 | ||
| 12 | MDF1_FLT4_sreq | RCC_cpu1_irq | 12 | PWRWAKE_SYS | ||
| 13 | MDF1_FLT5_sreq | RCC_cpu2_irq | 13 | - |
Table 1031. Hardware event mapping 8 to 9 (continued)
| Bank | Event | EXTMUX(7:0) = 8 | EXTMUX(7:0) = 9 | Bank | Event | EXTMUX(7:0) = 8 |
|---|---|---|---|---|---|---|
| HEBS = 0 | 14 | MDF1_FLT6_sreq | RAMCFG_irq | HEBS = 1 | 14 | cpu1_c0_standbywfi |
| 15 | MDF1_FLT7_sreq | - | 15 | cpu1_c1_standbywfi | ||
| 16 | ADF1_FLT0_sreq | pcie_cfg_aer_rc_err_int | 16 | cpu1_standbywfi_l2 | ||
| 17 | - | pcie_cfg_sys_err_rc_int | 17 | cpu2_sleeping | ||
| 18 | CRYP1_IN_sreq | pcie_cfg_link_auto_bw_msi | 18 | cpu2_sleepdeep | ||
| 19 | CRYP1_OUT_sreq | pcie_cfg_bw_mgt_int | 19 | cpu3_sleeping | ||
| 20 | CRYP2_IN_sreq | pcie_cfg_link_auto_bw_int | 20 | cpu3_sleepdeep | ||
| 21 | CRYP2_OUT_sreq | pcie_cfg_aer_rc_err_msi | 21 | - | ||
| 22 | HASH2_IN_sreq | pcie_cfg_pme_int | 22 | exti_pwr_pvm_wkup | ||
| 23 | SAES_IN_sreq | pcie_cfg_pme_msi | 23 | exti_usbh_wkup | ||
| 24 | SAES_OUT_sreq | pcie_cfg_bw_mgt_msi | 24 | exti_usb3dr_wkup | ||
| 25 | - | pcie_1_link_rst_int | 25 | exti_combophy_wkup | ||
| 26 | USBDPD_gbl_irq | pcie_1_ptm_responder_rdy | 26 | exti_usbtc_vbus_detect | ||
| 27 | USBH_ohci_irq | pcie_1_ptm_clock_updated | 27 | exti_usbtc_vsafe5V | ||
| 28 | USBH_ehci_irq | pcie_INTA | 28 | exti_vddgpu_vd_irq | ||
| 29 | USB3_bc_irq | pcie_INTB | 29 | - | ||
| 30 | USB3_host_legacy_irq | pcie_INTC | 30 | - | ||
| 31 | - | pcie_INTD | 31 | - |
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:
- • Maintain the clock and power to the processors when in low-power modes.
- • Maintain the clock and power to the system debug and trace components when in low-power modes.
- • Stop the clock to certain peripherals (CAN, SMBUS timeout, watchdogs, timers, RTC, DMAs) when a processor is stopped in debug mode.
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:
- • all DMA engines (HPDMAx and LPDMA1)
- • all timers (TIMx, LPTIMx)
- • all I2C peripherals (to prevent SMBus timeout)
- • FDCAN
- • all watchdog timers (WWDGx, IWDGx)
- • RTC
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:
- • When SPIDEN = 1 (secure privilege debug enabled), all bits can be modified by a secure access (PPROT[1] = 0). Only bits corresponding to non-secure peripherals (or DMA channels) can be modified by a non-secure access (PPROT[1] = 1). All bits can be read by both non-secure or secure accesses.
- When SPIDEN = 0 (secure privilege debug disabled), both secure and non-secure accesses are possible. Only bits corresponding to non-secure peripherals (or DMA channels) can be modified. All bits can be read.
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
| Inputs | IWDG1 frozen? | ||||
|---|---|---|---|---|---|
| IWDG1(1) | SPIDEN | WDFZCTL(2) | DEBUGACK (Cortex-A35 core0) | DEBUGACK (Cortex-A35 core1) | |
| 0 | X | X | X | X | No |
| 1 | 0 | X | 0 | X | No |
| 1 | 0 | X | X | 0 | No |
| 1 | 0 | X | 1 | 1 | Yes |
| 1 | 1 | 0 | 0 | 0 | No |
| 1 | 1 | 0 | 1 | X | Yes |
| 1 | 1 | 0 | X | 1 | Yes |
| 1 | 1 | 1 | 0 | X | No |
| 1 | 1 | 1 | X | 0 | No |
| 1 | 1 | 1 | 1 | 1 | Yes |
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
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| MAJOR_REV_ID[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | DEV_ID[11:0] | |||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | ||||
Example 0x2000 = revision 2
Bits 15:12 Reserved, must be kept at reset value.
Bits 11:0 DEV_ID[11:0] : Device identifier0x0505: STM32MP23/25xx
DBGMCU configuration register (DBGMCU_CR)
Address offset: 0x004
Reset value: 0x0000 0010
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 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 |
| rw | rw | rw | rs |
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
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DBG_STGEN_STOP | WDFZCTL |
| rw | rs |
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
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 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 |
| rw | rw | rw | rw | rw | rw | rw | rs | rw | rw | rw | rw | rw | rw | rw | rs |
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
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 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 |
| rw | rw | rw | rw | rw | rw | rw | rs | rw | rw | rw | rw | rw | rw | rw | rs |
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
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 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 |
| rw | rw | rw | rw | rw | rw | rw | rs | rw | rw | rw | rw | rw | rw | rw | rs |
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
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 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 |
| rw | rw | rw | rw | rw | rw | rw | rs | rw | rw | rw | rw | rw | rw | rw | rs |
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
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 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 |
| rw | rw | rw | rs |
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
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 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 |
| rw | rw | rw | rs |
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
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 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 |
| rw | rw | rw | rs |
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
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| 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. |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 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 |
| rw | rw | rs | rw | rw | rw | rw | rw | rw | rw | rs |
Bits 31:30 Reserved, must be kept at reset value.
Bit 29 DBG_TIM11_STOP : TIM11 stop in debug0: 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 debug0: 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 debug0: 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 debug0: 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 25 DBG_I3C1_STOP: I3C1 SMBUS timeout stop in debug
0: Normal operation. I3C1 SMBUS timeout continues to operate while Cortex-A35 is in debug mode.
1: Stop in debug. I3C1 SMBUS timeout is frozen while Cortex-A35 is in debug mode. - Bit 24 DBG_I2C7_STOP: I2C7 SMBUS timeout stop in debug
0: Normal operation. I2C7 SMBUS timeout continues to operate while Cortex-A35 is in debug mode.
1: Stop in debug. I2C7 SMBUS timeout is frozen while Cortex-A35 is in debug mode. - Bit 23 DBG_I2C6_STOP: I2C6 SMBUS timeout stop in debug
0: Normal operation. I2C6 SMBUS timeout continues to operate while Cortex-A35 is in debug mode.
1: Stop in debug. I2C6 SMBUS timeout is frozen while Cortex-A35 is in debug mode. - Bit 22 DBG_I2C5_STOP: I2C5 SMBUS timeout stop in debug
0: Normal operation. I2C5 SMBUS timeout continues to operate while Cortex-A35 is in debug mode.
1: Stop in debug. I2C5 SMBUS timeout is frozen while Cortex-A35 is in debug mode. - Bit 21 DBG_I2C4_STOP: I2C4 SMBUS timeout stop in debug
0: Normal operation. I2C4 SMBUS timeout continues to operate while Cortex-A35 is in debug mode.
1: Stop in debug. I2C4 SMBUS timeout is frozen while Cortex-A35 is in debug mode. - Bit 20 DBG_I2C3_STOP: I2C3 SMBUS timeout stop in debug
0: Normal operation. I2C3 SMBUS timeout continues to operate while Cortex-A35 is in debug mode.
1: Stop in debug. I2C3 SMBUS timeout is frozen while Cortex-A35 is in debug mode. - Bit 19 DBG_I2C2_STOP: I2C2 SMBUS timeout stop in debug
0: Normal operation. I2C2 SMBUS timeout continues to operate while Cortex-A35 is in debug mode.
1: Stop in debug. I2C2 SMBUS timeout is frozen while Cortex-A35 is in debug mode. - Bit 18 DBG_I2C1_STOP: I2C1 SMBUS timeout stop in debug
0: Normal operation. I2C1 SMBUS timeout continues to operate while Cortex-A35 is in debug mode.
1: Stop in debug. I2C1 SMBUS timeout is frozen while Cortex-A35 is in debug mode. - Bits 17:11 Reserved, must be kept at reset value.
- Bit 10 DBG_LPTIM2_STOP: LPTIM2 stop in debug
0: Normal operation. LPTIM2 continues to operate while Cortex-A35 is in debug mode.
1: Stop in debug. LPTIM2 is frozen while Cortex-A35 is in debug mode. - Bit 9 DBG_LPTIM1_STOP: LPTIM1 stop in debug
0: Normal operation. LPTIM1 continues to operate while Cortex-A35 is in debug mode.
1: Stop in debug. LPTIM1 is frozen while Cortex-A35 is in debug mode. - Bit 8 DBG_TIM14_STOP: TIM14 stop in debug
0: Normal operation. TIM14 continues to operate while Cortex-A35 is in debug mode.
1: Stop in debug. TIM14 is frozen while Cortex-A35 is in debug mode. - Bit 7 DBG_TIM13_STOP: TIM13 stop in debug
0: Normal operation. TIM13 continues to operate while Cortex-A35 is in debug mode.
1: Stop in debug. TIM13 is frozen while Cortex-A35 is in debug mode. - Bit 6 DBG_TIM12_STOP: TIM12 stop in debug
0: Normal operation. TIM12 continues to operate while Cortex-A35 is in debug mode.
1: Stop in debug. TIM12 is frozen while Cortex-A35 is in debug mode. - Bit 5 DBG_TIM7_STOP: TIM7 stop in debug
0: Normal operation. TIM7 continues to operate while Cortex-A35 is in debug mode.
1: Stop in debug. TIM7 is frozen while Cortex-A35 is in debug mode.
Bit 4 DBG_TIM6_STOP: TIM6 stop in debug
- 0: Normal operation. TIM6 continues to operate while Cortex-A35 is in debug mode.
- 1: Stop in debug. TIM6 is frozen while Cortex-A35 is in debug mode.
Bit 3 DBG_TIM5_STOP: TIM5 stop in debug
- 0: Normal operation. TIM5 continues to operate while Cortex-A35 is in debug mode.
- 1: Stop in debug. TIM5 is frozen while Cortex-A35 is in debug mode.
Bit 2 DBG_TIM4_STOP: TIM4 stop in debug
- 0: Normal operation. TIM4 continues to operate while Cortex-A35 is in debug mode.
- 1: Stop in debug. TIM4 is frozen while Cortex-A35 is in debug mode.
Bit 1 DBG_TIM3_STOP: TIM3 stop in debug
- 0: Normal operation. TIM3 continues to operate while Cortex-A35 is in debug mode.
- 1: Stop in debug. TIM3 is frozen while Cortex-A35 is in debug mode.
Bit 0 DBG_TIM2_STOP: TIM2 stop in debug
- 0: Normal operation. TIM2 continues to operate while Cortex-A35 is in debug mode.
- 1: Stop in debug. TIM2 is frozen while Cortex-A35 is in debug mode.
DBGMCU APB1 peripheral freeze register CPU2 (DBGMCU_APB1FZ2)
Address offset: 0x030
Reset value: 0x0000 0000
| RM0457 | Bits 5:3 Bits 2:0 | column_3 | POSTDIV2[2:0] POSTDIV1[2:0] | column_5 | column_6 | column_7 | column_8 | column_9 | column_10 | column_11 | column_12 | column_13 | column_14 | column_15 | column_16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| DBG_T | DBG_T | DBG_I | DBG_I | DBG_I | DBG_I | DBG_I | DBG_I | DBG_I | DBG_I | DBG_I | DBG_I | ||||
| Res. | Res. | IM11_S | IM10_S | 3C3_S | 3C2_S | 3C1_S | 2C7_S | 2C6_S | 2C5_S | 2C4_S | 2C3_S | 2C2_S | 2C1_S | Res. | Res. |
| TOP | TOP | TOP | TOP | TOP | TOP | TOP | TOP | TOP | TOP | TOP | TOP | ||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| DBG_L | DBG_L | DBG_T | DBG_T | DBG_T | DBG_T | DBG_T | DBG_T | DBG_T | DBG_T | DBG_T | |||||
| Res. | Res. | Res. | Res. | Res. | PTIM2_ | PTIM1_ | IM14_S | IM13_S | IM12_S | IM7_ST | IM6_ST | IM5_ST | IM4_ST | IM3_ST | IM2_ST |
| STOP | STOP | TOP | TOP | TOP | OP | OP | OP | OP | OP | OP | |||||
| rw | rw | rs | rw | rw | rw | rw | rw | rw | rw | rs | |||||
| 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 | |||||||||||||
| RM0457 Rev 5 | 5817/ | 5881 |
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-M33 is in debug mode.
- 1: Stop in debug. TIM11 is frozen while Cortex-M33 is in debug mode.
Bit 28 DBG_TIM10_STOP: TIM10 stop in debug
- 0: Normal operation. TIM10 continues to operate while Cortex-M33 is in debug mode.
- 1: Stop in debug. TIM10 is frozen while Cortex-M33 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-M33 is in debug mode.
- 1: Stop in debug. I3C3 SMBUS timeout is frozen while Cortex-M33 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-M33 is in debug mode.
- 1: Stop in debug. I3C2 SMBUS timeout is frozen while Cortex-M33 is in debug mode.
- Bit 25 DBG_I3C1_STOP: I3C1 SMBUS timeout stop in debug
0: Normal operation. I3C1 SMBUS timeout continues to operate while Cortex-M33 is in debug mode.
1: Stop in debug. I3C1 SMBUS timeout is frozen while Cortex-M33 is in debug mode. - Bit 24 DBG_I2C7_STOP: I2C7 SMBUS timeout stop in debug
0: Normal operation. I2C7 SMBUS timeout continues to operate while Cortex-M33 is in debug mode.
1: Stop in debug. I2C7 SMBUS timeout is frozen while Cortex-M33 is in debug mode. - Bit 23 DBG_I2C6_STOP: I2C6 SMBUS timeout stop in debug
0: Normal operation. I2C6 SMBUS timeout continues to operate while Cortex-M33 is in debug mode.
1: Stop in debug. I2C6 SMBUS timeout is frozen while Cortex-M33 is in debug mode. - Bit 22 DBG_I2C5_STOP: I2C5 SMBUS timeout stop in debug
0: Normal operation. I2C5 SMBUS timeout continues to operate while Cortex-M33 is in debug mode.
1: Stop in debug. I2C5 SMBUS timeout is frozen while Cortex-M33 is in debug mode. - Bit 21 DBG_I2C4_STOP: I2C4 SMBUS timeout stop in debug
0: Normal operation. I2C4 SMBUS timeout continues to operate while Cortex-M33 is in debug mode.
1: Stop in debug. I2C4 SMBUS timeout is frozen while Cortex-M33 is in debug mode. - Bit 20 DBG_I2C3_STOP: I2C3 SMBUS timeout stop in debug
0: Normal operation. I2C3 SMBUS timeout continues to operate while Cortex-M33 is in debug mode.
1: Stop in debug. I2C3 SMBUS timeout is frozen while Cortex-M33 is in debug mode. - Bit 19 DBG_I2C2_STOP: I2C2 SMBUS timeout stop in debug
0: Normal operation. I2C2 SMBUS timeout continues to operate while Cortex-M33 is in debug mode.
1: Stop in debug. I2C2 SMBUS timeout is frozen while Cortex-M33 is in debug mode. - Bit 18 DBG_I2C1_STOP: I2C1 SMBUS timeout stop in debug
0: Normal operation. I2C1 SMBUS timeout continues to operate while Cortex-M33 is in debug mode.
1: Stop in debug. I2C1 SMBUS timeout is frozen while Cortex-M33 is in debug mode. - Bits 17:11 Reserved, must be kept at reset value.
- Bit 10 DBG_LPTIM2_STOP: LPTIM2 stop in debug
0: Normal operation. LPTIM2 continues to operate while Cortex-M33 is in debug mode.
1: Stop in debug. LPTIM2 is frozen while Cortex-M33 is in debug mode. - Bit 9 DBG_LPTIM1_STOP: LPTIM1 stop in debug
0: Normal operation. LPTIM1 continues to operate while Cortex-M33 is in debug mode.
1: Stop in debug. LPTIM1 is frozen while Cortex-M33 is in debug mode. - Bit 8 DBG_TIM14_STOP: TIM14 stop in debug
0: Normal operation. TIM14 continues to operate while Cortex-M33 is in debug mode.
1: Stop in debug. TIM14 is frozen while Cortex-M33 is in debug mode. - Bit 7 DBG_TIM13_STOP: TIM13 stop in debug
0: Normal operation. TIM13 continues to operate while Cortex-M33 is in debug mode.
1: Stop in debug. TIM13 is frozen while Cortex-M33 is in debug mode. - Bit 6 DBG_TIM12_STOP: TIM12 stop in debug
0: Normal operation. TIM12 continues to operate while Cortex-M33 is in debug mode.
1: Stop in debug. TIM12 is frozen while Cortex-M33 is in debug mode. - Bit 5 DBG_TIM7_STOP: TIM7 stop in debug
0: Normal operation. TIM7 continues to operate while Cortex-M33 is in debug mode.
1: Stop in debug. TIM7 is frozen while Cortex-M33 is in debug mode.
Bit 4 DBG_TIM6_STOP: TIM6 stop in debug
- 0: Normal operation. TIM6 continues to operate while Cortex-M33 is in debug mode.
- 1: Stop in debug. TIM6 is frozen while Cortex-M33 is in debug mode.
Bit 3 DBG_TIM5_STOP: TIM5 stop in debug
- 0: Normal operation. TIM5 continues to operate while Cortex-M33 is in debug mode.
- 1: Stop in debug. TIM5 is frozen while Cortex-M33 is in debug mode.
Bit 2 DBG_TIM4_STOP: TIM4 stop in debug
- 0: Normal operation. TIM4 continues to operate while Cortex-M33 is in debug mode.
- 1: Stop in debug. TIM4 is frozen while Cortex-M33 is in debug mode.
Bit 1 DBG_TIM3_STOP: TIM3 stop in debug
- 0: Normal operation. TIM3 continues to operate while Cortex-M33 is in debug mode.
- 1: Stop in debug. TIM3 is frozen while Cortex-M33 is in debug mode.
Bit 0 DBG_TIM2_STOP: TIM2 stop in debug
- 0: Normal operation. TIM2 continues to operate while Cortex-M33 is in debug mode.
- 1: Stop in debug. TIM2 is frozen while Cortex-M33 is in debug mode.
DBGMCU APB2 peripheral freeze register CPU1 (DBGMCU_APB2FZ1)
Address offset: 0x034
Reset value: 0x0000 0000
| RM0457 | Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 | column_3 | column_4 | column_5 | column_6 | column_7 | column_8 | column_9 | column_10 | column_11 | column_12 | column_13 | column_14 | column_15 | column_16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 DBG_T | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | IM20_S TOP rw | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| DBG_F | DBG_T | DBG_T | DBG_T | DBG_T | DBG_T | ||||||||||
| Res. | Res. | DCAN_ | Res. | Res. | Res. | Res. | Res. | IM17_S | IM16_S | IM15_S | Res. | Res. | Res. | IM8_ST | IM1_ST |
| STOP | TOP | TOP | TOP | OP | OP | ||||||||||
| rw | rw | rw | rw | rw | rs | ||||||||||
| Bit 18 | DBG_TIM20_STOP | : TIM20 stop in debug | |||||||||||||
| Bit 13 | DBG_FDCAN_STOP | : FDCAN stop in debug | |||||||||||||
| Bit 7 | DBG_TIM17_STOP | : TIM17 stop in debug | |||||||||||||
| RM0457 Rev 5 | 5819/ | 5881 |
Bits 31:19 Reserved, must be kept at reset value.
Bit 18 DBG_TIM20_STOP: TIM20 stop in debug
- 0: Normal operation. TIM20 continues to operate while Cortex-A35 is in debug mode.
- 1: Stop in debug. TIM20 is frozen while Cortex-A35 is in debug mode.
Bits 17:14 Reserved, must be kept at reset value.
Bit 13 DBG_FDCAN_STOP: FDCAN stop in debug
- 0: Normal operation. FDCAN continues to operate while Cortex-A35 is in debug mode.
- 1: Stop in debug. FDCAN is frozen while Cortex-A35 is in debug mode.
Bits 12:8 Reserved, must be kept at reset value.
Bit 7 DBG_TIM17_STOP: TIM17 stop in debug
- 0: Normal operation. TIM17 continues to operate while Cortex-A35 is in debug mode.
- 1: Stop in debug. TIM17 is frozen while Cortex-A35 is in debug mode.
Bit 6 DBG_TIM16_STOP: TIM16 stop in debug
- 0: Normal operation. TIM16 continues to operate while Cortex-A35 is in debug mode.
- 1: Stop in debug. TIM16 is frozen while Cortex-A35 is in debug mode.
Bit 5 DBG_TIM15_STOP: TIM15 stop in debug
- 0: Normal operation. TIM15 continues to operate while Cortex-A35 is in debug mode.
- 1: Stop in debug. TIM15 is frozen while Cortex-A35 is in debug mode.
Bits 4:2 Reserved, must be kept at reset value.
Bit 1 DBG_TIM8_STOP: TIM8 stop in debug
- 0: Normal operation. TIM8 continues to operate while Cortex-A35 is in debug mode.
- 1: Stop in debug. TIM8 is frozen while Cortex-A35 is in debug mode.
Bit 0 DBG_TIM1_STOP: TIM1 stop in debug
- 0: Normal operation. TIM1 continues to operate while Cortex-A35 is in debug mode.
- 1: Stop in debug. TIM1 is frozen while Cortex-A35 is in debug mode.
DBGMCU APB2 peripheral freeze register CPU2 (DBGMCU_APB2FZ2)
Address offset: 0x038
Reset value: 0x0000 0000
| column_1 | Bit 6 Bit 5 Bit 1 Bit 0 | column_3 | column_4 | column_5 | column_6 | column_7 | column_8 | column_9 | column_10 | column_11 | column_12 | column_13 | column_14 | column_15 | RM0457 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 DBG_T | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | IM20_S TOP rw | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| DBG_F | DBG_T | DBG_T | DBG_T | DBG_T | DBG_T | ||||||||||
| Res. | Res. | DCAN_ | Res. | Res. | Res. | Res. | Res. | IM17_S | IM16_S | IM15_S | Res. | Res. | Res. | IM8_ST | IM1_ST |
| STOP | TOP | TOP | TOP | OP | OP | ||||||||||
| rw | rw | rw | rw | rw | rs | ||||||||||
| Bit 18 | DBG_TIM20_STOP | : TIM20 stop in debug | |||||||||||||
| Bit 13 | DBG_FDCAN_STOP | : FDCAN stop in debug | |||||||||||||
| Bit 7 | DBG_TIM17_STOP | : TIM17 stop in debug | |||||||||||||
| Bit 6 | DBG_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
- 0: Normal operation. TIM20 continues to operate while Cortex-M33 is in debug mode.
- 1: Stop in debug. TIM20 is frozen while Cortex-M33 is in debug mode.
Bits 17:14 Reserved, must be kept at reset value.
Bit 13 DBG_FDCAN_STOP: FDCAN stop in debug
- 0: Normal operation. FDCAN continues to operate while Cortex-M33 is in debug mode.
- 1: Stop in debug. FDCAN is frozen while Cortex-M33 is in debug mode.
Bits 12:8 Reserved, must be kept at reset value.
Bit 7 DBG_TIM17_STOP: TIM17 stop in debug
- 0: Normal operation. TIM17 continues to operate while Cortex-M33 is in debug mode.
- 1: Stop in debug. TIM17 is frozen while Cortex-M33 is in debug mode.
Bit 6 DBG_TIM16_STOP: TIM16 stop in debug
- 0: Normal operation. TIM16 continues to operate while Cortex-M33 is in debug mode.
- 1: Stop in debug. TIM16 is frozen while Cortex-M33 is in debug mode.
Bit 5 DBG_TIM15_STOP: TIM15 stop in debug
- 0: Normal operation. TIM15 continues to operate while Cortex-M33 is in debug mode.
- 1: Stop in debug. TIM15 is frozen while Cortex-M33 is in debug mode.
Bits 4:2 Reserved, must be kept at reset value.
Bit 1 DBG_TIM8_STOP: TIM8 stop in debug
- 0: Normal operation. TIM8 continues to operate while Cortex-M33 is in debug mode.
- 1: Stop in debug. TIM8 is frozen while Cortex-M33 is in debug mode.
Bit 0 DBG_TIM1_STOP: TIM1 stop in debug
- 0: Normal operation. TIM1 continues to operate while Cortex-M33 is in debug mode.
- 1: Stop in debug. TIM1 is frozen while Cortex-M33 is in debug mode.
DBGMCU APB3 peripheral freeze register CPU1 (DBGMCU_APB3FZ1)
Address offset: 0x03C
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DBG_WWDG1_STOP | Res. | Res. | DBG_IWDG2_STOP | DBG_IWDG1_STOP | Res. |
| rw | rw | rw |
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-A35 is in debug mode.
- 1: Stop in debug. WWDG1 is frozen while Cortex-A35 is in debug mode.
Bits 4:3 Reserved, must be kept at reset value.
Bit 2 DBG_IWDG2_STOP: IWDG2 stop in debug
- 0: Normal operation. Watchdog continues to count while Cortex-A35 is in debug mode.
- 1: Stop in debug. Watchdog is frozen while Cortex-A35 is in debug mode.
Bit 1 DBG_IWDG1_STOP: IWDG1 stop in debug
- 0: Normal operation. Watchdog continues to count while Cortex-A35 is in debug mode.
- 1: Stop in debug. Watchdog is frozen while Cortex-A35 is in debug mode.
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_1 | column_2 | column_3 | column_4 | column_5 | column_6 | column_7 | column_8 | column_9 | column_10 | column_11 | column_12 | column_13 | column_14 | column_15 | RM0457 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 DBG_ WWDG | 4 DBG_I | 3 DBG_I | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | WDG4 _STOP | WDG3 _STOP | Res. | Res. | Res. | |
| rw | rw | rw | |||||||||||||
| Bit 5 | DBG_WWDG1_STOP | : WWDG1 stop in debug | |||||||||||||
| Bit 4 | DBG_IWDG4_STOP | : IWDG4 stop in debug | |||||||||||||
| Bit 3 | DBG_IWDG3_STOP | : IWDG3 stop in debug | |||||||||||||
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 DBG_ | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| DBG_I | DBG_L | DBG_L | DBG_L | DBG_I | DBG_R | ||||||||||
| Res. | Res. | Res. | Res. | Res. | Res. | 3C4_S | PTIM5_ | PTIM4_ | PTIM3_ | 2C8_S | Res. | Res. | Res. | TC_ST | |
| TOP | STOP | STOP | STOP | TOP | OP | ||||||||||
| rw | rs | rw | rw | rw | rw | rs | |||||||||
| Bit 10 | DBG_WWDG2_STOP | : WWDG2 stop in debug |
Bits 31:6 Reserved, must be kept at reset value.
Bit 5 DBG_WWDG1_STOP: WWDG1 stop in debug0: 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 debug0: 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 debug0: 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 debug0: 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.- Bit 8 DBG_I3C4_STOP: I3C4 stop in debug
0: Normal operation. I3C4 continues to operate while Cortex-A35 is in debug mode.
1: Stop in debug. I3C4 is frozen while Cortex-A35 is in debug mode. - Bit 7 DBG_LPTIM5_STOP: LPTIM5 stop in debug
0: Normal operation. LPTIM5 continues to operate while Cortex-A35 is in debug mode.
1: Stop in debug. LPTIM5 is frozen while Cortex-A35 is in debug mode. - Bit 6 DBG_LPTIM4_STOP: LPTIM4 stop in debug
0: Normal operation. LPTIM4 continues to operate while Cortex-A35 is in debug mode.
1: Stop in debug. LPTIM4 is frozen while Cortex-A35 is in debug mode. - Bit 5 DBG_LPTIM3_STOP: LPTIM3 stop in debug
0: Normal operation. LPTIM3 continues to operate while Cortex-A35 is in debug mode.
1: Stop in debug. LPTIM3 is frozen while Cortex-A35 is in debug mode. - Bit 4 DBG_I2C8_STOP: I2C8 stop in debug
0: Normal operation. I2C8 continues to operate while Cortex-A35 is in debug mode.
1: Stop in debug. I2C8 is frozen while Cortex-A35 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-A35 is in debug mode.
1: Stop in debug. RTC clock is suspended while Cortex-A35 is in debug mode.
DBGMCU APBSR peripheral freeze register CPU2 (DBGMCU_APBSRFZ2)
Address offset: 0x048
Reset value: 0x0000 0000
| RM0457 | Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 0 | column_3 | column_4 | column_5 | column_6 | column_7 | column_8 | column_9 | column_10 | column_11 | column_12 | column_13 | column_14 | column_15 | column_16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 DBG_ | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| DBG_I | DBG_L | DBG_L | DBG_L | DBG_I | DBG_R | ||||||||||
| Res. | Res. | Res. | Res. | Res. | Res. | 3C4_S | PTIM5_ | PTIM4_ | PTIM3_ | 2C8_S | Res. | Res. | Res. | TC_ST | |
| TOP | STOP | STOP | STOP | TOP | OP | ||||||||||
| rw | rs | rw | rw | rw | rw | rs | |||||||||
| Bit 10 | DBG_WWDG2_STOP | : WWDG2 stop in debug | |||||||||||||
| Bit 8 | DBG_I3C4_STOP | : I3C4 stop in debug | |||||||||||||
| RM0457 Rev 5 | 5823/ | 5881 |
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-M33 is in debug mode.
1: Stop in debug. WWDG2 is frozen while Cortex-M33 is in debug mode. - Bit 9 Reserved, must be kept at reset value.
- Bit 8 DBG_I3C4_STOP: I3C4 stop in debug
0: Normal operation. I3C4 continues to operate while Cortex-M33 is in debug mode.
1: Stop in debug. I3C4 is frozen while Cortex-M33 is in debug mode.
Bit 7 DBG_LPTIM5_STOP: LPTIM5 stop in debug
- 0: Normal operation. LPTIM5 continues to operate while Cortex-M33 is in debug mode.
- 1: Stop in debug. LPTIM5 is frozen while Cortex-M33 is in debug mode.
Bit 6 DBG_LPTIM4_STOP: LPTIM4 stop in debug
- 0: Normal operation. LPTIM4 continues to operate while Cortex-M33 is in debug mode.
- 1: Stop in debug. LPTIM4 is frozen while Cortex-M33 is in debug mode.
Bit 5 DBG_LPTIM3_STOP: LPTIM3 stop in debug
- 0: Normal operation. LPTIM3 continues to operate while Cortex-M33 is in debug mode.
- 1: Stop in debug. LPTIM3 is frozen while Cortex-M33 is in debug mode.
Bit 4 DBG_I2C8_STOP: I2C8 stop in debug
- 0: Normal operation. I2C8 continues to operate while Cortex-M33 is in debug mode.
- 1: Stop in debug. I2C8 is frozen while Cortex-M33 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-M33 is in debug mode.
- 1: Stop in debug. RTC clock is suspended while Cortex-M33 is in debug mode.
DBGMCU APB5 peripheral freeze register CPU3 (DBGMCU_APBSRFZ3)
Address offset: 0x04C
Reset value: 0x0000 0000
| RM0457 | Bits 5:3 Bits 2:0 | column_3 | POSTDIV2[2:0] POSTDIV1[2:0] | column_5 | column_6 | column_7 | column_8 | column_9 | column_10 | column_11 | column_12 | column_13 | column_14 | column_15 | column_16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 DBG_ | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| DBG_I | DBG_I | DBG_L | DBG_L | DBG_L | DBG_I | DBG_R | |||||||||
| Res. | Res. | Res. | Res. | Res. | WDG5 | 3C4_S | PTIM5_ | PTIM4_ | PTIM3_ | 2C8_S | Res. | Res. | Res. | TC_ST | |
| _STOP | TOP | STOP | STOP | STOP | TOP | OP | |||||||||
| rw | rw | rs | rw | rw | rw | rw | rs | ||||||||
| 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 |
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-M0+ is in debug mode.
- 1: Stop in debug. WWDG2 is frozen while Cortex-M0+ is in debug mode.
Bit 9 DBG_IWDG5_STOP: IWDG5 stop in debug
- 0: Normal operation. Watchdog continues to count while Cortex-M0+ is in debug mode.
- 1: Stop in debug. Watchdog is frozen while Cortex-M0+ is in debug mode.
Bit 8 DBG_I3C4_STOP: I3C4 stop in debug
- 0: Normal operation. I3C4 continues to operate while Cortex-M0+ is in debug mode.
- 1: Stop in debug. I3C4 is frozen while Cortex-M0+ is in debug mode.
Bit 7 DBG_LPTIM5_STOP: LPTIM5 stop in debug
- 0: Normal operation. LPTIM5 continues to operate while Cortex-M0+ is in debug mode.
- 1: Stop in debug. LPTIM5 is frozen while Cortex-M0+ is in debug mode.
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 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 values | column_2 | column_3 | column_4 | column_5 | column_6 | column_7 | column_8 | column_9 | column_10 | column_11 | column_12 | column_13 | column_14 | column_15 | Debug support (DBG) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Offset Register name 31 3 0 2 9 2 8 2 7 2 6 2 5 2 4 2 3 2 2 21 2 0 19 18 17 | 16 | 15 | 14 | 13 | 12 | 1 1 10 9 8 7 6 5 4 3 2 1 0 | |||||||||
| 0x000 DBGMCU_IDC MAJOR_REV_ID[15:0] | R | e s. | R | e s. | R | e s. | R | e s. | DEV_ID[11:0] | ||||||
| Reset value 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 | 0 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. | R | e s. | R | e s. | R | e s. | R | e s. | R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. | |||||
| Reset value | 1 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. | R | e s. | R | e s. | R | e s. | R | e s. | R e s. R e s. 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 value | 00 | ||||||||||||||
| 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 5 | 5825/ 5881 |
Table 1033. DBGMCU register map and reset values (continued)
| Offset | Register name | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x014 | DBGMCU_AHB2HFZ1 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DBG_HPDMA3_CH15_STOP | DBG_HPDMA3_CH14_STOP | DBG_HPDMA3_CH13_STOP | DBG_HPDMA3_CH12_STOP | DBG_HPDMA3_CH11_STOP | DBG_HPDMA3_CH10_STOP | DBG_HPDMA3_CH9_STOP | DBG_HPDMA3_CH8_STOP | DBG_HPDMA3_CH7_STOP | DBG_HPDMA3_CH6_STOP | DBG_HPDMA3_CH5_STOP | DBG_HPDMA3_CH4_STOP | DBG_HPDMA3_CH3_STOP | DBG_HPDMA3_CH2_STOP | DBG_HPDMA3_CH1_STOP | DBG_HPDMA3_CH0_STOP |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x018 | DBGMCU_AHB2LFZ2 | DBG_HPDMA2_CH15_STOP | DBG_HPDMA2_CH14_STOP | DBG_HPDMA2_CH13_STOP | DBG_HPDMA2_CH12_STOP | DBG_HPDMA2_CH11_STOP | DBG_HPDMA2_CH10_STOP | DBG_HPDMA2_CH9_STOP | DBG_HPDMA2_CH8_STOP | DBG_HPDMA2_CH7_STOP | DBG_HPDMA2_CH6_STOP | DBG_HPDMA2_CH5_STOP | DBG_HPDMA2_CH4_STOP | DBG_HPDMA2_CH3_STOP | DBG_HPDMA2_CH2_STOP | DBG_HPDMA2_CH1_STOP | DBG_HPDMA2_CH0_STOP | DBG_HPDMA1_CH15_STOP | DBG_HPDMA1_CH14_STOP | DBG_HPDMA1_CH13_STOP | DBG_HPDMA1_CH12_STOP | DBG_HPDMA1_CH11_STOP | DBG_HPDMA1_CH10_STOP | DBG_HPDMA1_CH9_STOP | DBG_HPDMA1_CH8_STOP | DBG_HPDMA1_CH7_STOP | DBG_HPDMA1_CH6_STOP | DBG_HPDMA1_CH5_STOP | DBG_HPDMA1_CH4_STOP | DBG_HPDMA1_CH3_STOP | DBG_HPDMA1_CH2_STOP | DBG_HPDMA1_CH1_STOP | DBG_HPDMA1_CH0_STOP |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x01C | DBGMCU_AHB2HFZ2 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DBG_HPDMA3_CH15_STOP | DBG_HPDMA3_CH14_STOP | DBG_HPDMA3_CH13_STOP | DBG_HPDMA3_CH12_STOP | DBG_HPDMA3_CH11_STOP | DBG_HPDMA3_CH10_STOP | DBG_HPDMA3_CH9_STOP | DBG_HPDMA3_CH8_STOP | DBG_HPDMA3_CH7_STOP | DBG_HPDMA3_CH6_STOP | DBG_HPDMA3_CH5_STOP | DBG_HPDMA3_CH4_STOP | DBG_HPDMA3_CH3_STOP | DBG_HPDMA3_CH2_STOP | DBG_HPDMA3_CH1_STOP | DBG_HPDMA3_CH0_STOP |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x020 | DBGMCU_AHBSRFZ1 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ||||||||||||||||
| Reset value | |||||||||||||||||||||||||||||||||
| 0x024 | DBGMCU_AHBSRFZ2 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ||||||||||||||||
| Reset value | |||||||||||||||||||||||||||||||||
| 0x028 | DBGMCU_AHBSRFZ3 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ||||||||||||||||
| Reset value |

Table 1033. DBGMCU register map and reset values (continued)
| Offset | Register name | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x02C | DBGMCU_APB1FZ1 | Res. | Res. | DBG_TIM11_STOP | DBG_TIM10_STOP | DBG_I3C3_STOP | DBG_I3C2_STOP | DBG_I3C1_STOP | DBG_I2C7_STOP | DBG_I2C6_STOP | DBG_I2C5_STOP | DBG_I2C4_STOP | DBG_I2C3_STOP | DBG_I2C2_STOP | DBG_I2C1_STOP | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DBG_LPTIM2_STOP | DBG_LPTIM1_STOP | DBG_TIM14_STOP | DBG_TIM13_STOP | DBG_TIM12_STOP | DBG_TIM7_STOP | DBG_TIM6_STOP | DBG_TIM5_STOP | DBG_TIM4_STOP | DBG_TIM3_STOP | DBG_TIM2_STOP | |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||
| 0x030 | DBGMCU_APB1FZ2 | Res. | Res. | DBG_TIM11_STOP | DBG_TIM10_STOP | DBG_I3C3_STOP | DBG_I3C2_STOP | DBG_I3C1_STOP | DBG_I2C7_STOP | DBG_I2C6_STOP | DBG_I2C5_STOP | DBG_I2C4_STOP | DBG_I2C3_STOP | DBG_I2C2_STOP | DBG_I2C1_STOP | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DBG_LPTIM2_STOP | DBG_LPTIM1_STOP | DBG_TIM14_STOP | DBG_TIM13_STOP | DBG_TIM12_STOP | DBG_TIM7_STOP | DBG_TIM6_STOP | DBG_TIM5_STOP | DBG_TIM4_STOP | DBG_TIM3_STOP | DBG_TIM2_STOP | |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||
| 0x034 | DBGMCU_APB2FZ1 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DBG_TIM20_STOP | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DBG_TIM17_STOP | DBG_TIM16_STOP | DBG_TIM15_STOP | Res. | Res. | Res. | Res. | Res. | Res. |
| Reset value | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||||||||
| 0x038 | DBGMCU_APB2FZ2 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DBG_TIM20_STOP | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DBG_TIM17_STOP | DBG_TIM16_STOP | DBG_TIM15_STOP | Res. | Res. | Res. | Res. | Res. | Res. |
| Reset value | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||||||||
| 0x03C | DBGMCU_APB3FZ1 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | 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 | ||||||||||||||||||||||||||||||||||
| 0x040 | DBGMCU_APB3FZ2 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | 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 | ||||||||||||||||||||||||||||||||||
| 0x044 | DBGMCU_APBSRFZ1 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DBG_WWDG2_STOP | Res. | DBG_I3C4_STOP | DBG_LPTIM5_STOP | DBG_LPTIM4_STOP | DBG_LPTIM3_STOP | DBG_I2C8_STOP | Res. | Res. | Res. | Res. | Res. |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 |
Table 1033. DBGMCU register map and reset values (continued)
| Offset | Register name | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x048 | DBGMCU_APBSRFZ2 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DBG_WWDG2_STOP | Res. | DBG_I3C4_STOP | DBG_LPTIM5_STOP | DBG_LPTIM4_STOP | DBG_LPTIM3_STOP | DBG_I2C8_STOP | Res. | Res. | Res. | DBG_RTC_STOP |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x04C | DBGMCU_APBSRFZ3 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DBG_WWDG2_STOP | DBG_IWDG5_STOP | DBG_I3C4_STOP | DBG_LPTIM5_STOP | DBG_LPTIM4_STOP | DBG_LPTIM3_STOP | DBG_I2C8_STOP | Res. | Res. | Res. | DBG_RTC_STOP |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
97.11 Cortex-A35 debug features
The Cortex-A35 subsystem integrates the following CoreSight components (one of each per processor core):
- • Debug unit (DBG)
- • Performance monitoring unit (PMU)
- • Embedded trace macrocell (ETM)
- • Cross trigger interface (CTI)
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:
- • Stop program execution.
- • Examine and alter process and processor states.
- • Examine and alter memory and input/output peripheral states.
- • Restart the processor.
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:
- • cache hit/miss
- • data load/store
- • bus access
- • interrupt exception
- • ETM external trigger output
- • snoop transaction
- • software increment
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:
- • from 0x8021 0000 to 0x8021 0FFC for the CPU1 PMU
- • from 0x8031 0000 to 0x8031 0FFC for the CPU2
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:
- • number of instructions executed in the same cycle
- • changes in program flow
- • current processor instruction state
- • addresses of memory locations accessed by load and store instructions
- • type, direction and size of a transfer
- • condition code information
- • exception information
- • wait for interrupt (WFI) state information
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:
- • Cortex-M33 ROM table
- • Cortex-M33 system control space (SCS)
- • Breakpoint Unit (FPB)
- • Data watchpoint and trace unit (DWT)
- • Instrumentation trace macrocell (ITM)
- • Embedded trace macrocell (ETM)
- • Cross trigger interface (CTI)
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 table | Component name | Component base address | Component address offset | Size (Kbytes) | Entry |
|---|---|---|---|---|---|
| 0xE00F F000 | SCS | 0xE000 E000 | 0xFFF0 F000 | 4 | 0xFFF0 F003 |
| 0xE00F F004 | DWT | 0xE000 1000 | 0xFFF0 2000 | 0xFFF0 2003 | |
| 0xE00F F008 | FPB | 0xE000 2000 | 0xFFF0 3000 | 0xFFF0 3003 | |
| 0xE00F F00C | ITM | 0xE000 0000 | 0xFFF0 1000 | 0xFFF0 1003 | |
| 0xE00F F010 | Reserved | 0xE004 0000 | 0xFFF4 1000 | 0xFFF4 1002 | |
| 0xE00F F014 | ETM | 0xE004 1000 | 0xFFF4 2000 | 0xFFF4 2003 | |
| 0xE00F E018 | CTI | 0xE004 2000 | 0xFFF4 3000 | 0xFFF4 3003 | |
| 0xE00F F01C | Reserved | 0xE004 3000 | 0xFFF4 4000 | 0xFFF4 4002 | |
| 0xE00F F020 | Top of table | - | - | - | 0x0000 0000 |
| 0xE00F F024 to 0xE00F FFC8 | Reserved | - | - | - | 0x0000 0000 |
| 0xE00F FFCC to 0xE00F FFFC | ROM 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

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:
- Offset: 0xFFFF0F000 points to the System control space (SCS) @0xE000E000.
- Offset: 0xFFFF02000 points to the Breakpoint unit (FPB) @0xE0002000.
- Offset: 0xFFFF03000 points to the Data watchpoint/trace (DWT) @0xE0001000.
- Offset: 0xFFFF01000 points to the Instrumentation trace (ITM) @0xE0000000.
- Offset: 0xFFFF41000 points to the Embedded trace (ETM) @0xE0042000.
- Offset: 0xFFFF42000 points to the Cross trigger (CTI) @0xE0043000.
- Offset: 0xFFFF43000 points to the ETM.
- Offset: 0xFFFF44000 points to the CTI.
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
97.12.2 Data watchpoint and trace unit (DWT)
The DWT provides four comparators that can be used as:
- • watchpoint
- • ETM trigger
- • PC sampling trigger
- • data address sampling trigger
- • data comparator (COMP1 only)
- • clock-cycle counter comparator (COMP0 only)
The DWT also contains counters for:
- • clock cycles
- • folded instructions
- • load store unit (LSU) operations
- • sleep cycles
- • number of cycles per instruction
- • interrupt overhead
A DWT comparator compares one of the following with the value in its DWT_COMP register:
- • a data address
- • an instruction address
- • a data value
- • the cycle-count value (for comparator 0 only)
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:
- • one or more DWT data trace packets, containing one or more:
- – address of the instruction that caused a data access
- – address offset, bits[15:0] of the data access address
- – matched data value
- • a watchpoint debug event, on either the PC value or the accessed data address
- • a CMPMATCH[N] event that signals the match outside the DWT.
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:
- • Software trace
The software can write directly to any of 32 x 32-bit ITM stimulus registers to generate packets. The permission level for each port can be programmed. When software writes to an enabled stimulus port, the ITM combines the identity of the port, the size of the write access, and the data written, into a packet that it writes to a FIFO. The ITM outputs packets from the FIFO onto the trace bus. Reading a stimulus port register returns the status of the stimulus register (empty or pending) in bit 0.
- • Hardware trace
The DWT generates trace packets in response to a data trace event, a PC sample, or a performance profiling counter wraparound. The ITM outputs these packets on the trace bus.
- • Local timestamping
The ITM contains a 21-bit counter clocked by the (pre-divided) processor clock. The counter value is output in a timestamp packet on the trace bus. The counter is reset to zero every time a timestamp packet is generated. The timestamps thus indicate the time elapsed since the previous timestamp packet.
- • Global system timestamping
Timestamps can also be generated using the system-wide 64-bit count value coming from the timestamp generator component.
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:
- • number of instructions executed in the same cycle
- • changes in program flow
- • current processor instruction state
- • addresses of memory locations accessed by load and store instructions
- • type, direction and size of a transfer
- • condition code information
- • exception information
- • wait for interrupt state information
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:
- • Cortex-M0+ integration level ROM table
- • Cortex-M0+ system control space (SCS)
- • Breakpoint Unit (BPU)
- • Data watchpoint and trace Unit (DWT)
- • Cross trigger interface (CTI)
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 table | Component name | Component base address | Component address offset | Size (Kbytes) | Entry |
|---|---|---|---|---|---|
| 0xF000 0000 | CM0+ ROM table | 0xE00F F000 | 0xF00F F000 | 4 | 0xF00F F003 |
| 0xF000 0004 | CTI | 0xF000 0000 | 0x0000 1000 | 0x0000 1003 | |
| 0xF000 0008 | Reserved | - | - | 0x0000 2002 | |
| 0xF000 000C | Reserved | - | - | 0x1000 0002 | |
| 0xF000 0010 | Top of table | - | - | - | 0x0000 0000 |
| 0xE00F F014 to 0xE00F FFC8 | Reserved | - | - | - | 0x0000 0000 |
| 0xE00F FFCC to 0xE00F FFFC | ROM table registers | - | - | - | - |
Table 1036. Cortex-M0+ processor ROM table
| Address in ROM table | Component name | Component base address | Component address offset | Size (Kbytes) | Entry |
|---|---|---|---|---|---|
| 0xE00F F000 | SCS | 0xE000 E000 | 0xFFF0 F000 | 4 | 0xFFF0 F003 |
| 0xE00F F004 | DWT | 0xE000 1000 | 0xFFF0 2000 | 0xFFF0 2003 | |
| 0xE00F F008 | BPU | 0xE000 2000 | 0xFFF0 3000 | 0xFFF0 3003 | |
| 0xE00F F00C | Top of table | - | - | - | 0x0000 0000 |
| 0xE00F F010 to 0xE00F FFC8 | Reserved | - | - | - | 0x0000 0000 |
| 0xE00F FFCC to 0xE00F FFFC | ROM 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

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.
- BASE register (0xF8) AHB-AP: Contains the value 0xF0000000, which points to the Cortex-M0+ integration ROM table.
- Cortex-M0+ integration ROM table @0xF0000000:
- 0x000: Offset: 0xF00FF000 (points to Cortex-M0+ ROM table)
- 0x004: Offset: 0x00001000 (points to Cross trigger (CTI))
- 0x008: Offset: 0x00002000 (points to Breakpoint unit (BPU))
- 0x00C: Offset: 0x10000000
- 0x010: Top of table
- 0xFD0: PIDR4
- 0xFFC: CIDR3
- Cortex-M0+ ROM table @0xE00FF000:
- 0x000: Offset: 0xFFF0F000 (points to System control space (SCS))
- 0x004: Offset: 0xFFF02000 (points to Data watchpoint/trace (DWT))
- 0x008: Offset: 0xFFF03000 (points to Breakpoint unit (BPU))
- 0x00C: Top of table
- 0xFD0: PIDR4
- 0xFFC: CIDR3
- Cross trigger (CTI) @0xF0001000:
- 0x000: Register file base
- 0xFD0: PIDR4
- 0xFFC: CIDR3
- System control space (SCS) @0xE000E000:
- 0x000: Register file base
- 0xFD0: PIDR4
- 0xFFC: CIDR3
- Data watchpoint/trace (DWT) @0xE0001000:
- 0x000: Register file base
- 0xFD0: PIDR4
- 0xFFC: CIDR3
- Breakpoint unit (BPU) @0xE0002000:
- 0x000: Register file base
- 0xFD0: PIDR4
- 0xFFC: CIDR3
MSv66594V2
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:
- • watchpoints for data address matching
- • PC watchpoints for instruction address matching
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. IHI 0031C (ID080813) - Arm® debug interface architecture specification ADIv5.0 to ADIv5.2, issue C, 8 Aug 2013.
- 2. DDI 0480F (ID100313) - Arm® CoreSight™ SoC-400 r3p1 technical reference manual, Issue F, 26th Sept 2013
- 3. DDI 0461B (ID010111) - Arm® CoreSight™ trace memory controller r0p1 technical reference manual, Issue B, 10 Dec 2010
- 4. DDI 0314H - Arm® CoreSight™ components technical reference manual, Issue H, 10 July, 2009
- 5. Arm® Cortex®-M33 processor r1p0 technical reference manual, Issue 0100-03, 19 June 2020
- 6. DDI 0484C (ID121612) Arm® Cortex®-M0+ processor r0p1 technical reference manual, Issue C, 16 Dec 2012
- 7. IHI0064F (ID42818) - Arm® embedded trace macrocell architecture specification v4, Issue F, 30 April 2018
- 8. Arm® CoreSight™ ETM™-TEAL r0p0 technical reference manual, issue 0000-00-04, 04 Dec 2015
- 9. DDI 0528B (ID062514) - Arm® CoreSight™ STM system trace macrocell r0p1 technical reference manual, Issue B, 11 March 2014
- 10. Arm® Cortex®-A35 processor r1p0 technical reference manual, issue 0100-00, 28 February 2019