7005 views|4 replies

565

Posts

0

Resources
The OP
 

[N32L43x Review] 5. Get MCU 96-bit UID, 128-bit UCID [Copy link]

 

1. Introduction

The general MCU only has 96-bit UID, while N32L43x contains not only 96-bit UID but also 128-bit UCID, which is read and tested in this article.

2. UCID and UID

96-bit UID information, starting address is 0x1FFFF7F0;

128-bit UCID information, starting address is 0x1FFFF7C0;

When the device leaves the factory, it is already fixed inside the MCU and cannot be changed by the user.

3. Program reading

#define   UCID      0x1FFFF7C0
#define   UID       0x1FFFF7F0


struct McuInfo_t
{
	uint8_t UniqueCustomerId[16];
	uint8_t UniqueDeviceId[12];
}McuInfo;


void GetMcuInfo(void)
{
	printf("Unique Customer Id:[");
	for(uint8_t i=0;i<16;i++)
	{
		McuInfo.UniqueCustomerId[i]=*(uint8_t*)(UCID+i);
		printf(" %02x",McuInfo.UniqueCustomerId[i]);
	}
	printf("]\r\n\r\n");
	
	
	printf("Unique Device Id:[");
	for(uint8_t i=0;i<12;i++)
	{
		McuInfo.UniqueDeviceId[i]=*(uint8_t*)(UID+i);
		printf(" %02x",McuInfo.UniqueDeviceId[i]);
	}
	printf("]\r\n");
}

4. Testing

It can be seen that the program reads the same as the debugger debug read.

This post is from Domestic Chip Exchange

Latest reply

When I used stm8 to make a thermometer, I used it to make a unique identification for the device, but it was a hassle to take it out and authenticate it one by one. If it is matched on a large scale, it is really a hassle. I wonder if other netizens have good application cases. I searched online, but there is really no specific solution.   Details Published on 2022-7-8 12:13
Personal signaturestm32/LoRa物联网:304350312
 
 

5998

Posts

6

Resources
2
 

Where is this information stored? Can it be read directly like a variable? Doesn't it require configuring something?

This post is from Domestic Chip Exchange
 
 
 

6818

Posts

11

Resources
3
 
Can this be used for something? Please give me some scientific knowledge, otherwise I won’t know what to do with it after taking it out!
This post is from Domestic Chip Exchange

Comments

Unique ID, moderator, can you add more information? What do you think it can be used for?  Details Published on 2022-7-8 11:51
 
 
 

565

Posts

0

Resources
4
 
lugl4313820 posted on 2022-7-8 11:26 Can this be used for something? Please give me some scientific knowledge, otherwise I don’t know what to do with it after taking it out!

Unique ID, moderator, can you add more information? What do you think it can be used for?

This post is from Domestic Chip Exchange

Comments

I used stm8 to make a thermometer, and it was used to make a unique identification for the device, but it was a hassle to take it out and authenticate it one by one. If it is matched on a large scale, it is really a hassle. I wonder if other netizens have good application cases. I searched online, but there is really no specific method.  Details Published on 2022-7-8 12:13
Personal signaturestm32/LoRa物联网:304350312
 
 
 

6818

Posts

11

Resources
5
 
freeelectron posted on 2022-7-8 11:51 Unique id, moderator, can you add something, what do you think can be done?

When I used stm8 to make a thermometer, I used it to make a unique identification for the device, but it was a hassle to take it out and authenticate it one by one. If it is matched on a large scale, it is really a hassle. I wonder if other netizens have good application cases. I searched online, but there is really no specific solution.

This post is from Domestic Chip Exchange
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list