stm32 UID全球唯一标识码总结
stm32f103系列单片机都有UID,96位,放在3个32位寄存器里面,base address:是?0x1ffff7e8,偏移地址分别是:0,4,8;
//下面这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单片机发现STM32F030x4/6/8/C and STM32F070x6/B的reference manual里面Device electronic signature没有找到Unique device ID register!!!怎么办?想用stm32f030的UID做模块识别!直接硬件测试,用3个f030单片机测试STM32F0x1/STM32F0x2/的UID,发现只有基地址有个24位或者20位的不同的值,4和8都是一样的!所以可以断定:0x1ffff7ac存放的32位数据就是stm32f030UID!
引用别人的***************
最新的STM32F0 Reference manual有 Device electronic signature章节:Base address: 0x1FFF F7AC?
STM32F0 uid Base address: 0x1FFF F7AC
偏移地址,00 04 08
stm32f030是有ID号的,是个32位的ID号, 具体见芯片手册.?
stm32UID唯一标识 相关文章:
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)