Can't load gdi dll CW 7.1.2 Coldfire

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

Can't load gdi dll CW 7.1.2 Coldfire

Jump to solution
9,529 Views
JulienFr
Contributor I
Hi All,

I'm going thru the M52259DEMOKIT quick start guide and I'm stuck when trying to connect to the board. CW returns me the following error message:
Coldfire GDI protocol adapter : can't load gdi dll

Can someone help ?


Thanks,
Julien

PS: I'm using XP 64bit.

Labels (1)
0 Kudos
Reply
1 Solution
2,927 Views
toucan
Contributor II

Hi there,

 

This issue is caused by the new drivers, which the patch does not update correctly.  Meanwhile, you have to  update the OSBDM firmware.  A workaround for this is described as follows:
 
1)  Update M52259Demo's JM60 with latest firmware as told in the “Release_Notes_7.1.2.txt”, please note that you use the J5 instead of the J3.
When you unzip the file downloaded from the website, please look for the new OSBDM firmware on the next path:
 
\osbdm\osbdm-JM60\bin\cfv234
 
The correct Srecord to use is:
osbdm-jm60_cfv234_emb.abs.s19
 
2)  After you update the firmware, go to the next path:
 
<ColdFire installation root> \Drivers\osbdm.
 
3) Run  DPinst.exe - it must install osbdm drivers.
 

4) Plug the 52259 DEMO board (without the J5 installed) -> in New Hw Wizard let selected "install the software automatically" and press next.  The osbdm-jm60.dll must be copied into system32 folder. 

5) Run Del_Remote_Connection.exe -> this executable set the correct name of gdi dll for remote connection (when you run this, you will not see any indication that the application finished executing).
 
Now the connection should be as usual. 
 
I hope this helps.

View solution in original post

0 Kudos
Reply
15 Replies
2,927 Views
nivekregrub
Contributor I

6/21/2012

I know this is an old post, but I am replying in case someone else stumbles across it while looking to solve the same problem I had (which is similar to the original poster).


I purchased the TWR-MCF5225x-KIT and using the included CodeWarrior IDE 5.9 I could not get a project to run, getting these error messages:


Coldfire PE Protocol Adapter: No USB Connection Found

ColdFire GDI Protocol Adapter: Can't Load GDI DLL


(I had already installed the CodeWarrior 7.1.2 patch). I am running Windows 7 and during the CodeWarrior installation I got an error message about some driver(s) not being installed because I have an 64-bit system. I fixed the problem this way:


1. Navigate to P&E Micro's website: http://www.pemicro.com/support/downloads_find.cfm

2. Check Software Update and ColdFire V2/V3/V4.

3. Click Find Matching Downloads.

4. Click on the link labeled P&E Hardware Interface Drivers Version 10

5. Download the file DRIVERS10_install.exe

6. Run the program and extract to C:\Program Files (x86)\PEMicro

7. Plug the USB cable into the TWR kit.


If you're lucky, Windows should recognize the device is plugged in, and attempt to install the drivers (if older drivers were already installed you may need to uninstall and delete them). Tell Windows to look on your disk for the files and point it to C:\Program Files (x86)\PEMicro\Drivers


Then read,


http://cache.freescale.com/files/community_files/OSBDM08/OSBDM_ERRATA.pdf?fpsp=1&WT_TYPE=Errata&WT_V...


and update your TWR OSBDm firmware to the most recent version (mine was 25.0 and is now 30.21). I now have these entries in Windows Device Manager:


Jungo

   ==> PEMicro USB Serial Port (i1)

      => Driver is C:\Windows\System32\Drivers\windrvr6.sys

   => WinDriver

      => Driver is C:\Windows\System32\Drivers\windrvr6.sys

LibUSB-Win32 Devices

   ==> Open Source BDM - Debug Port

      ==> Driver is C:\Windows\System32\Drivers\libusb0.sys

      ==> Driver is C:\Windows\SysWOW64\libusb0.dll


It now works like a charm.

0 Kudos
Reply
2,927 Views
Orzor
Contributor I
0 Kudos
Reply
2,927 Views
JulienFr
Contributor I

Thanks Orzor but I'm afraid that thread does not solve the problem...

 

Any other idea ? Please help!
0 Kudos
Reply
2,927 Views
J2MEJediMaster
Specialist I
I think it's the 64-bit XP that is the problem here. The CodeWarrior system requirements do not mention 64-bit support.
0 Kudos
Reply
2,927 Views
vier_kuifjes
Senior Contributor I

Something else must be wrong here. I just installed the Codewarrior 7.1.2 patch and now I no longer am able to access the 52259DEMO board. With 7.1.1a everything was still working fine.

I am running the "ordinary"32bit Win XP, by the way...

0 Kudos
Reply
2,927 Views
germanr
Contributor I

I'm facing the same problem with my m52259demokit board since everytime I try to run the default web server demo I get the same error message: Coldfire GDI protocol adapter : can't load gdi dll

 

CW is updated to ver 7.1.2 and MQX to ver 3.1.0 in win Xp 32 bits

 

Any help will be greatly aprecciated.

 

 

GR

0 Kudos
Reply
2,927 Views
vier_kuifjes
Senior Contributor I
0 Kudos
Reply
2,927 Views
germanr
Contributor I

I followed all the steps as per your advise and it didn't work. The error remains the same but thanks anyways...

0 Kudos
Reply
2,927 Views
Pascal_BERNARD
NXP Employee
NXP Employee

No success here too whatever I do: "ColdFire GDI Protocol Adapter: Can't load gdi.dll".

 

Any idea?

 

0 Kudos
Reply
2,927 Views
nonarKitten
Contributor II

I was also getting this error after doing a clean install of 7.1.2 with our new M52259DEMOMCU board.

 

When I tried overwriting the DLL, the error seemed to go away, but the flash was not actually reprogramming and none of the other demo apps would work. I checked Freescale's site and found a firmware update for the JM60 (04072009) and updated it no problem. Now there's a new error "Could not set PC to entry point". Tried the "embedded" firmware too - get a different error, "Exception vector name: Address Error, PC where the exception happened: 0x00041774". Sounds like somethings "confused" as to what's actually connected!

 

All I can say right now is wtf. Pretty poor form to have such a shoddy development environment.

 

 

0 Kudos
Reply
2,928 Views
toucan
Contributor II

Hi there,

 

This issue is caused by the new drivers, which the patch does not update correctly.  Meanwhile, you have to  update the OSBDM firmware.  A workaround for this is described as follows:
 
1)  Update M52259Demo's JM60 with latest firmware as told in the “Release_Notes_7.1.2.txt”, please note that you use the J5 instead of the J3.
When you unzip the file downloaded from the website, please look for the new OSBDM firmware on the next path:
 
\osbdm\osbdm-JM60\bin\cfv234
 
The correct Srecord to use is:
osbdm-jm60_cfv234_emb.abs.s19
 
2)  After you update the firmware, go to the next path:
 
<ColdFire installation root> \Drivers\osbdm.
 
3) Run  DPinst.exe - it must install osbdm drivers.
 

4) Plug the 52259 DEMO board (without the J5 installed) -> in New Hw Wizard let selected "install the software automatically" and press next.  The osbdm-jm60.dll must be copied into system32 folder. 

5) Run Del_Remote_Connection.exe -> this executable set the correct name of gdi dll for remote connection (when you run this, you will not see any indication that the application finished executing).
 
Now the connection should be as usual. 
 
I hope this helps.
0 Kudos
Reply
2,927 Views
spelc
Contributor I

I had the same problem. I went through the process you describe, but can't find Del_Remote_Connection.exe.

 

Not having done this step, I reran CodeWarrior and get a crash as soon as I start debugging. PC is Core2Duo, 2Gb RAM, Vista Business.

 

I would uninstall CodeWarrior (52259 Demo Kit) and reinstall direct from DVD without accepting the 7.1.2 upgrade. But how the **** do I uninstall CW?

 

Also, how do I create a project to debug an app created by a different compiler? We can generate straight binary, S-record, or even ELF files (given the right magic numbers for the header).

 

Stephen

0 Kudos
Reply
2,927 Views
J2MEJediMaster
Specialist I

To uninstall CodeWarrior you have to go to the Add or Remove Programs control panel, find CodeWarrior in that, and choose to have it removed. That's what you do in Windows XP. I don't know how much the UI has changed for Vista.

 

To use source code written outside of CodeWarrior, first create a simple project with the CodeWarrior New Project wizard. Remove its source files by right-clicking on them in the Project window and choosing Remove. Now drag your folder of source files onto the Project window, and the CodeWarrior IDE will recognize them and compile them when you build. Of course, if the header files differ, you have an editing job ahead of you.

 

---Tom

0 Kudos
Reply
2,927 Views
vier_kuifjes
Senior Contributor I

That made it work for me, thanks!

I already did read the “Release_Notes_7.1.2.txt” file but was a little reluctant to try it out.

But it worked perfectly and now I can connect to the board using the "official" dll  from the 7.1.2 version.

0 Kudos
Reply
2,927 Views
CarlFST60L
Senior Contributor II
Incase anyone else gets stuck wondering why the link in "release_notes_7.1.2.txt" doesnt work, search on m52259demo, the link will come up as OSBDM Firmware.
0 Kudos
Reply