STM32F4 (read chip ID)

Publisher:devilcoreLatest update time:2018-04-23 Source: eefocusKeywords:STM32F4 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Unique device identifiers are suitable for:

● Used as a serial number (e.g. USB string serial number or other terminal applications)

● Use the unique ID as a security key when used in conjunction with software encryption primitives and protocols before programming the internal Flash to increase the security of the code in the Flash

● Activate the secure bootstrap process, etc.

The 96-bit unique device identifier provides a reference number that is unique to any device and any context. These bits can never be changed by the user.

The 96-bit unique device identifier can also be read in different ways such as single byte/half word/word, and then concatenated using a custom algorithm.

Base address: 0x1FFF7A10


typedef struct  

{  

  uint32_t id[3];  

}ChipID;  

  

ChipID Get_ChipID(void)  

{  

  ChipID chipid = {0};  

    

  chipid.id[0] = *(__I uint32_t *)(0x1FFF7A10 + 0x00);  

  chipid.id[1] = *(__I uint32_t *)(0x1FFF7A10 + 0x04);  

  chipid.id[2] = *(__I uint32_t *)(0x1FFF7A10 + 0x08);  

    

  return chipid;  

}  


Keywords:STM32F4 Reference address:STM32F4 (read chip ID)

Previous article:STM32F4 C++ package library GPIO
Next article:STM32F4(BUZZ)

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号