Contents RM0440
48/2126 RM0440 Rev 4
47.13 DWT (data watchpoint trigger) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2095
47.14 ITM (instrumentation trace macrocell) . . . . . . . . . . . . . . . . . . . . . . . . . 2096
47.14.1 General description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2096
47.14.2 Time stamp packets, synchronization and overflow packets . . . . . . . 2096
47.15 ETM (Embedded Trace Macrocell™) . . . . . . . . . . . . . . . . . . . . . . . . . . 2098
47.15.1 General description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2098
47.15.2 Signal protocol, packet types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2098
47.15.3 Main ETM registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2098
47.15.4 Configuration example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2099
47.16 MCU debug component (DBGMCU) . . . . . . . . . . . . . . . . . . . . . . . . . . 2099
47.16.1 Debug support for low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . 2099
47.16.2 Debug support for timers, RTC, watchdog and I
2
C . . . . . . . . . . . . . . 2100
47.16.3 Debug MCU configuration register (DBGMCU_CR) . . . . . . . . . . . . . 2100
47.16.4 Debug MCU APB1 freeze register1(DBGMCU_APB1FZR1) . . . . . . 2101
47.16.5 Debug MCU APB1 freeze register 2 (DBGMCU_APB1FZR2) . . . . . 2103
47.16.6 Debug MCU APB2 freeze register (DBGMCU_APB2FZR) . . . . . . . . 2103
47.17 TPIU (trace port interface unit) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2105
47.17.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2105
47.17.2 TRACE pin assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2105
47.17.3 TPUI formatter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2107
47.17.4 TPUI frame synchronization packets . . . . . . . . . . . . . . . . . . . . . . . . . 2108
47.17.5 Transmission of the synchronization frame packet . . . . . . . . . . . . . . 2108
47.17.6 Synchronous mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2108
47.17.7 Asynchronous mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2109
47.17.8 TRACECLKIN connection inside the
STM32G4 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2109
47.17.9 TPIU registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2110
47.17.10 Example of configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2111
47.18 DBG register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2112
48 Device electronic signature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2113
48.1 Unique device ID register (96 bits) . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2113
48.2 Flash size data register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2114
48.3 Package data register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2115
49 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2116