HC12 V3.1 Intermittent Communication With BDM Multilink

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

HC12 V3.1 Intermittent Communication With BDM Multilink

5,501 Views
slaybalj
Contributor I
I'm trying to set up a new installation of CW HC12 V3.1, but I'm having problems getting the BDM USB Multilink to work. 
 
Sometimes when I run the debugger, it cannot find the BDM.  When this happens and I open the ICD-12 > Connect  dialog box from the debugger menu bar, it will not display the USB interface at all. 
 
Sometimes when I run the debugger, it will find the USB BDM just fine, but at about 80%, it'll lose connection and stop.
 
This last time I also got a windows generated error message when it failed.
 
The only information I can get from my coworkers for installation is as follows:
1) 2 updates must be downloaded and installed to work, as well as the P&E BDM driver.
2) Installing more than just those two updates will cause the program to fail and need to be uninstalled.
3) Running the updates in the wrong order will cause the program to fail and need to be uninstalled.
4) They can't remember which updates were necessary or what order they need to be installed in.
 
Does anybody have any information on this?  I can't help but think some of what they're telling me is wrong.  But still, if anyone can provide suggestions, I could use some.
 
-slaybalj
Labels (1)
Tags (1)
0 Kudos
Reply
9 Replies

2,329 Views
Lundin
Senior Contributor IV
I'm using the same version and P&E Cyclone Pro which should be identical to the Multilink. To get the debugger working I have to install a strange file "icd12.tgt" I once received from Freescale support...

Still, CW3.1 doesn't set up the P&E drivers properly or something, because I have to run a P&E program and then close it before I can even use the debugger with P&E equipment. I don't have this problem with newer CW versions though, so it seems to be some flaws in CW3.1.
0 Kudos
Reply

2,329 Views
CrasyCat
Specialist III
Hello
 
If you intend to use the USB Multilink cable, I would suggest you to switch to the latest release V4.7.
 
You have support for USB multilink cable out of the box there.
 
CrasyCat
0 Kudos
Reply

2,329 Views
slaybalj
Contributor I
Crasy,
 
I wish I could.  But this is for a project that's already been developed under 3.1, and noone wants to try to do a compiler upgrade at this point.  We also have a full license for 3.1 and not for 4.7.  
 
Unfortunately, noone remembers how to make it work.
 
Laura
0 Kudos
Reply

2,329 Views
CrasyCat
Specialist III
Hello
 
Looking into our Web page there is a service pack available, that you can install on top of V3.1
to add support for USB 2.0 multilink.
 
  - Click on Downloads
  - Click on "Updates & Patches"
  - Click on "CodeWarrior for HCS12(X)"
  - Click on "Updates for CodeWarrior for HCS12 v3.1 and earlier"
  - Download and install "CodeWarrior for HC12 v3.1 - USB 2.0 Service Pack"
 
I am not sure if there are dependency to other service packs. Please read carefully the release notes
coming with this install.
 
CrasyCat
0 Kudos
Reply

2,329 Views
slaybalj
Contributor I
Crasy,
 
Yes,  I have installed that update after installing 3.1.  It allows me to usually see the BDM Multilink on the connect window.  However, when attempting to run the debugger, it will almost invariably hang at 80% when programming the chip.  It will not do this under 4.7 while using the same board and BDM.  For these steps I'm attempting a plain old vanilla project created with the project wizard and no changes made to program.  All the program does is go into an infinite loop and performs no action.
 
When it hangs, the only message that shows up in the debugger window is 'Mcu invalidated'.  No other comments at all.  If I google search on that message, I get a few other forums for people having trouble, however none of the suggestions seem to point towards a solution for me.  I've wondered if it's some sort of timing issue, since the autoset clock is different from what I get when I manually compute the timing calculation (15, vs 14).  However, I cannot communicate at all when I manually set the timing to 14.
 
I qualified the above statements with a 'usually' and an 'almost always' because sometimes when I start the debugger, the BDM doesn't appear at all, even when the blue and yellow lights are on.  If it doesn't appear at all, I can usually get it to appear by opening the 'Connect' dialog box  and manually selecting it or repeatedly trying to open the debugger and going to the 'Connect' dialog box.
 
Finally, just last morning, I got a setup that appeared to work.  But that install process has been unrepeatable. 
 
If it helps any, I've been trying to install some permutation of:
CW 3.1
Patch C128
Patch E256
USB 2.0 Patch
P&E BDM Multilink Drivers.
 
Additionally, CW3.1 offers to install a different BDM driver (Noral ?).  I've tried installing with and without this.  I have no idea whether it works in conjunction with the P&E driver, just gets in the way, or is irrelevent.
 
-slaybalj
0 Kudos
Reply

2,329 Views
mke_et
Contributor IV
I've had the same issue with the USB version of BDM with CW 3.x I found that it was the power management in the PC that was the problem.

I suspect that the power management wasn't correctly tracking the activity of the USB connection and shutting down the USB port.

Once I did that, I had no problem with my laptop (Win2K) using the BDM MultiLink or a desktop running WinXP. Haven't run it with Vista yet. I got all my tools over on Vista with the exception of CW, and I don't think that's gonna happen any time soon.
0 Kudos
Reply

2,329 Views
slaybalj
Contributor I
Hunh... I never thought to check the Power Settings. 
 
I'm running Windows XP Pro, but checking the Power Options under the control panel, I don't see anything that I can identify that might fix this, if it's the problem.  Is there some other tool I can use to check this out?  I'm afraid I don't know where this is actually controlled.
 
-Laura
 
 
0 Kudos
Reply

2,329 Views
mke_et
Contributor IV
It's been a long time ago that I fixed my setup. I turned off all power management to fix the problem then started playing forward.

There was another thread where an individual suggested going right to the hardware devices and finding the USB rot hub and telling that to not turn off power.
0 Kudos
Reply

2,329 Views
CrasyCat
Specialist III
Hello
 
CodeWarrior for HC12 V4.7 does run on Windows Vista.
 
Please read "{INSTALLATION DIRECTORY}\Release_Notes\HC12\Notes_CW_HC12_Vista.txt" for information on limitation when running on Vista.
 
CrasyCat
0 Kudos
Reply