Find EFM32 EUI48 (EUI48L/EUI48H)

by <a href="http://community.silabs.com/t5/Welcome-and-Announcements/Community-Ranking-System-and-Recognition-Program/m-p/140490#U140490"><font color="#000000"><font size="2">Master Employee</font></font> </a> delu on ‎07-04-2017 01:32 AM

Question

 How to get EFM32 EUI48 number for EFM32PG/JG and EFR32 device?

Answer

The device unique identifier (EUI48L/EUI48H) is a 48-bit unique number which is programmed into the Device information page of the flash during the production of the device.

 

It is possible to read out the number electronically by reading this value from the Device Information page with routine like as below:

__STATIC_INLINE uint64_t SYSTEM_GetEUI(void)
{
  uint32_t tmp = DEVINFO->EUI48L;
  return (uint64_t)((uint64_t)(DEVINFO->EUI48H & 0x00FF) << 32) | tmp;
}