another bug of USBDM?

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

another bug of USBDM?

837 次查看
wangbaode
Contributor IV

Hi pgo.

I think i find another bug of usbdm.

I'm using usbdm to debug MKE02Z64. In my project,I use EEPROM of KE02.when i debug through usbdm.I find there is nothing in EEPROM address.

pastedImage_0.png

I think in EEPROM ,0xff should be filled.

bye

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

519 次查看
pgo
Senior Contributor V

Hi Wang,

There are two things preventing this showing the correct values:

  • Codewarrior appears to be accessing the memory as long words (4-bytes). This is not working.  The EEPROM only supports byte accesses.  It is necessary to edit the MKE02Z64.mem file and change as follows:

pastedImage_4.png

  • The second problem is that USBDM tries to optimise memory accesses - This doesn't work correctly in this case so I will have to remove this optimisation.  You can replace the files in the ......\Freescale\CW MCU v10.6\MCU\bin\plugins\support\ARM\gdi directory with the attached files to do this.  These have not been tested very much so keep the original files in case you need to restore them.

 

Note: USBDM does not support programming the EEPROM.

bye

0 项奖励
回复

519 次查看
wangbaode
Contributor IV

hi pgo,

I debug the same project through openSDA. the value in eeprom is right.

0 项奖励
回复

519 次查看
pgo
Senior Contributor V

Hi Wang,

The current version of USBDM corrects the USBDM bug but I believe it will still require the fix to the MKE02Z64.mem file.

I'm surprised openSDA works without this change as it is a limitation of the target chip (I thought).

bye

0 项奖励
回复