EasyManuals Logo

ST STM32F207 series User Manual

ST STM32F207 series
1381 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1338 background imageLoading...
Page #1338 background image
Debug support (DBG) RM0033
1338/1381 RM0033 Rev 9
32.15.3 Main ETM registers
For more information on registers refer to the chapter 3 of the Arm
®
IHI 0014N specification.
32.15.4 ETM 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
STM32F20x and STM32F21x debug configuration register.
Write 0xC5AC CE55 to the ETM Lock Access register to unlock the write access to the
ITM registers
Write 0x0000 1D1E to the ETM control register (configure the trace)
Write 0x0000 406F to the ETM Trigger Event register (define the trigger event)
Write 0x0000 006F to the ETM Trace Enable Event register (define an event to
start/stop)
Write 0x0000 0001 to the ETM Trace Start/stop register (enable the trace)
Write 0x0000191E to the ETM Control register (end of configuration)
32.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
32.16.1 Debug support for low-power modes
To enter low-power mode, the instruction WFI or WFE must be executed.
The MCU implements several low-power modes which can either deactivate the CPU clock
or reduce the power of the CPU.
Table 218. Main ETM registers
Address Register Details
0xE0041FB0 ETM Lock Access
Write 0xC5ACCE55 to unlock the write access to the
other ETM registers.
0xE0041000 ETM Control
This register controls the general operation of the ETM,
for instance how tracing is enabled.
0xE0041010 ETM Status
This register provides information about the current status
of the trace and trigger logic.
0xE0041008 ETM Trigger Event This register defines the event that will control trigger.
0xE004101C
ETM Trace Enable
Control
This register defines which comparator is selected.
0xE0041020 ETM Trace Enable Event This register defines the trace enabling event.
0xE0041024 ETM Trace Start/Stop
This register defines the traces used by the trigger source
to start and stop the trace, respectively.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F207 series and is the answer not in the manual?

ST STM32F207 series Specifications

General IconGeneral
BrandST
ModelSTM32F207 series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals