XMC: Serial Number or UID?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hello at all,

does anyone know if the XMC microcontroller has a serial number or UID, which is unique assigned to this chip and which I can read? This number should exist only once in the world.
And how do I read these out? Or at which address range can I find this number?

Regards Patrick
0 Likes
14 Replies
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

The unique chipid is 16bytes long.

In XMC1 family the unique chip id is located at 0x10000FF0.
In XMC4 familiy there is the g_chipid which is initialized at startup with the contents of the unique chip id, see SystemInit() in system_XMC4x00.


Regards,
Jesus
0 Likes
Not applicable
Hello,

thank you. This is perfect.

Best Regards
Patrick
0 Likes
User14604
Level 4
Level 4
First solution authored
If I remember correctly, there are forum posts here which state that the unique ID isn't unique among several chips of the same batch.
0 Likes
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

The chip id coded in the 16bytes is unique.

Regards,
Jesus
0 Likes
User14604
Level 4
Level 4
First solution authored
Hello Jesus,

I'm refering to Travis' post here: https://www.infineonforums.com/threads/1030-Unique-Serial-Number-or-Mac-Address-in-XMC4400?p=3065&vi...
Could you please clarify?

Best regards,
Ernie T.
0 Likes
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

The 16bytes chip id is absolute unique for every XMC4000/XMC1000.

Regards,
Jesus
0 Likes
User14604
Level 4
Level 4
First solution authored
Hello Jesus,

thank you for the clarification! In th case partial information in the referenced thread is wrong, which resulted in uncertainty among forum users - including myself.
Do you recommend linking it to this thread?

Best regards,
Ernie T.
0 Likes
User16526
Level 1
Level 1
A reference on how to retrieve the UCID for the XMC1000 family.

https://www.infineon.com/dgdl/DEV_XMC1000_UCID_v1_0.pdf?fileId=db3a3043419f09c30141a157c58f000c
0 Likes
User11325
Level 1
Level 1
Hi,

Any help as to how this UID is structured?
Is i just a running number, or are there static fields describing the family/size/pin numbers?

Best regards Mathias
0 Likes
User11325
Level 1
Level 1
mwh wrote:
Hi,

Any help as to how this UID is structured?
Is i just a running number, or are there static fields describing the family/size/pin numbers?

Best regards Mathias


@jferreira Can you shed some light on this. Could really use an answer ASAP 🙂
0 Likes
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

We do not provided the decoding of the 16bytes of Unique Chip ID.
It is guaranteed to be unique. What information would you need?

Regards,
Jesus
0 Likes
User11325
Level 1
Level 1
jferreira wrote:
Hi,

We do not provided the decoding of the 16bytes of Unique Chip ID.
It is guaranteed to be unique. What information would you need?


Sorry for not reacting earlier when I pushed for this information, however I hadn't received notification of response.
The thing is, I need to compose the most "unique" 32-bit value of the 16 bytes, hence some knowledge about the structure of the 16 byte would really help.
I'm aware that collisions will occur, however some application specific knowledge could have importance for which bit sets to extract.

Ie. if the 16 bytes include information regarding the chip type, and one knows the application only utilizes one chip type, then these bits can be left out and thereby minimizing collision rate.

Best regards Mathias
0 Likes
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

An alternative may be to create your own unique ID using the BMI string located in UCB2 flash page.
See 27.3.8 Boot Mode Index (BMI) section in the reference manual.

Regards,
Jesus
0 Likes
HolgerW_56
Employee
Employee
25 solutions authored 10 sign-ins 5 sign-ins

If I am not wrong "BMI string located in UCB2 flash page" belongs to XMC4 but not XMC1 Family

!

0 Likes