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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,425 Views
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.

Labels (1)
Tags (1)
0 Kudos
Reply
2 Replies

1,325 Views
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 Kudos
Reply

1,306 Views
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 Kudos
Reply