Hi,
I am new to Codewarrior and HCS12, so hope this isnt a stupid question...
I am trying to get the Project->debug option to work in CW 5.9 using a USBDM. The True-Time Simulator window opens, and I can briefly see the debugging sub-windows in it; but then the TTS hangs, and nothing else happens. CW will still compile, etc, but the debug has hung completely, and wont even allow me to close the debug window or terminate the Windows process!
I am using USBDM code Ver 4.9.5b; I have "P&E USB BDM Multilink" selected as the debug tool. There is no "USBDM" option in the drop down box. The target CPU is a MC9S12A64CPVE.
The USBDM works great as a programmer through the external HCS12 programmer app suppled with USBDM code 4.9.5, so I dont think the problem is with the programmer?
Do I need extra debugging drivers\code for this device in addition to the programming drivers? Or is CW5.9 not able to integrate with a USBDM to this level?
All I really want to do is to be able to reset the target under BDM control...!
Many thanks for your time...!
Bigd,
did you try googling for "usbdm s12 codewarrior" ? I think you should use not P&E but different connection. Also it seems you may need to do some extra setup steps.
Ok, thanks KEF, I have found that I needed "TBDML" instead of P&E USB... Debug now opens, but I think is having problems because the target is "secured". Not sure how to work with that...
For information, and in case anyone else has this problem, I am using the USBDM type JMxx which I purchased from a well known internet auction site... I installed the stand-alone software, and was prompted for the driver install the first time I plugged the USB device in... (Win XP)
Also made sure that the CodeWarrior patches that came with the USBDM are loaded - while the USBDM install was supposed to have loaded them, I did it again from the Start-> Programs menu, just to be certain...
Have re-loaded the code using the stand-alone programming utility but as "unsecured". The Debugger now loads, re-flashes the target and starts up ok. I can reset and re-start the target from the debugger - think that's fixed then!
Many thanks to all concerned - just have to fix my other code-loading problems now!
We can close this thread now.....
I would check to see that you have the latest CodeWarrior updates. The v5.9 IDE indicates that you are using Classic CodeWarrior, so do the following:
Choose Help > About Freescale CodeWarrior.
In the dialog window that appears, click Installed Products.
The Installed Products window appears, and you can see what version of tools that you are using. See if there is any mention of service packs.
To check for updates, choose Help > CodeWarrior Website, which takes you to the CodeWarrior site on the on-line Freescale system. From there, pick your CodeWarrior type, and then see if that page mentions any updates. If necessary, download and install.
---Tom
Tom,
I am using CW 5.9 with HCS12 compiler V 5.0.14 - the release date is August 2010, which is later than the patches on the website by 5 or 6 months:
There are only 2 service packs for 5.0 and above -
one is for V5.0, and HY256 variant dated March 2010
other is for V5.0.1 and is a "compiler patch" - but it is Feb 2010
- so I think I am up to date.
I am having issues with my code atm (you have seen my other post), and I think you said that the debugger only liked banked address records in the .SX file - wonder if this has anything to do with it...?