AnsweredAssumed Answered

LPC51U68 Read UID

Question asked by Li-Chin Wang on Feb 26, 2019
Latest reply on Feb 27, 2019 by Con Verse

I want to use readuid function to get UID via this functions.  

I use FLASHIAP_readpartid functions to get partid via this functions.

UID I read is 0xffffffff,0x0,0x0,0x0.

Part ID I read is 0x06451b68

readuid seems doesn't work correctly which return 0xffff,0x0,0x0,0x0.

 

status_t FLASHIAP_readuid(void)
{
//uint32_t command[5], result[4];

uid_command[0] = kIapCmd_FLASHIAP_ReadUid;
iap_entry(uid_command, uid_result);

return translate_iap_status(uid_result[0]);@
}

 

status_t FLASHIAP_readpartid(void)
{
//uint32_t command[5], result[4];

uid_command[0] = kIapCmd_FLASHIAP_ReadPartId;
iap_entry(uid_command, uid_result);

return translate_iap_status(uid_result[0]);
}

Outcomes