Download Print this page

ST STM32F301 6 Series Reference Manual page 863

Advanced arm-based 32-bit mcus

Advertisement

RM0366
28.15.14 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 sync or async mode. Example: 0x2 for
async NRZ mode (UART like)
Write the DBGMCU control register to 0x20 (bit IO_TRACEN) to assign TRACE I/Os
for async mode. A TPIU Sync packet is emitted at this time (FF_FF_FF_7F)
Configure the ITM and write the ITM Stimulus register to output a value
28.16
DBG register map
.
Addr.
Register
DBGMCU_
IDCODE
(1)
Reset value
X X X X X X X X X X X X X X X X
DBGMCU_CR
Reset value
DBGMCU_
APB1_FZ
Reset value
DBGMCU_
APB2_FZ
Reset value
1. The reset value is product dependent. For more information, refer to
Table 127. DBG register map and reset values
REV_ID
0
0
0
Section 28.6.1: MCU device ID
RM0366 Rev 5
Debug support (DBG)
DEV_ID
X X X X X X X X X X X X
0
0
0
0
0
0
0
0
code.
0
0
0
0
0
0
0
863/874
863

Advertisement

loading
Need help?

Need help?

Do you have a question about the STM32F301 6 Series and is the answer not in the manual?

This manual is also suitable for:

Stm32f301 8 seriesStm32f318 8 series