Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > In my application software,why after I download the firmware the transfers are all failed

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



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

Post Reply
Follow this topic



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

西门吹牛奶 posted on 13 Apr 2012 3:57 AM PST
Top Contributor
34 Forum Posts

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?




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

Bob Marlowe posted on 13 Apr 2012 05:33 AM PST
Top Contributor
1768 Forum Posts

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

 



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

西门吹牛奶 posted on 13 Apr 2012 06:22 AM PST
Top Contributor
34 Forum Posts

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.

 



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

Bob Marlowe posted on 13 Apr 2012 08:38 AM PST
Top Contributor
1768 Forum Posts

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



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

西门吹牛奶 posted on 14 Apr 2012 01:44 AM PST
Top Contributor
34 Forum Posts

I have resolved it



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

Bob Marlowe posted on 14 Apr 2012 02:55 AM PST
Top Contributor
1768 Forum Posts

Great!!!

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

 

Bob



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

aasi posted on 15 Apr 2012 10:16 PM PST
Cypress Employee
1090 Forum Posts

@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






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20