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 #1337 background imageLoading...
Page #1337 background image
RM0033 Rev 9 1337/1381
RM0033 Debug support (DBG)
1349
Example of configuration
To output a simple value to the TPIU:
Configure the TPIU and assign TRACE I/Os by configuring the DBGMCU_CR (refer to
Section 32.17.2 and Section 32.16.3)
Write 0xC5ACCE55 to the ITM Lock Access register to unlock the write access to the
ITM registers
Write 0x00010005 to the ITM Trace Control register to enable the ITM with Sync
enabled and an ATB ID different from 0x00
Write 0x1 to the ITM Trace Enable register to enable the Stimulus Port 0
Write 0x1 to the ITM Trace Privilege register to unmask stimulus ports 7:0
Write the value to output in the Stimulus Port register 0: this can be done by software
(using a printf function)
32.15 ETM (Embedded Trace Macrocell)
32.15.1 ETM general description
The ETM enables the reconstruction of program execution. Data are traced using the Data
Watchpoint and Trace (DWT) component or the Instruction Trace Macrocell (ITM) whereas
instructions are traced using the Embedded Trace Macrocell (ETM).
The ETM transmits information as packets and is triggered by embedded resources. These
resources must be programmed independently and the trigger source is selected using the
Trigger Event register (0xE0041008). An event could be a simple event (address match
from an address comparator) or a logic equation between 2 events. The trigger source is
one of the fourth comparators of the DWT module, The following events can be monitored:
Clock cycle matching
Data address matching
For more informations on the trigger resources refer to Section 32.13.
The packets transmitted by the ETM are output to the TPIU (Trace Port Interface Unit). The
formatter of the TPIU adds some extra packets (refer to Section 32.17) and then outputs the
complete packet sequence to the debugger host.
32.15.2 ETM signal protocol and packet types
This part is described in the chapter 7 ETMv3 Signal Protocol of the Arm
®
IHI 0014N
document.

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