Question about MKS22FN256VLL12 SDID

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

Question about MKS22FN256VLL12 SDID

797 次查看
chris_f
Contributor V

I'm trying to configure openocd to program an MKS22FN256VLL12.

openocd reports: MCU is unsupported, SDID 0x22000418

Having added that SDID to openocd, I can connect and read the SDID register:

Open On-Chip Debugger
> mdw 0x40048024
0x40048024: 22000418

As far as I can tell, this doesn't correspond to the SDID in the reference manual. Page 207 of KS22P100M120SF0RM says that the DIEID in SDID[11:7] should be 10111 but this device reads as 01000?

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

609 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi chris_f,

The SIM_SDID in KS22P100M120SF0RM shows it should be 10111, but this device reads as 01000 too.
Here is the MKS22FN256VLL12 on MAPS-KS22 board.
I need to check it with our internal team.

SIM_SDID.png

SIM_SDID[DIEID].png

MKS22FN256VLL12.jpg

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

609 次查看
chris_f
Contributor V

I made a mistake in my original post, I'm using an MKS22FN128VLL12 not the 256kB variant.

SIM_FCFG1 reads 0x070F0F00 where the RM says it should be 0xF70F0F00.

Edit:

I can't get OpenOCD to flash the device using the same algorithm as for a K22 of the same size.

OpenOCD flashes the device with the same algorithm as a K22 (my problems were due to cable length).

0 项奖励

609 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

About SIM_SDID[DIEID]:

Have confirmed this is a document issue, the id read out is right, the id on document is wrong.

About SIM_FCFG1[31-28]:

The value of SIM_FCFG1[31-28] may be wrong too.(need time to confirm)

SIM_FCFG1[31-28] debug.png

0 项奖励