Problems using USB ColdFire Multi-Link with CodeWarrior, M52223EVB

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

Problems using USB ColdFire Multi-Link with CodeWarrior, M52223EVB

2,755 Views
mykepredko
Contributor IV
I'm trying to use the USB ColdFire Multilink tool with a Freescale M52223EVB and I'm running into some problems with getting the USB running. A big part of the problem is that the P&E CD that came with the EVB was cracked from the inside spindle hole and cannot be read from a PC.

The PC I'm using is a Lenovo T61p running Windows/XP. The drivers I'm using are the P&E Hardware Interface Drivers 10 that I downloaded from the PC.

When I plug the Multilink into the PC, it beeps (and also beeps when it is disconnected) indicating that the tool is recognized by the PC and the drivers are present.

But, when I try to program the SoC on the EVB, I get a failure as CodeWarrior (7.2) doesn't seem to recognize the Multilink.

From a base question perspective:
1. I'm using Freescale's TN265 as a guide for CodeWarrior and the tools.
2. When I'm making the generated code (as per the first demo in TN265), I get the message "Warning : external/internal linkage conflict with previous declaration
MCUinit.c line 297 c(vectortable) vectorTableEntryType _InterruptVectorTable[0xC0] = { /* Interrupt vector table */ " - What exactly does this mean? Is it something that I should be concerned with? This warning comes up regardless of whether or not I add the lines in "isrINT_DTIM0" as specified on Page 12 of TN265.
3. The programming/execution doesn't seem to be working. When I click on Tools -> Flash Programmer, I discover that the device selected is a "5206e" (the first on the list).
3a. When I set the device to "52223" and the target file initialization to "C:\Program Files\Freescale\CodeWarrior for ColdFire V7.2\ColdFire_Support\Initialization_Files\MCF52223.cfg" (there is no "M52223EVB.cfg", as there is for other EVBs) and then try an Erase, I get "ColdFire P&E Protocol Adapter : An error occurred trying to write memory".
4. I think I have loaded the PE USB Multi-Link correctly. As far as I can tell, it has the latest firmware (and I got the latest PC drivers from the web site). When I first connected it and powered it up it seemed to download the latest firmware into it.
5. I am trying to force it to start executing by clicking on "Project -> Connect" and then "Run" but I get the message 'Program "Unknown" is executing.'
6. I've confirmed that pin 1 of the BDM port on the EVB is lined up with pin 1 of the Multlink module.
7. I've looked at the Hardware Devices and I cannot see the Multi-link Adapter in the USB list. This is strange.
8. I haven't change the EVB jumpers or switches except for power.

I have downloaded the P&E "driver test" utility which produces the following messages (regardless of whether or not the Multilink is plugged in or not):
(detected) C:\WINDOWS\inf\Pemicro_usbcable_auto.inf (8/18/2009)
(detected) C:\WINDOWS\inf\CycloneProR1.inf (8/18/2009)
ERROR!!!!!! C:\WINDOWS\inf\windrvr6.inf not found
(detected) C:\WINDOWS\inf\usbmultilink_rev20.inf (8/18/2009)
(detected) C:\WINDOWS\system32\SENDKEY.DLL (5/29/1996)
ERROR!!!!!! C:\WINDOWS\system32\pedrv.vxd not found
ERROR!!!!!! C:\WINDOWS\system32\vichw11.vxd not found
(detected) C:\WINDOWS\system32\PEUSBFTDUN.EXE (Version 2.00)
(detected) C:\WINDOWS\system32\PEUSBV1.DLL (Version 2.00)
ERROR!!!!!! C:\WINDOWS\system32\PEUSBWD1.DLL not found
(detected) C:\WINDOWS\system32\PEUSBWD2.DLL (10/16/2009)
(detected) C:\WINDOWS\system32\drivers\giveio.sys (10/16/2009)
(detected) C:\WINDOWS\system32\drivers\pedrv.sys (10/16/2009)
(detected) C:\WINDOWS\system32\drivers\WINDRVR6.SYS (Version 10.01)
(detected) C:\WINDOWS\system32\drivers\vichw11.sys (10/16/2009)
(detected) C:\WINDOWS\system32\drivers\PEUSBV1.SYS (Version 1.04)


So, any suggestions on what I've done wrong? As the CD was damaged, I have tried to get things working but not without any luck.

The questions I have are:
1. Are there any better starter guides than TN265? It's a good start and I can probably run from that, but I'm wondering if there's anything better that I can use for getting started.
2. I'm not sure that I have loaded the Multilink device with the latest firmware (I believe it's 5.49). There seems to be a reference to a utility for doing this, but I can't find the application nor instructions on how to use it
3. How can I verify that CodeWarrior is able to interface with the Multilink device?
4. Should I change any of the settings of the EVB?
5. What should I be doing to make sure I have a good connection between CodeWarrior/Lenovo Laptop and the Multilink/EVB

I've looked around the forum and there are a few suggestions (like making sure the USB ports are not running in 2.0 mode), but betore I start changing system configurations, I wanted to see if anybody had any comments/suggestions (including pointers to documentation and software). Let me know if there is any other information that I should provide.

Thanx!

myke
Labels (1)
0 Kudos
3 Replies

554 Views
J2MEJediMaster
Specialist I

How did you get CodeWarrior installed if the disc was damaged? The fact that it cannot find the .cfg file for your board is not good, there may be a corruption problem. I would recommend that you first make a duplicate of your license.dat file from the CodeWarrior installation directory. Next, try downloading and installing the latest CodeWarrior for ColdFire from the Freescale web site. Install any patches. Copy the license.dat file back into the CodeWarrior installation directory. Hopefully the tools will work better. The other option is to go back to your Freescale representative and request a new disc.

 

---Tom

0 Kudos

554 Views
mykepredko
Contributor IV

Hey Tom,

 

It was the PE Micro disk that was damaged.  I installed CodeWarrior and the PE Micro softweare from the web and added the license.dat file manually. 

 

I will try to reinstall.

 

Thanx for the reply,

 

myke

0 Kudos

554 Views
mykepredko
Contributor IV

Tom, et al.

 

I seem to have everything working now. The problem seems to have been a bad install (as was suggested). 

 

To get things going, I reinstalled the SW and drivers following the process:
1. Removed CodeWarrior from the PC
2. Reinstalled the P&E Micro Windows Drivers (version 10 for XP).  Made sure the drivers were installed by waiting for the tones when the USB-ML-CF was plugged in and seeing the Blue LED on
3. Reinstalled CodeWarrior for ColdFire (v2) version 7.2 WITH the USB-ML-CF plugged in (Blue LED on)
3a. During the CodeWarrior install, it recognized the USB-ML-CF and then installed drivers for it (this wasn't the case the first time I installed the software)
4. Rebooted.  Note, if the USB-ML-CF is left in, when the PC boots, the Blue LED goes on and then turns off, you have to plug in/out the USB-ML-CF to get it to be recognized.
5. Ran through the test app and was able to use USB-ML-CF for programming/debug. 

 

Thanx for the suggestion - it was a good one,

 

myke

0 Kudos