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