How to get Chip/Mcu id in code?

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

How to get Chip/Mcu id in code?

Jump to solution
650 Views
ishwarlal
Contributor III

We are using MIMXRT1064 & MIMXRT1062 controller in same project (depending on availability). As both the chips are almost same and the code runs from internal ram, there is no need to compile the Application code separately for both chips. But during the program execution we need to know on which chip the code is running.

In Kinetis series there is a register called "SIM->SDID" which give information about chip itself, is there something similar in MIMXRT series also available?

 

Kind Regards

Lal

 

#MIMXRT1064 #MIMXRT1062

 

0 Kudos
Reply
1 Solution
590 Views
mayliu1
NXP Employee
NXP Employee

Hi @ishwarlal ,

I would like share you some information which I got from internal team at NXP.

please try to read fuse value by below shadow register, it has the different value in bit20 between RT1062 and RT1064.

mayliu1_0-1747907001402.png

I did a test, I can read  this fuse value, it has the different value in bit20 between RT1062 and RT1064.

mayliu1_1-1747907038208.png

mayliu1_2-1747907056086.png

 

Wish it helps you.
If you still have question about it, please kindly let me know.

Wish you a nice day!

Best Regards
MayLiu

View solution in original post

2 Replies
591 Views
mayliu1
NXP Employee
NXP Employee

Hi @ishwarlal ,

I would like share you some information which I got from internal team at NXP.

please try to read fuse value by below shadow register, it has the different value in bit20 between RT1062 and RT1064.

mayliu1_0-1747907001402.png

I did a test, I can read  this fuse value, it has the different value in bit20 between RT1062 and RT1064.

mayliu1_1-1747907038208.png

mayliu1_2-1747907056086.png

 

Wish it helps you.
If you still have question about it, please kindly let me know.

Wish you a nice day!

Best Regards
MayLiu

613 Views
mayliu1
NXP Employee
NXP Employee

Hi @ishwarlal ,

Thank you so much for your interest in our products and for using our community.

Regarding your question, I checked the Kinetis MCU reference manual.

Taking the K20P64M72SF1RM as an example, as you mentioned, it specifies the Kinetis series for the device.

mayliu1_0-1747807656169.png

 

However, in the IMXRT1060RM and IMXRT1064RM, there are no such registers to specify the RT series of the device.

I will escalate your issue to the relevant internal teams at NXP. 

Wish it helps you.
If you still have question about it, please kindly let me know.

Wish you a nice day!

Best Regards
MayLiu

0 Kudos
Reply