You are here

Failed at "OUT" DataTransfer with ControlCenter example on FX3 | Cypress Semiconductor

Failed at "OUT" DataTransfer with ControlCenter example on FX3

Summary: 16 Replies, Latest post by Gayathri on 17 Jan 2013 11:44 PM PST
Verified Answers: 1
Last post
Log in to post new comments.
Ben2's picture
User
24 posts

Happy New Year to Y'all,

i'm trying to experient the ControlCenter with newly installed FX3 board with Win7.  The Data Transfer failed when direction is "OUT" with code:997, but the "IN" was Completed.

Any help would be appreciated.

Attachments: 
gaya's picture
Cypress Employee
578 posts

 Hi,

 

Please try increasing the timeout value for Control endpoint, before calling the Xferdata. You can change this by accessing the source of Control Center:

USB Control CenterVS2008.sln at the location “C:\Cypress\Cypress Suite USB 3.4.7\CyUSB.NET\examples\Control Centers\Vs2008_sln”

or USB Control CenterVS2010.sln at the location “C:\Cypress\Cypress Suite USB 3.4.7\CyUSB.NET\examples\Control Center\ Vs2010_sln”.

 

Default timeout for is 10 seconds. 

 

Regards,

Gayathri

Ben2's picture
User
24 posts

Thanks Gayathri,

sorry, couldn't find the file that you mentioned.  My C:\Cypress\Cypress USBSuite\application\cpp inclues 2 projects, bulkloop and streamer.  Please let me know where i can get the file off internet.

Ben2's picture
User
24 posts

i added ctrlEpt.Timeout = 20000; before the ctrlEpt.Xferdata() in Form1.cs of ControlCenter project, but it still fail.  Should i use different firmware instead?  and the location to fetch it, please.  Thanks.

gaya's picture
Cypress Employee
578 posts

 Hi,

 

Sorry about the wrong path. You would have found the Control Center source under "C-sharp" folder I believe. And one more correction I mentioned about the timeout for control endpoint thinking the data trasnfer that is failing is Control OUT transfers. If it is any other data transfers like bulk etc, then the timeout for the corresponding endpoint must be changed, and not that of control endpoint. Please ensure this.

Which is the firmware that you are using to test the same? Is it your custom firmware?

 

Regards,

Gayathri

Ben2's picture
User
24 posts

Thanks.  I did change both ctrlEpt and curEndpt before the Xfer, but it still fail.

I'd tried many img files, such as default installed, CyBootProgrammer, USBDebug, and others, but all from the examples.

Ben2's picture
User
24 posts

Hi Gayathri,

Would you please tell us what is the correct img file to be used for the ControlCenter, the C# application provided with the SDK, to do the DataXfer?  Thanks.

gaya's picture
Cypress Employee
578 posts

 Hi,

 

There is nothing like correct img file to be used with Control center. Examples coming with FX3 SDK, as far as what I have tested, all of them works without any errors with Control Center. 

To be sure, let us start with cyfxbulklpauto (or cyfxbulklpmanual). After downloading into RAM using Control Center, ensure it renumerates with  new VID/PID. After that try transferring data to OUT endpoint/ IN endpoint. 

 

Regards,

Gayathri

Ben2's picture
User
24 posts

Thanks.  we'd loaded the cyfxbulklpauto into RAM and it works.  That was the reason we're confused why the ControlCenter wouldn't work...

We'll try the manual next.

Ben2's picture
User
24 posts

Thanks Gayathri,

it works. it was an OperatorError.

Ben2's picture
User
24 posts

The ControlXfer seems to be not working correctly, but the nonControlXfer is good.  Also, the fileXfer sometimes not works.  BTW, we're using the Manual img.  Any advise, Gayathri?

Log in to post new comments.