How to read the unique ID for K60?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read the unique ID for K60?

Jump to solution
1,085 Views
Senior Contributor I

Hi All,

I know every MCU has an unique id for it. How can I get this unique id?

Thank you.

-Daniel

1 Solution
85 Views
NXP Employee
NXP Employee

Hi Daniel,

You have 4 registers that contain the Unique Identification (UID):

Unique Identification Register High: SIM_UIDH

Unique Identification Register Mid-High: SIM_UIDMH

Unique Identification Register Mid-Low: SIM_UIDML

Unique Identification Register Low: SIM_UIDL

Here is an example to get it:

printf( "CPU Unique Identifier:\n" );

printf( "0x%08X 0x%08X 0x%08X 0x%08X\n", SIM_UIDH, SIM_UIDMH, SIM_UIDML, SIM_UIDL );

View solution in original post

4 Replies
85 Views
NXP Employee
NXP Employee

Hi Daniel,

I just wanted to follow up on your question regarding the Unique ID for the K60.  The 128-bit value can be read via the following registers:

  • Unique Identification Register High (SIM_UIDH)
  • Unique Identification Register Mid-High (SIM_UIDMH)
  • Unique Identification Register Mid-Low (SIM_UIDML)
  • Unique Identification Register Low (SIM_UIDL)

Can you please tell me what mask set of the device you have, which is printed on the top of the device or what the value of the SIM_SDID[REVID] reports back?  I know that some revisions did not have this value programmed correctly.

I look forward to your response.

Best Regards,

Carlos

85 Views
Senior Contributor I

Hi Carlos,

The device I am using is MK60FN1M0VLQ12.

Thanks.

0 Kudos
86 Views
NXP Employee
NXP Employee

Hi Daniel,

You have 4 registers that contain the Unique Identification (UID):

Unique Identification Register High: SIM_UIDH

Unique Identification Register Mid-High: SIM_UIDMH

Unique Identification Register Mid-Low: SIM_UIDML

Unique Identification Register Low: SIM_UIDL

Here is an example to get it:

printf( "CPU Unique Identifier:\n" );

printf( "0x%08X 0x%08X 0x%08X 0x%08X\n", SIM_UIDH, SIM_UIDMH, SIM_UIDML, SIM_UIDL );

View solution in original post

85 Views
Contributor III

I'm trying to do the same thing without printf, using only UART_Wr, UART,PutChar, etc.

Would you know how should we do the same thing in cases where we are not allowed to use printf (mem constraints)?

0 Kudos