UM0306 Debug support (DBG)
493/519
Figure 185. JTAG TAP connections
20.6 ID codes and locking mechanism
There are several ID codes inside the STM32F10x MCU. ST strongly recommends tools
designers to lock their debuggers using the MCU DEVICE ID code located in the external
PPB memory map at address 0xE0042000.
20.6.1 MCU device ID code
The MCU STM32F10x integrates an MCU ID code. This ID identifies the ST MCU part-
number and the die revision. It is part of the DBG_MCU Component and is mapped on the
external PPB bus (see Section 20.15 on page 503). This code is accessible using the JTAG
debug port (4 to 5 pins) or the SW debug port (two pins) or by the user software. It is even
accessible while the MCU is under system reset.
DBGMCU_IDCODE
Address: 0xE0042000
Only 32-bits access supported
Read only = 0xXXXXX410 where X is undefined
TMC TAP
JNTRST
Cortex-M3 TAP
JTMS
TMS nTRSTTMS nTRST
JTDI
JTDO
TDI TDO TDI TDO
IR is 5-bits wide IR is 4-bits wide
SW-DP
STM32F10x
Selected
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Reserved
1514131211109876543210
Reserved DEV_ID
rrrrrrrrrrrr
Bits 31:12 Reserved
Bits 11:0
DEV_ID(11:0): Device Identifier
This field indicates the device. For STM32F10x MCU, the device ID is 0x410.