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?
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,
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?
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 );
I am working on freedom board at present. I shall try your way. Let you know.
Retrieving data ...