Main Etm Registers; Configuration Example; Mcu Debug Component (Dbgmcu); Table 248. Main Etm Registers - ST STM32F446 Series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32F446 Series:
Table of Contents

Advertisement

RM0390
33.15.3

Main ETM registers

For more information on registers refer to the chapter 3 of the Arm
Address
0xE0041FB0 ETM Lock Access
0xE0041000 ETM Control
0xE0041010 ETM Status
0xE0041008 ETM Trigger Event
0xE004101C
0xE0041020 ETM Trace Enable Event
0xE0041024 ETM Trace Start/Stop
33.15.4

Configuration example

To output a simple value to the TPIU:
Configure the TPIU and enable the I/IO_TRACEN to assign TRACE I/Os in the
STM32F446xx debug configuration register.
Write 0xC5ACCE55 to the ETM Lock Access Register to unlock the write access to the
ITM registers
Write 0x00001D1E to the control register (configure the trace)
Write 0000406F to the Trigger Event register (define the trigger event)
Write 0000006F to the Trace Enable Event register (define an event to start/stop)
Write 00000001 to the Trace Start/stop register (enable the trace)
Write 0000191E to the ETM Control Register (end of configuration)
33.16

MCU debug component (DBGMCU)

The MCU debug component helps the debugger provide support for:
Low-power modes
Clock control for timers, watchdog, I2C and bxCAN during a breakpoint
Control of the trace pins assignment

Table 248. Main ETM registers

Register
ETM Trace Enable
Control
RM0390 Rev 4
Write 0xC5ACCE55 to unlock the write access to the
other ETM registers.
This register controls the general operation of the ETM,
for instance how tracing is enabled.
This register provides information about the current status
of the trace and trigger logic.
This register defines the event that will control trigger.
This register defines which comparator is selected.
This register defines the trace enabling event.
This register defines the traces used by the trigger source
to start and stop the trace, respectively.
Debug support (DBG)
®
IHI 0014N specification.
Details
1303/1328
1318

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F446 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Rm0390

Table of Contents

Save PDF