another bug of USBDM?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

another bug of USBDM?

666件の閲覧回数
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 返答(返信)

348件の閲覧回数
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 件の賞賛
返信

348件の閲覧回数
wangbaode
Contributor IV

hi pgo,

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

0 件の賞賛
返信

348件の閲覧回数
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 件の賞賛
返信