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.
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!
-----------------------------------------------------------------------------------------------------------------------
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 !