Please use the latest McuOnEclipse components from SourceForge (McuOnEclipse - Browse /PEx Components at SourceForge.net ), as KE02Z support has been added to the KinetisTools component in the 04-April-2016 release:
uint8_t KIN1_UIDGet(KIN1_UID *uid)
{
#ifdef SIM_UIDMH /* 80 bit UUID: SIM_UIDMH, SIM_UIDML and SIM_UIDL */
uid->id[0] = (SIM_UIDMH>>8)&0xff;
uid->id[1] = SIM_UIDMH&0xff;
uid->id[2] = (SIM_UIDML>>24)&0xff;
uid->id[3] = (SIM_UIDML>>16)&0xff;
uid->id[4] = (SIM_UIDML>>8)&0xff;
uid->id[5] = SIM_UIDML&0xff;
uid->id[6] = (SIM_UIDL>>24)&0xff;
uid->id[7] = (SIM_UIDL>>16)&0xff;
uid->id[8] = (SIM_UIDL>>8)&0xff;
uid->id[9] = SIM_UIDL&0xff;
#else /* some devices like the KE02Z only have 64bit UUID: only SIM_UUIDH and SIM_UUIDL */
uid->id[0] = 0;
uid->id[1] = 0;
uid->id[2] = (SIM_UUIDH>>24)&0xff;
uid->id[3] = (SIM_UUIDH>>16)&0xff;
uid->id[4] = (SIM_UUIDH>>8)&0xff;
uid->id[5] = SIM_UUIDH&0xff;
uid->id[6] = (SIM_UUIDL>>24)&0xff;
uid->id[7] = (SIM_UUIDL>>16)&0xff;
uid->id[8] = (SIM_UUIDL>>8)&0xff;
uid->id[9] = SIM_UUIDL&0xff;
#endif
return ERR_OK;
}
KE06 support will be added for the next release.
Regards,
Erich