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.
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.
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.
I have resolved it
And how?? Would you mind to share your experiences with us, please.
@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.