微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > stm32 UID全球唯一标识码总结

stm32 UID全球唯一标识码总结

时间:11-28 来源:互联网 点击:
UID:unique id区别于单片机的Deveice ID(区分是stm32f103还是stm32f030的单片机)

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号, 具体见芯片手册.?

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top