Michael Predko

Problems using USB ColdFire Multi-Link with CodeWarrior, M52223EVB

Discussion created by Michael Predko on Mar 11, 2010
Latest reply on Mar 12, 2010 by Michael Predko
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.