USBDM - Version 4.10.5 (RS08/HCS08/HCS12/CFV1/Kinetis BDM)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USBDM - Version 4.10.5 (RS08/HCS08/HCS12/CFV1/Kinetis BDM)

10,252 Views
pgo
Senior Contributor V

Dear All,

USBDM has been updated to V4.10.5

Please post any queries on this version in a separate thread - I really can't cope with this newfangled setup!

Documentation available at: SourceForge

Applications available at: SourceForge

Source code is available at: GitHub eventually.

bye

Note

  • Please note that these design are different from the Freescale OSBDM-JM60 design which was proceeding independently while I was doing the above design.

USBDM V4.10.5 (May 2013)

  •    Added support for Codewarrior 10.4 Release
  •    Added USBDM New project Wizard for Eclipse CDT + Codesourcery
  •    Added Plugin for using USBDM + GDB with Eclipse
  •    Updated Codesourcery and USBDM API examples (for Eclipse)
  •    Updated Codesourcery instructions in help files
  •    Bug fixes to GDB sprites
  •    Updated Kinetis device description files (Added devices, added GDB information)
  •    Updated Codlfire device description files (Added GDB information)
  •    Fixes to programmer GUI (setting trim options)
  •    OpenSDA firmware now supports CDC interface (serial over USB).
  •    Updated OpenSDA firmware to work with later versions of OpenSDA bootloaders

Updated drivers for Windows

   Only update the drivers if there have been problems (WinXP mostly).  There is  no added functionality

  •    Windows XP 32-bit              USBDM_Drivers_1_1_0_WinXP_x32.msi
  •    Windows XP 64-bit              USBDM_Drivers_1_1_0_WinXP_x64.msi
  •    Windows (except XP) 32-bit USBDM_Drivers_1_1_0_Win_x32.msi  
  •    Windows (except XP) 64-bit USBDM_Drivers_1_1_0_Win_x64.msi  

  

   It is necessary to uninstall any existing driver installation using the Add or Remove Programs in the Control Panel.

12 Replies

5,961 Views
calvinji
NXP Employee
NXP Employee

Hi pgo,

Have the OpenSDA Bootloader source been availabel?

0 Kudos
Reply

5,961 Views
pgo
Senior Contributor V

Firstly - Please don't post questions on the end of an unrelated thread.

Please see this discussion which I believe represents the situation.

Availability of OpenSDA standard or Example programs

Other discussions can be found  by searching for openSDA.

bye

0 Kudos
Reply

5,961 Views
woel
Contributor II

Hello pgo,

I have installed the version 4.10.5b on a new machine with win 7 64. In CFFlasher if I select usbdm-cff under BDM Communication I get the error: "Error loading protocol". What could be the reason for this?

Thank you very much.

Wolfgang

0 Kudos
Reply

5,961 Views
woel
Contributor II

Hello pgo,

I have now tested all versions 4.10.x and only with 4.10.4 and 4.10.5 CFFlasher showes this error. With 4.10.3 I can program a mcf5475 board, but the verify command causes errors even though the "memory window" in this area looks OK. Then I have tested it with a mcf54418 board, but I get no connection. The message is: "Error: BDM Established, but cannot write D0".

I hope, this helps.

Thank you.

Wolfgang

5,961 Views
carver_ua
Contributor II

Thank you for your message.

I have tried many versions of USBDM, and only usbdm-cff.dll from version 4.10.3(or earlier) works on MCF5274 and 28F128J3D. all never usbdm-cff.dll - send few data via USB, and CFFlasher - dead.

but in my case, with 4.10.3,  the problem steel remains ((

in the read dump there are a lot of 0x80008000, and each time in a new place.

I changed the USB cable and port, laptop, windows XP_32 and 7_64, USBDM_CF firmware and many drivers.
nothing helped ((


In USBTrace and the file dump - often many 0x80008000 Dword,
i compare with original FW, no other error bits, just 0x80008000.

I don't know what the problem might be
- in the processor settings in CFFlasher, (i use setting from M5275EVB with my FLASHBASE)

DEVICE MCF5274
RAMBAR1 20000000
IPSBAR 40000000
FLASHBASE F0000000

INSTRAM RAMBAR1 
DATARAM RAMBAR1
DATASIZE 0x100

FLASHALG 28F128J3D(1x16)

wcreg RAMBAR1 RAMBAR1 0x1

write.l IPSBAR 0x00000000 IPSBAR 0x1
write.w IPSBAR 0x00000080 FLASHBASE>>0x10 0x00000000
write.w IPSBAR 0x0000008A 0x3D80
write.l IPSBAR 0x00000084 0x001F0001
write.w IPSBAR 0x00140000 0x0000
write.l IPSBAR 0x120000 0x01000000
delay 100

- in the CFFlasher read algorithm, file 28F128J3D (1x8).alg / 28F128J3D (1x16).alg

   no any code in USBTrace for read flash.
- or in bad USBDM_CF v3.1 board, I bought from taobao (seller nickname Alice).

if you have any thoughts regarding 0x80008000 in read dump, maybe this will help me.

thanks in advance.

/carv
0 Kudos
Reply

5,961 Views
carver_ua
Contributor II

yea. 
I compare two USBTrase. 
When i see Memory in CFFlasher, i get TWO 0x80008000 for 65536 bytes of read flash
When i upload 65536 bytes of flash dump in CFFlasher, i get 1641 DWord with 0x80008000.

it can be seen that memory reading is slower, so there are also fewer errors.

Please anybody tell me if there is a possibility to adjust the speed in usbdm-cff.dll from version 4.10.3.

or other way, for dump my flash in USBDM.  

I saw a scripting interface there. I'll try to figure it out.

/carv
0 Kudos
Reply

5,961 Views
pgo
Senior Contributor V

Hi Wolfgang,

I found an error in the build process for the later version of usbdm_cff.dll that produces a DLL that won't load.  This applies to 4.10.5 at least and probably some earlier versions as you have discovered. 

Unfortunately I'm not getting very far with testing the solution to this as it the fixed version loads but when accessing the target it hangs somewhere in CFFlasher.exe on Windows 7.

I'll have to try an a Win-XP machine tomorrow.  I also only have a couple of CFV2 chips to test with.

From the problems you are describing I suspect that the communication is unreliable.  I'm unsure why.

bye

0 Kudos
Reply

5,961 Views
raining
Contributor I

hi pgo

v4.9.5a contains firmware version is 4.9.5

v4.9.5b contains firmware version is 4.9.4

0 Kudos
Reply

5,961 Views
pgo
Senior Contributor V

Hi Zhilun,

There has been shuffling between machines that has caused this.  There are no significant changes in the firmware so I won't fix it until I find another problem

bye

0 Kudos
Reply

5,961 Views
carloscuev
Contributor V

Hello PGO, I've just installed v4.10.5a and I had this problem that was not present in v4.10.5:

4.10.5a_bug.png

This happens just with all the standalone programmers, all the other exe files run correctly. I'm running them in Windows 7 64-bit

Version 4.10.5a installs correctly, without any file corruption or something, considering that the installer grew 12 MB, from  41 MB in v4.10.5 to 53 MB in v4.10.5a, I think this is more like a a corrupted new library or something like that, I'm just guessing.

0 Kudos
Reply

5,960 Views
pgo
Senior Contributor V

Hi Carlos,

Unfortunately I moved machines (XP-32bit=>W7-64bit) between 4.10.5 and 4.10.5a - In theory they are little changed but the compiler seems to produce different code (different version of compiler amongst other things).  All works fine on my new machine :smileyhappy:.

I'll do  a build on the old machine and upload it until I can find out what the problem is.

Expect 4.10.5b real soon now!

bye

0 Kudos
Reply

5,960 Views
carloscuev
Contributor V

All working fine now with 4.10.5b, thanks!

0 Kudos
Reply