stm32 UID全球唯一標識碼總結(jié)
stm32f103系列單片機都有UID,96位,放在3個32位寄存器里面,base address:是?0x1ffff7e8,偏移地址分別是:0,4,8;
本文引用地址:http://m.butianyuan.cn/article/201611/322708.htm//下面這3個是stm32f103的uid
printf(" 0x1ffff7e8 id:0x%X",(*(volatile uint32_t *)0x1ffff7e8));
printf(" 0x1ffff7ec id:0x%X",(*(volatile uint32_t *)0x1ffff7ec));
printf(" 0x1ffff7f0 id:0x%X",(*(volatile uint32_t *)0x1ffff7f0));
STM32F0x1/STM32F0x2/STM32F0x8?里面Device electronic signature找到了?!
基地址:?-0x1ffff7ac
?stm32?f030單片機發(fā)現(xiàn)STM32F030x4/6/8/C and STM32F070x6/B的reference manual里面Device electronic signature沒有找到Unique device ID register!!!怎么辦?想用stm32f030的UID做模塊識別!直接硬件測試,用3個f030單片機測試STM32F0x1/STM32F0x2/的UID,發(fā)現(xiàn)只有基地址有個24位或者20位的不同的值,4和8都是一樣的!所以可以斷定:0x1ffff7ac存放的32位數(shù)據(jù)就是stm32f030UID!
引用別人的***************
最新的STM32F0 Reference manual有 Device electronic signature章節(jié):Base address: 0x1FFF F7AC?
STM32F0 uid Base address: 0x1FFF F7AC
偏移地址,00 04 08
stm32f030是有ID號的,是個32位的ID號, 具體見芯片手冊.?
評論