Kinetis series Unique device ID

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Kinetis series Unique device ID

1,210 Views
Embionics
Contributor III

Hello,

There is a 80 bit unique device ID for kinetis series controller.

Is there any function to read the UID at run time using processor expert(code warrior 10.3)?

Or any other method to read the unique ID at run time?

Regards,

Amreen

0 Kudos
4 Replies

591 Views
hectorsanchez
Contributor IV

Hi Amreen,

You have these registers to read the unique ID:

SIM_UIDH  = Unique Id Register High.

SIM_UIDMH = Unique Id Register Mid-High

SIM_UIDML = Unique Id Register Mid-Low

SIM_UIDL = Unique Id Register Low

Hope this helps,

Hector

0 Kudos

591 Views
Embionics
Contributor III

Hello Hector,

Thanks for the reply.

Actually I got to know these registers from datasheet as well as I could view it in debug watch window.

I am facing problem while reading this in code. is there any syntax, function to read these registers?

0 Kudos

591 Views
hectorsanchez
Contributor IV

Hi again,

There should be bare-metal header files to access them, what kinetis are you using?

Try to access them like this:

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

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

0 Kudos

591 Views
Embionics
Contributor III

I am working on freedom board at present. I shall try your way. Let you know.

Thanks,

Amreen

0 Kudos