<< Click to Display Table of Contents >> Read Unique Device ID |
|
Each STM32 MCU has electronic signature in the form of Unique device ID (96 bits) 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 STM32F40x and STM32F41x microcontroller.
The unique device identifier is ideally suited:
For use as serial numbers (for example USB string serial numbers or other end applications) |
For use as security keys in order to increase the security of code in Flash memory while using and combining this unique ID with software cryptographic primitives and protocols before programming the internal Flash memory |
to activate secure boot processes, etc. |
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.
This block read the Unique device ID from the base address 0x1FFF 7A10 [1] and return the 96-bits values as 3 x 32-bits unsigned integer (Simulink vector signal).
1. | RM0090 Reference manual, STM32F405xx, STM32F407xx, STM32F415xx and STM32F417xx advanced ARM-based 32-bit MCUs, Device electronic signature. |