RM0091
29.4.1
MCU device ID code
The STM32F051x6 and STM32F051x8 integrate an MCU ID code. This ID identifies the ST
MCU part number and the die revision.
This code is accessible by the software debug port (two pins) or by the user software.
DBGMCU_IDCODE
Address: 0x40015800
Only 32-bits access supported. Read-only
31
30
29
28
r
r
r
15
14
13
12
DIV_ID
r
r
r
Bits 31:16 REV_ID(15:0) Revision identifier
Bits 15:12 DIV_ID(3:0): Division identifier
Bits 11:0 DEV_ID(11:0): Device identifier
29.5
SW debug port
29.5.1
SW protocol introduction
This synchronous serial protocol uses two pins:
●
SWCLK: clock from host to target
●
SWDAT: bidirectional
The protocol allows two banks of registers (DPACC registers and APACC registers) to be
read and written to.
Bits are transferred LSB-first on the wire.
For SWDIO bidirectional management, the line must be pulled-up on the board (100 kΩ
recommended by ARM).
Each time the direction of SWDIO changes in the protocol, a turnaround time is inserted
where the line is not driven by the host nor the target. By default, this turnaround time is one
bit time, however this can be adjusted by configuring the SWCLK frequency.
27
26
25
r
r
r
r
11
10
9
r
r
r
r
This field indicates the revision of the device. It is read as 0x1000 for Revision 1.0
and 0x2000 for Revision 2.0.
This field indicates the ST division which designed the device.
The division ID is 0x6 = 0b0110.
This field indicates the device and its revision.
The device ID is 0x440.
Doc ID 018940 Rev 1
24
23
22
21
REV_ID
r
r
r
r
8
7
6
5
DEV_ID
r
r
r
r
Debug support (DBG)
20
19
18
17
r
r
r
r
4
3
2
1
r
r
r
r
16
r
0
r
721/742
Need help?
Do you have a question about the STM32F05 series and is the answer not in the manual?
Questions and answers