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

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

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

334 次查看
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

 

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

273 次查看
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 项奖励

231 次查看
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 项奖励

281 次查看
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 项奖励