RM0430
Note:
Important: when using asynchronous trace: it is important to be aware that:
The default clock of the MCUs is the internal RC oscillator. Its frequency under reset is
different from the one after reset release. This is because the RC calibration is the default
one under system reset and is updated at each system reset release.
Consequently, the trace port analyzer (TPA) should not enable the trace (with the
TRACE_IOEN bit) under system reset, because a Synchronization Frame Packet will be
issued with a different bit time than trace packets which will be transmitted after reset
release.
34.17.9
TPIU registers
The TPIU APB registers can be read and written only if the bit TRCENA of the Debug
Exception and Monitor Control Register (DEMCR) is set. Otherwise, the registers are read
as zero (the output of this bit enables the PCLK of the TPIU).
Address
0xE0040004
Current port size
Selected pin
0xE00400F0
protocol
Formatter and flush
0xE0040304
control
Formatter and flush
0xE0040300
status
Table 227. Important TPIU registers
Register
Allows the trace port size to be selected:
Bit 0: Port size = 1
Bit 1: Port size = 2
Bit 2: Port size = 3, not supported
Bit 3: Port Size = 4
Only 1 bit must be set. By default, the port size is one bit. (0x00000001)
Allows the Trace Port Protocol to be selected:
Bit1:0=
00: Sync Trace Port Mode
01: Serial Wire Output - manchester (default value)
10: Serial Wire Output - NRZ
11: reserved
Bits 31-9 = always '0
Bit 8 = TrigIn = always '1 to indicate that triggers are indicated
Bits 7-4 = always 0
Bits 3-2 = always 0
Bit 1 = EnFCont. In Sync Trace mode (Select_Pin_Protocol register
bit1:0=00), this bit is forced to '1: the formatter is automatically enabled
in continuous mode. In asynchronous mode (Select_Pin_Protocol
register bit1:0 <> 00), this bit can be written to activate or not the
formatter.
Bit 0 = always 0
The resulting default value is 0x102
Note: In synchronous mode, because the TRACECTL pin is not mapped
outside the chip, the formatter is always enabled in continuous mode -this
way the formatter inserts some control packets to identify the source of
the trace packets).
Not used in Cortex
DocID029473 Rev 3
Description
®
-M4 with FPU, always read as 0x00000008
Debug support (DBG)
1273/1284
1275
Need help?
Do you have a question about the STM32F413 and is the answer not in the manual?
Questions and answers