In my application software,why after I download the firmware the transfers are all failed

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

In my application software,why after I download the firmware the transfers are all failed?

   

in my application software, I download the firmware on the software running. but after that all the transfers can't sucess. but  if I download the firmware with Cyconsole.exe. The transfers run well.

   

how to solve the problem?

0 Likes
6 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

So there are seemingly some differences between your application and the Cypress firmware.

   

Can you give us a bit more information, here are some sophisticated people who are able to pinpoint at first view what might be wrong.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Hello,Bob,

   

nice to meet you again here.

   

The situation is that:

   

I designed my application software and firmware. I download the firmware with

   

Cyconsole.exe.They works very well. So I decided to do the last work-add the

   

function of downloading the firmware into my application software. And the module

   

programm  of downloading firmware has been validated. it can work.

   

I thought I could finished the work finally. However after the firmware

   

downloaded and after the firmware began running, the transfer are all failed. I

   

am sure the downloaded firmware was running because the LEDs worked right as I

   

set them. I am sure the transfer code in both application software and firmware

   

are right because they run well before I add the firmware-selfdownloading code

   

segment.I am sure the firmware downloading code segment is right because the

   

firmware was running(the LEDs worked). so the problem is like this: A is right, B

   

is right, C is right. but put together the A,B,C it doesn't work.

   

The application software is developed with VC6.0.

   

I used gloabal variables, they are
CCyUSBDevice *USBDevice = new CCyUSBDevice();
CCyControlEndPoint *ept = USBDevice->ControlEndPt;
CCyBulkEndPoint *BulkInEpt = NULL;

   

I used the same  CCyControlEndPoint *ept and CCyBulkEndPoint *BulkInEpt in both download the firmware and the transfers. Maybe this was the problem. I would try it tommorow.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Yes, and I think you are UTC+8 or so. I'm not quite firm in USB, but I hope that U2 or Anand drop in, they are the USB cracks. Most errors like yours have to do with the device-descriptor as far as I've seen, but I don't know (yet) how to correct it. If you take the chance to search this forum (use the search for keyword feature in the upper right-hand corner) you'll find a similar thread and hopefully a solution.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

I have resolved it

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Great!!!

   

And how?? Would you mind to share your experiences with us, please.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

@Bob "USB Cracks" --> Nice one 

   

 

   

http://www.cypress.com/?rID=34253 has host application that implements firmware download for FX2LP and its source is available as attachment. Since CyAPI.lib doesn't have API to do firmware download I implemented this so that it is easier to use.

   

Regards,

   

Anand

0 Likes