Codewarrior USBTAP problem

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

Codewarrior USBTAP problem

19,684 Views
dcogley
Contributor I
Hello,

I am evaluating the 8349 Freescale processor using the MPC8349E-MDS-PB evaluation board. This evaluation came with the Codewarrior USBTAP with JTAG interface for loading and debugging applications for this microcontroller. I have installed the evaluation Codewarrior Development Studio for PowerPC ISA, Linux Application/Platform Edition v2.6. I have also installed the required ROHS USBTAP update.

On to the problem.. I have created the simple test application in the Codewarrior IDE and configured the Remote Debugging to use the USBTAP. When I choose Debug->Connect I can see the board reset and the connection status proceeds all the way to "Completing connect phase..." then gives me an error:

"JTAG Clock Speed Change Error"
Please check your JTAG clock speed.

Then the error:

"CCSProtocolPlugin: CCS: Network timeout
[Network timeout]

I have tried every "Interface Clock Frequency" under the USBTAP settings and I always get the same error. I have read through the USB TAP users guide and located the section "Setting the Debug Port Clock Frequency" which refers me to the CodeWarrior documentation under which I can not find any information for the USB TAP.

Thanks,
Dave Cogley
Labels (1)
0 Kudos
30 Replies

1,914 Views
ashishkhetan
Contributor II

Thanks i went through the whole process again and now its working.. Thanks Again.. One more question, Have you debug Linux kernel using USB tap? or any idea/pointer to find more stuff like this that can help to debug Linux Kernel?

0 Kudos

1,914 Views
addiyi
NXP Employee
NXP Employee

Hi,

You can debug Linux kernel using USBTAP and attached you can find a presentation written by a colleague of mine exactly on this topic.

0 Kudos

1,914 Views
ashishkhetan
Contributor II

Thanks Again.. can you please reply with your colleague name or post the link for the presentation? It will be very-very helpful.

Thanks

Ashish

0 Kudos

1,914 Views
addiyi
NXP Employee
NXP Employee

The presentation has been attached to my previous reply. You can't see it?

0 Kudos

1,915 Views
ashishkhetan
Contributor II

hi and Thanks, got it .

0 Kudos

1,915 Views
ashishkhetan
Contributor II

In this presentation its asking for SDK v1.4 to be installed. Will this work for 8641d based board? So is there any sdk for MPC8641d based boards?

0 Kudos

1,915 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please download "Linux BSP for Freescale MPC8641" from MPC8641D: High-performance Dual Core Processor, this is the latest official release.

0 Kudos

1,914 Views
ashishkhetan
Contributor II

Hi,

I download above one and installed it but when I am running ltib its showing following error:

$ ./ltib

ltib cannot be run because one or more of the host packages needed to run it are either missing or out of date.

Please install/upgrade these packages and then re-try.

Package                Minimum ver   Installed info

-------                -----------   ---------------

glibc-devel            0             not installed

zlib                   0             not installed

rpm-build              0             not installed

bison                  0             not installed

Died at ./ltib line 1232.

Started: Thu Apr  3 18:06:16 2014

Ended:   Thu Apr  3 18:06:16 2014

Elapsed: 0 seconds

Build Failed

Exiting on error or interrupt

As I am running ubuntu-12.04 and I have already installed 'sudo apt-get install build-essential' which also install libc6-devel package. but still i have been facing. can you yipingwang please give me some pointers/guidelines to resolve this issue.

Thanks &Regards

Ashish

0 Kudos

1,915 Views
addiyi
NXP Employee
NXP Employee

Please take a look on All Boards LTIB Config Ubuntu

Adrian

0 Kudos

1,916 Views
ashishkhetan
Contributor II

Hi,

I have been trying to install code warrior in linux(ubuntu 12.04), but facing some issues after installation. I am using CW_EPPC_8.8_Build_80229.tar file for installation and my USBTAP rev G. Whenever i try to connect with my board through usbtap it always pop-up and show error message : JTAG clock Error. I tried CW_EPPC_8_8_3_Update_90619.tar patch also and having same issue. Pls give me any clues how to fix this issue.

@

0 Kudos

1,915 Views
addiyi
NXP Employee
NXP Employee

Hi,

You can check the utap driver is correctly installed in ccs with the command (go to  ${CW_InstallPath}\CodeWarriorIDE\ccs\bin\  and run ./ccs):

(bin) 50 % findcc utaps

USB TAP Serial Numbers:

  11070753

11070753

If you have a result as above, the driver is installed. If not, follow the steps from ${CW_InstallPath}\CodeWarriorIDE\ccs\drivers\usb\readme.usbtap.txt then check again in ccs.

Adrian

0 Kudos

1,919 Views
MEP
Contributor I
I'm not sure if this would fix the JTAG clock error, but I believe I have resolved a connection issue that I've been fighting with over the last couple of months on the USB TAP that may be related.

I have been trying to set up two USB TAPS as flash programmers for one of our products that uses an 8270 processor. I kept getting errors when the flash programmer was loading the flash driver to the processor memory. Hardware diagnostics also failed all tests while attempting to access the processor memory. Sometimes the programming/erase/blank check would start but then fail shortly after with an error like "target in unexpected running mode" or one of a couple other messages. These problems were exhibited by both USB TAPS and also after a re-install of the CW software.

To complicate things more, some of the boards that were working with the flash programmer one day would stop working the next especially when I moved the setup down to the manufacturing floor. Our customer also has purchased a USB TAP so that they can reprogram the cards if needed. They have not reported any problems with it yet.

After numerous e-mails back and forth with Freescale support and a visit from the local FAE (Whose USB TAP and laptop running CW also had the same problems with our boards.) the issue was still not resolved.

I stumbled upon what may be the answer to this simply by chance, noise. I had noticed that when a twist was put into the ribbon cable of the USB TAP, my connection problems stopped. Since then I have run about 30 boards through flash programming with tin foil wrapped around the ribbon cable on both USB TAPS and had no errors come up. As soon as I remove the foil from the cables and try to start a flash operation the errors would come back.

If there is a problem with noise sensitivity on the USB TAP JTAG cable, could it be possible that it was also interfering with the JTAG clock signals?

Regards,
Matt
0 Kudos

1,919 Views
AAC_newbs
Contributor I
The solution to our problem was to use a different machine as the host.

It seems that the USB devices on the HP compaq computer we were using were causing the problem. We have changed to an ACER laptop and have not had that problem any more.
0 Kudos

1,919 Views
PhilMathews
Contributor I
Note: the previous post is in reference to CrasyCat's post dated 2006-06-13 03:09 AM
0 Kudos

1,919 Views
dcogley
Contributor I

Unfortunatly this USBTAP has never worked.  The TX/RX lights are flashing green under my Linux (Fedora 4) disto.  I can't get the USBTAP to work at all under XP.  No drivers??  It starts to communicate to the board as I can see it reset and makes it all the way to "Completing Connection Phase" before failing.  I have tried using the Ethernet interface for debugging but I can not login into telnet.  I tried logging in as root and it is an unrecognized username.

0 Kudos

1,919 Views
qwe
Contributor I

I have the same problem about USBTAP. I have wrote the problem to freescale but nobody replied me yet.

here is the problem that I  have encountered:

I want to program and debug flash but I have seen an error always while erasing flash.I am using USBTAP to flash my evaluation board EVAL8540. but it does not
work. I am using correct initialization file(8540EVAL_init.cfg) and
correct settings.

Target memory buffer address: 20000
Target memory buffer size: 200000
Flash memory base address: FF800000
Device : IN28F64OJ3  (4Mx16x1)
also my USBTAP interface clock frequency is 22.27 MHz.

when I want to erase it shows a message like this:

Flash Programmer: Can not initialize the target: "8540" Please make sure
"C:\Program Files\Metrowerks\CodeWarrior PowerPC Comm
V8.5\PowerPC_EABI_Support\Initialization_Files\PQ3\8540EVAL_init.cfg" is a
valid configuration file.  Additional error information: Interface
function IMWProtocol::GetPreference is unimplemented

what can I do?is there anyone could help me?

 

0 Kudos

1,919 Views
PhilMathews
Contributor I
I've the same problem. When attempting your suggestion, under help I get "about Metrowerks CodeWarrior" and no option to click on "Installed Product". What next, Carzy?
0 Kudos

1,919 Views
CrasyCat
Specialist III

Hello

I would also suggest you to open a service request for that.

Note that if you do not have a "Installed Products"+ button in your About box, you are probably running a pretty old version of CodeWarrior.

This will probably not support USBTap HTI.

CrasyCat

0 Kudos

1,919 Views
CrasyCat
Specialist III

Hello

I am not an expert in EPPC85xx, but here is what I know from my experience with USBTap.

Which CodeWarrior product did you install? To retrieve that information:
  - Start the IDE
  - Select "Help" -> "About Freescale CodeWarrior"
  - Click on "Installed Product"
  - All the installed product are listed in the upper part of the window.

Which is the revision number on your USBTAP? (You can find that information on the back of your USBTAP.

If you have a REV X2 you need to install the "ROHS USBTAP Windows Update v1.0".
Browse to the bottom of the page and click on USBTAP-UPDATES .

Make sure you are using the appropriate version of CodeWarrior (look at the text of top of the download page).

I hope this helps.

CrasyCat

0 Kudos

1,919 Views
qwe
Contributor I
thanks Crasycat,
I have 3 version of codewarrior (all of them are evaluation version) I have Codewarrior for EPPC Linux 2.6 and this version has not any flash programmer version.another version is Codewarrior powerpc comm.V8.6. this version is opened but when I want to use flsah programmer, I can open it but I can not verify or program. it gives me an error like this("unable to use the plugin EPPC Flash Programming It is licensed and a valid license key was not found") what is the problem?? I can not understand. I have a license for 15 days(dafault one) also I have encountered the same error in Linux redhat 9.0?
finally I tried to Codewarrior PowerPC Comm. v8.5 and I can not program it gives me a error message like "make sure ...\ ...\... initialization file is a valid configuration file. Additional error information: interface function IMW Protocol::Get preference is unimplemented."
I can not solve the problem.I have patched USBUpdate v1.0and USBTAP V1.6 firmware upgrade. but nothing has changed??  
0 Kudos