Ruffian Heng embedded: the product ID register is also hidden in the original i.mxrt1xxx series


Hello, I’m ruffian Heng, a serious technical ruffian. What ruffian Heng introduced to you today isi. Product ID register hidden in mxrt1xxx series

When defining a product family, MCU manufacturers usually plan the product development route in advance (that is, a large number of MCU models will be available, and the characteristics of each model are different). Therefore, MCU generally has a special read-only register to store the product ID value, which can be read by the application program to identify the current MCU model, In this way, the code can be universal on this MCU series when designing the software, so as to facilitate the replacement and upgrading of MCU models for the project.

Some time ago, ruffian Heng made a design for the full series of i.mxrtSuper download algorithm, it is necessary to use product ID to distinguish models, but at that time, no such register was found on i.mxrt1xxx series, so an alternative method was used. See details for detailsIdentifying the current i.mxrt modelA penny. Recently, however, ruffian Heng found that there is actually a product ID register on i.mxrt1xxx series, which is hidden deeply. Today we dig it out:

1、 I. mxrt series ID register

i. So far, the mxrt1xxx family has produced five main models i.mxrt1010/1020/1050/1060/1170. Based on the main model, four characteristic models i.mxrt1015/1024/1064/1160 have also been extended. Let’s see how their ID registers are designed:

1.1 design on the first generation architecture i.mxrt10xx

All i.mxrt10xx models belong to the first generation architecture, and their product ID registers are uniformly hidden in USB_ In the analog module. The following is the USB in i.mxrt1050_ Dialog – > digprog register definition. This register value indicates the chip silicon version, where digprog [31:16] is the type number and digprog [15:0] is the version code.

The model number is not directly related to the real part number of the chip and needs to be translated. According to the law, digprog [19:16] records the chip launch sequence. I. mxrt1050 is the first model of the series, marked with a; i. Mxrt1020 is the second model in the series, marked B.

1.2 design on the second generation architecture i.mxrt11xx

The models represented by i.mxrt1170 belong to the second generation architecture, and their product ID registers are uniformly placed in anadig_ In misc module. Here is anadig in i.mxrt1170_ MISC->MISC_ Difprog register definition. This register value indicates chip silicon version, where Misc_ Difprog [23:8] is the model number, misc_ Difprog [7:0] is the version code.

The model number is directly the number in the real part number of the chip, which is simple and clear. I hope the next new model number will maintain this style.

2、 I. mxrt series ID value

Finally, the product ID values of all current models of i.mxrt1xxx are recorded, which are actually measured and read on the board (Note: the values in some chip reference manuals are wrong), and the values here shall prevail.

i. Mxrt model ID register type ID register value remarks
i.MXRT1011 USB_ANALOG->DIGPROG 0x006D0000 /
i.MXRT1015 USB_ANALOG->DIGPROG 0x006B0000 Featured model based on i.mxrt1021
i.MXRT1021 USB_ANALOG->DIGPROG 0x006B0000 /
i.MXRT1024 USB_ANALOG->DIGPROG 0x006B0000 i. SIP version of mxrt1021
i.MXRT105x USB_ANALOG->DIGPROG 0x006A0001 /
i.MXRT106x USB_ANALOG->DIGPROG 0x006C0000 /
i.MXRT1064 USB_ANALOG->DIGPROG 0x006C0000 i. SIP version of mxrt106x
i.MXRT116x ANADIG_MISC->MISC_DIFPROG 0x001160A0 Featured models based on i.mxrt117x

So far, the product ID register ruffian Heng hidden in i.mxrt1xxx series has been introduced. Where is the applause~~~

Welcome to subscribe

The article will be published to me at the same timeBlog Park home pageCSDN home pageZhihu home pageWeChat official accountOn the platform.

Wechat search“Ruffian scale“Or scan the QR code below to see it for the first time on the mobile phone.

Recommended Today

SQL statement of three-level linkage of provinces, cities and counties

The first is the table creation statement Copy codeThe code is as follows: CREATE TABLE `t_address_province` ( `id` INT AUTO_ Increment primary key comment ‘primary key’,`Code ` char (6) not null comment ‘province code’,`Name ` varchar (40) not null comment ‘province name’)Engine = InnoDB default charset = utf8 comment = ‘province information table’; CREATE TABLE […]