31. Device electronic signature

This section applies to all STM32L1xxxx devices, unless otherwise specified.

The electronic signature is stored in the System memory area in the Flash memory module, and 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 STM32L1xxxx microcontroller.

31.1 Memory size register

31.1.1 Flash size register

Base address: 0x1FF8004C for Cat.1 and Cat.2 devices

Base address: 0x1FF800CC for Cat.3, Cat.4, Cat.5 and Cat.6 devices

Read only = 0xXXXX where X is factory-programmed

1514131211109876543210
F_SIZE
rrrrrrrrrrrrrrrr

Bits 15:0 F_SIZE : Flash memory size

For DEV_ID = 0x416 or 0x427 or 0x429 or 0x437, this field value indicates the Flash memory size of the device in Kbytes.

Example: 0x0080 = 128 Kbytes.

For DEV_ID = 0x436, the field value can be '0' or '1', with '0' for 384 Kbytes and '1' for 256 Kbytes.

Note: For DEV_ID = 0x429, only LSB part of F_SIZE: F_SIZE[7:0] is valid. The MSB part F_SIZE[15:8] is reserved and must be ignored.

31.2 Unique device ID registers (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: 0x1FF80050 for Cat.1 and Cat.2 devices and 0x1FF800D0 for Cat.3, Cat.4, Cat.5 and Cat.6 devices

Address offset: 0x00

Read only = 0xXXXX where X is factory-programmed

31302928272625242322212019181716
U_ID(31:16)
rrrrrrrrrrrrrrrr
1514131211109876543210
U_ID(15:0)
rrrrrrrrrrrrrrrr

Bits 31:0 U_ID(31:0) : 31:0 unique ID bits

Address offset: 0x04

Read only = 0xXXXX where X is factory-programmed

63626160595857565554535251504948
U_ID(63:48)
rrrrrrrrrrrrrrrr
47464544434241403938373635343332
U_ID(47:32)
rrrrrrrrrrrrrrrr

Bits 63:32 U_ID(63:32) : 63:32 unique ID bits

Address offset: 0x14

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

95949392919089888786858483828180
U_ID(95:80)
rrrrrrrrrrrrrrrr
79787776757473727170696867666564
U_ID(79:64)
rrrrrrrrrrrrrrrr

Bits 95:64 U_ID(95:64) : 95:64 unique ID bits