Download Print this page

ST STM32L4+ Series Reference Manual page 2277

Hide thumbs Also See for STM32L4+ Series:

Advertisement

RM0432
57.17.10 Example of configuration
Set the bit TRCENA in the debug exception and monitor control register (DEMCR)
Write the TPIU current port size register to the desired value (default is 0x1 for a 1-bit
port size)
Write TPIU formatter and flush control register to 0x102 (default value)
Write the TPIU select pin protocol to select the synchronous or asynchronous mode.
Example: 0x2 for asynchronous NRZ mode (UART like)
Write the DBGMCU control register to 0x20 (bit IO_TRACEN) to assign TRACE I/Os
for asynchronous mode. A TPIU synchronous packet is emitted at this time
(FF_FF_FF_7F)
Configure the ITM and write the ITM stimulus register to output a value
RM0432 Rev 6
Debug support (DBG)
2277/2301
2278

Advertisement

loading
Need help?

Need help?

Do you have a question about the STM32L4+ Series and is the answer not in the manual?

Subscribe to Our Youtube Channel