39. Device electronic signature

The electronic signature is stored in the Flash memory area. It can be read using the JTAG/SWD or the CPU. It contains factory-programmed identification data that allow the user firmware or other external devices to automatically match its interface to the characteristics of the STM32F4xx microcontrollers.

39.1 Unique device ID register (96 bits)

The unique device identifier is ideally suited:

The 96-bit unique device identifier provides a reference number which is unique for any device and in any context. These bits can never be altered by the user.

The 96-bit unique device identifier can also be read in single bytes/half-words/words in different ways and then be concatenated using a custom algorithm.

Base address: 0x1FFF 7A10

Address offset: 0x00

Read only = 0xXXXX XXXX where X is factory-programmed

313029282726252423222120191817161514131211109876543210
UID(31:0)
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr

Bits 31:0 UID(31:0) : X and Y coordinates on the wafer

Address offset: 0x04

Read only = 0xXXXX XXXX where X is factory-programmed

31302928272625242322212019181716
UID(63:48)
rrrrrrrrrrrrrrrr
1514131211109876543210
UID(47:32)
rrrrrrrrrrrrrrrr

Bits 31:8 UID(63:40) : LOT_NUM[23:0]
Lot number (ASCII encoded).

Bits 7:0 UID(39:32) : WAF_NUM[7:0]
Wafer number (ASCII encoded).

Address offset: 0x08

Read only = 0xXXXX XXXX where X is factory-programmed

31302928272625242322212019181716
UID(95:80)
rrrrrrrrrrrrrrrr
1514131211109876543210
UID(79:64)
rrrrrrrrrrrrrrrr

Bits 31:0 UID(95:64) : LOT_NUM[55:24]
Lot number (ASCII encoded).

39.2 Flash size

Base address: 0x1FFF 7A22

Address offset: 0x00

Read only = 0xXXXX where X is factory-programmed

1514131211109876543210
F_SIZE
rrrrrrrrrrrrrrrr

Bits 15:0 F_ID(15:0) : Flash memory size
This bitfield indicates the size of the device Flash memory expressed in Kbytes.
As an example, 0x0400 corresponds to 1024 Kbytes.