can the the ship unique identification of imx rt1052 be readed in app code?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

can the the ship unique identification of imx rt1052 be readed in app code?

1,007 次查看
1920844004
Contributor III

can the the ship unique identification of imx rt1052 be readed in app code?

I know  can be readed in flashloader.

I'm investigating...

Any help much appreciated.

标签 (1)
标记 (1)
0 项奖励
2 回复数

907 次查看
igorpadykov
NXP Employee
NXP Employee

Hi zhihui

chip unique id description can be found in Table 5-9. Fusemap Descriptions

i.MX RT1050 Reference Manual and some fuse examples can be found in MCUXpresso

..devices/MIMXRT1052/drivers/fsl_dcp.c
https://www.nxp.com/docs/en/reference-manual/IMXRT1050RM.pdf

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励

888 次查看
brain00
Contributor II

No.

it is not related to fusemap / dcp module.

Here is the code to read the MCU Unique Device ID:

1. Add fsl_ocotp.c / .h to your drivers folder (you can copy them from the SDK)

2. 

#include "fsl_ocotp.h"

#define OCOTP_FREQ_HZ (CLOCK_GetFreq(kCLOCK_IpgClk))

OCOTP_Init(OCOTP, OCOTP_FREQ_HZ);

// Print MCU Unique Device ID

PRINTF("OCOTP controller CFG0: 0x%08X\r\n", OCOTP->CFG0);
PRINTF("OCOTP controller CFG1: 0x%08X\r\n", OCOTP->CFG1);

 

That's all,

Enjoy !

0 项奖励