How do I distinguish between family (RT104/5x), and sub-family (RT1051/2)?

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

How do I distinguish between family (RT104/5x), and sub-family (RT1051/2)?

173 Views
alfredatai
Contributor II

Hello,

Are there registers to check so we may run-time checking which MCU is used? I can see the OTP bits for identifying core frequency and silicon rev only.

Thanks in advance!

alfredatai_0-1713536278053.png

 

Labels (1)
0 Kudos
3 Replies

112 Views
alfredatai
Contributor II

Thanks. But I got to say distinguishing RT104x/5x is "half useful" only.

@Pablo_Ramosis there a way to infer RT1052 (has PXP) v.s. RT1051 (no PXP) by checking some PXP registers?

0 Kudos

70 Views
Pablo_Ramos
NXP Employee
NXP Employee

I understand your need but as I mentioned before, there is only possible to distinguish between families, i.e, RT104x/5x.

The method that you purpose seems viable but we don't have any test of it. But feel free to try and please let me know your results.

An alternative is just using a macro that you can identify.

0 Kudos

120 Views
Pablo_Ramos
NXP Employee
NXP Employee

Hi @alfredatai 
In order to distinguish between family (RT104x/5x) you can check the ID register (Silicon Version), but do not work for sub-family (RT1051/52).

i.MXRT

ID register

Value

RT104x

USB_ANALOG->DIGPROG

0x006C0000

RT105x

USB_ANALOG->DIGPROG

0x006A0001

 
Also, you can check OCOTP->CFG0 & OCOTP->CFG1 which has the UID, it's different on each chip.
Hope it helps you!
0 Kudos