26. Device electronic signature

Low-density value line devices are STM32F100xx microcontrollers where the flash memory density ranges between 16 and 32 Kbytes.

Medium-density value line devices are STM32F100xx microcontrollers where the flash memory density ranges between 64 and 128 Kbytes.

High-density value line devices are STM32F100xx microcontrollers where the flash memory density ranges between 256 and 512 Kbytes.

This section applies to all STM32F100xx 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 STM32F100xx microcontroller.

26.1 Memory size registers

26.1.1 Flash size register

Base address: 0x1FFF F7E0

Read only = 0xXXXX where X is factory-programmed

1514131211109876543210
F_SIZE
rrrrrrrrrrrrrrrr

Bits 15:0 F_SIZE : Flash memory size

This field value indicates the flash memory size of the device in Kbytes.

Example: 0x0080 = 128 Kbytes.

26.2 Unique device ID register (96 bits)

The unique device identifier is ideally suited:

The 96-bit unique device identifier provides a reference number, unique for any device and in any context. These bits cannot 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 F7E8

Address offset: 0x00

Read only = 0xXXXX where X is factory-programmed

1514131211109876543210
U_ID(15:0)
rrrrrrrrrrrrrrrr

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

Address offset: 0x02

Read only = 0xXXXX where X is factory-programmed

1514131211109876543210
U_ID(31:16)
rrrrrrrrrrrrrrrr

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

This field value is also reserved for a future feature.

Address offset: 0x04

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

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

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

Address offset: 0x08

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

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

Bits 31:0 U_ID(95:64) : 95:64 unique ID bits.