58. Device electronic signature

The device electronic signature is stored in the System memory area of the Flash memory module, and can be read using the debug interface or by the CPU. It contains factory-programmed identification and calibration data that allow the user firmware or other external devices to automatically match to the characteristics of the STM32L4+ Series microcontroller.

58.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 cannot be altered by the user.

Base address: 0x1FFF 7590

Address offset: 0x00

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

31302928272625242322212019181716
UID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
UID[15:0]
rrrrrrrrrrrrrrrr

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 (8-bit unsigned number)

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)

58.2 Flash size data register

Base address: 0x1FFF 75E0

Address offset: 0x00

Read only = 0xXXXX where X is factory-programmed

1514131211109876543210
FLASH_SIZE
rrrrrrrrrrrrrrrr

Bits 15:0 FLASH_SIZE[15:0]: Flash memory size

This bitfield indicates the size of the device Flash memory expressed in Kbytes.

As an example, 0x040 corresponds to 64 Kbytes.

58.3 Package data register

Base address: 0x1FFF 7500

Address offset: 0x00

Read only = 0xXXXX where X is factory-programmed

1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PKG[4:0]
rrrrr

Bits 15:5 Reserved, must be kept at reset value

Bits 4:0 PKG[4:0] : Package type

For STM32L4Rxxx and STM32L4Sxxx devices

00010: LQFP100 without DSI

00011: UFBGA132 without DSI

001XX: LQFP144 without DSI

10000: UFBGA169 without DSI

10010: LQFP100 with DSI

10011: UFBGA144 with DSI, WLCSP144 with DSI

10100: UFBGA169 with DSI

10101: LQFP144 with DSI

For STM32L4P5xx and STM32L4Q5xx devices

00000: LQFP64

00010: LQFP100

00011: UFBGA132

00100: LQFP144

01010: UFQFPN48

01011: LQFP48

10000: UFBGA169

10001: WLCSP100

10111: UFQFPN48 SMPS

11000: LQFP48 SMPS

11001: UFBGA132 SMPS

11010: LQFP100 SMPS

11011: WLCSP100 SMPS

11100: LQFP144 SMPS

11101: UFBGA169 SMPS

11110: LQFP64 SMPS