EasyManuals Logo

ST STM32F10 Series User Manual

ST STM32F10 Series
519 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 #509 background imageLoading...
Page #509 background image
UM0306 Debug support (DBG)
509/519
Note: By default, the TRACECLKIN input clock of the TPIU is tied to GND. It is assigned to HCLK
two clock cycles after the bit TRACE_IOEN has been set.
The debugger must then program the Trace Mode by writing the bits PROTOCOL[1:0] of the
SPP_R (Selected Pin Protocol) register of the TPIU.
PROTOCOL=00: Trace Port Mode (synchronous)
PROTOCOL=01 or 10: Serial Wire (Manchester or NRZ) Mode (asynchronous mode).
Default state is 01
It then also configures the trace port size by writing the bits [3:0] of the CPSPS_R (Current
Sync Port Size Register) of the TPIU:
0x1 for 1 pin (default state)
0x2 for 2 pins
0x4 for 4 pins
20.16.3 TPUI formatter
The formatter protocol outputs data in 16-byte frames:
seven bytes of data
eight bytes of mixed-use bytes consisting of:
1 bit (LSB) to indicate it is a DATA byte (‘0’) or an ID byte (‘1’).
7 bits (MSB) which can be data or change of source ID trace.
one byte of auxiliary bits where each bit corresponds to one of the eight mixed-use
bytes:
if the corresponding byte was a data, this bit gives bit0 of the data.
if the corresponding byte was an ID change, this bit indicates when that ID change
takes effect.
DBGMCU_CR
register
Pins assigned for:
TRACE I/O pin assigned
TRACE_
IOEN
TRACE_
MODE[1:0]
PB3 /
JTDO/
TRACES
WO
PE2 /
TRACE
CK
PE3 /
TRACE
D[0]
PE4 /
TRACE
D[1]
PE5 /
TRACE
D[2]
PE6 /
TRACE
D[3]
0XX
No Trace (default
state)
Released
(1)
1 00 Asynchronous Trace
TRACES
WO
Released
(usable as GPIO)
101
Synchronous Trace
1 bit
Released
(1)
TRACE
CK
TRACE
D[0]
110
Synchronous Trace
2 bit
TRACE
CK
TRACE
D[0]
TRACE
D[1]
111
Synchronous Trace
4 bit
TRACE
CK
TRACE
D[0]
TRACE
D[1]
TRACE
D[2]
TRACE
D[3]
(1)
When Serial Wire mode is used, it is released. But when JTAG is used, it is assigned to JTDO.
www.BDTIC.com/ST

Table of Contents

Other manuals for ST STM32F10 Series

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F10 Series Specifications

General IconGeneral
BrandST
ModelSTM32F10 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals