RM0008 Device electronic signature
Doc ID 13902 Rev 12 1045/1096
30 Device electronic signature
Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx
microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes.
Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx
microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes.
High-density devices are STM32F101xx and STM32F103xx microcontrollers where the
Flash memory density ranges between 256 and 512 Kbytes.
XL-density devices are STM32F101xx and STM32F103xx microcontrollers where the
Flash memory density ranges between 768 Kbytes and 1 Mbyte.
Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers.
This Section applies to the whole STM32F10xxx family, 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 STM32F10xxx microcontroller.
30.1 Memory size registers
30.1.1 Flash size register
Base address: 0x1FFF F7E0
Read only = 0xXXXX where X is factory-programmed
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
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.