2014-12-20 11:25 AM
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 ?thanks2014-12-20 12:05 PM
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.2014-12-20 12:13 PM
printf(''STM32F4 %08X-%08X-%08X UNIQUE
'',
*((unsigned long *)0x1FFFF7E8),
*((unsigned long *)0x1FFFF7EC),
*((unsigned long *)0x1FFFF7F0) );