cancel
Showing results for 
Search instead for 
Did you mean: 

unique ID of mcu

mhdizgah
Associate II
Posted on December 20, 2014 at 20:25

hi every one

i have 2 question :

1- is there a unique ID for each stm32 mcu ?

how we can read this(if there is ) ?

2-i need to save a few data in mcu which dosent erased after reset (like eeprom )

is there any internal fuse bit /flag or some thing like that (only some byte is enough ) for storing datas ?how we can achieve that ?

thanks
2 REPLIES 2
Posted on December 20, 2014 at 21:05

Each STM32 has a unique 96-bit ID, it's address depends on the specific model, refer to the Reference Manual.

Use OTP (One Time Programmable) area.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on December 20, 2014 at 21:13

printf(''STM32F4 %08X-%08X-%08X UNIQUE

'',
*((unsigned long *)0x1FFFF7E8),
*((unsigned long *)0x1FFFF7EC),
*((unsigned long *)0x1FFFF7F0) );

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..