8 years, 10 months ago.

KL25Z Unique ID register - mbed access?

Greetings,

Are there mbed library calls available to access the 80-bit Unique ID on the KL25Z? My first search around mbed.org didn't turn anything up.

Thanks, Bob

Question relating to:

Freescale is a leader in embedded processing solutions for the automotive, consumer, industrial and networking markets.

1 Answer

8 years, 10 months ago.

You can just get it from the registers yourself. (An 80-bit unique ID seems kinda excessive to me, also often a shorter one is alot handier, but well, we can't change that).

With too lazy to check if it works, this should do the job:

uint32_t high = SIM->UIDMH;
uint32_t mid = SIM->UIDML;
uint32_t low = SIM->UIDL;

Accepted Answer

This did the trick! Thanks for the quick reply.

posted by Bob Recny 23 Jun 2015