RM0440
TPUI pin name
TRACECK
TRACED[3:0]
TPUI TRACE pin assignment
By default, these pins are NOT assigned. They can be assigned by setting the
TRACE_IOEN and TRACE_MODE bits in the
(DBGMCU_CR). This configuration has to be done by the debugger host.
In addition, the number of pins to assign depends on the trace configuration (asynchronous
or synchronous).
•
Asynchronous mode: 1 extra pin is needed
•
Synchronous mode: from 2 to 5 extra pins are needed depending on the size of the
data trace port register (1, 2 or 4) :
–
–
–
–
–
To assign the TRACE pin, the debugger host must program the bits TRACE_IOEN and
TRACE_MODE[1:0] of the
the TRACE pins are not assigned.
This register is mapped on the external PPB and is reset by the PORESET (and not by the
SYSTEM reset). It can be written by the debugger under SYSTEM reset.
DBGMCU_CR
register
TRACE
assigned for:
TRACE
_MODE
_IOEN
[1:0]
No Trace
0
XX
(default state)
Asynchronous
1
00
Table 437. Synchronous TRACE pin assignment
Type
TRACECK
TRACED(0) if port size is configured to 1, 2 or 4
TRACED(1) if port size is configured to 2 or 4
TRACED(2) if port size is configured to 4
TRACED(3) if port size is configured to 4
Debug MCU configuration register
Table 438. Flexible TRACE pin assignment
Pins
PB3 / JTDO/
TRACESWO
(1)
Released
TRACESWO
Trace
Trace synchronous mode
Description
O
TRACE Clock
TRACE Synchronous Data Outputs
O
Can be 1, 2 or 4.
Debug MCU configuration register
TRACE IO pin assigned
PE3 or
PE2 /
PC1/
TRACECK
TRACED[0]
-
-
RM0440 Rev 1
Debug support (DBG)
STM32G4 Series
pin assignment
PE2
PE[6:3]
(DBGMCU_CR). By default
PE4 or
PE5 or
PC8/
PD2/
TRACED[1]
TRACED[2]
-
Released
(usable as GPIO)
PE6 or
PC12/
TRACED[3]
2067/2083
2073
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?