Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 5 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:
1 Answer
9 years, 5 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;