How to read 128 bit unique device serial number of LPC546xx device?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to read 128 bit unique device serial number of LPC546xx device?

ソリューションへジャンプ
1,838件の閲覧回数
jbhoi
Contributor II

From LPC54628 datasheet, I can see this device have

128 bit unique device serial number for identification. 

How can I read it using code? I found the below API from fsl_iap.c but it reads only 32bits and I want 64bit or 128bit unique number. 

/*!
* brief Read unique identification.

* This function is used to read the unique id.
*
* param uniqueID store the uniqueID.
*
* retval #kStatus_IAP_Success Api was executed successfully.
*/
status_t IAP_ReadUniqueID(uint32_t *uniqueID)
{
uint32_t command[5], result[5];

command[0] = kIapCmd_IAP_ReadUid;
iap_entry(command, result);
uniqueID[0] = result[1];
uniqueID[1] = result[2];
uniqueID[2] = result[3];
uniqueID[3] = result[4];

return translate_iap_status(result[0]);
}

ラベル(1)
タグ(1)
1 解決策
1,779件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

Please check SDK demo code "iap_basic", it includes IAP_ReadUniqueID usage in main code.

Have a great day,
Jun Zhang

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

元の投稿で解決策を見る

1 返信
1,780件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

Please check SDK demo code "iap_basic", it includes IAP_ReadUniqueID usage in main code.

Have a great day,
Jun Zhang

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------