Problem accessing MKL27Z256M4 using USBDM

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

Problem accessing MKL27Z256M4 using USBDM

跳至解决方案
1,546 次查看
uribendelac
Contributor III

Hi pgo,

I have a board populated with either a MKL25Z128M4 or MKL27Z256M4 (they are pin compatible, the later basically with twice the flash and ram memory). I have no problem flashing and debugging the MKL25Z128M4 based board, but when I try to access the MKL27Z256M4, the debugger fails with error that the "Target device does not agree with selected". Using the stand alone ARM programmer, when I press the "Detect Chip" button, it will say it is unidentified, with Chip ID 23161d82. It will allow me to erase the chip, but not program it, reporting the same error about the Chip ID not being correct. According to the Reference Manual of this chip, document KL27P64M48SF6RM, the value 23161d82 for the SIM_SDID is indeed correct (the second 1 is the revision number and may change in the future, but all other fields are correct). It seems as if the software assumes an incorrect Chip ID? Is there a way around that?

Thanks,

Uri

0 项奖励
回复
1 解答
1,323 次查看
uribendelac
Contributor III

OK, I have found the XML file where those SDID values are defined (arm_devices.xml), and indeed it had an incorrect value: 27160d80, which should be fixed to 23160d80.

I can now use the flash programmer and the debugger normally.

Uri

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,324 次查看
uribendelac
Contributor III

OK, I have found the XML file where those SDID values are defined (arm_devices.xml), and indeed it had an incorrect value: 27160d80, which should be fixed to 23160d80.

I can now use the flash programmer and the debugger normally.

Uri

0 项奖励
回复
1,323 次查看
pgo
Senior Contributor V

Hi Uri,

I will correct this in the next version.

It would appear that the KL27 in that size is actually a KL23 family?

bye

0 项奖励
回复
1,323 次查看
uribendelac
Contributor III

Hi pgo,

I believe the MKL27Z128 and MKL27Z256 are identical to the corresponding MKL43Z components, except their LCD related functionality has been disabled. I also seem to recall reading somewhere that the MKL27Z64 and MKL27Z32 are a slightly different core, which would explain why they have a separate Reference Manual.

Regards,

Uri

0 项奖励
回复