Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > XferData

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



XferData
Moderator:
RSKV

Post Reply
Follow this topic



XferData

baranmicro posted on 24 Oct 2012 5:35 AM PST
Member
9 Forum Posts

Hello,

I am using 32 bit slave fifo interface. I send from FPGA to FX3 64 Words (total 256 bytes) with a zero lenght package at the end.

With C# I read using XferData with len = 1024. The function returns with len set to 256 which I expect.

However if I read with C++ XferData with len = 1024, I get the error 997.

Why is it different between C# and C++?

Regards,




Re: XferData

RSKV posted on 25 Oct 2012 12:25 AM PST
Cypress Employee
655 Forum Posts

Hi,

There is no difference, can you please confirm if you are updating the timeout value of endpoint in CyAPi.lib.

Thanks,

sai krishna.



Re: XferData

baranmicro posted on 25 Oct 2012 01:29 AM PST
Member
9 Forum Posts

I played also with Timeout but it returns always 997. I also tried 256 byte as transfer size, still doesn't work.

But all of these are working with C#. However, our application must be developed in C++.



Re: XferData

YoyoGo posted on 26 Oct 2012 10:23 AM PST
Senior Member
16 Forum Posts

I am doing a similar project. I've run my hardware with versions of the streamer application that I've built with both C# and C++. Both work the same. Whenever I see the error code 997 it's because my FPGA state machine and the FX3 are out of synchronization with each other as to when a data xfer has completed. In my design I only send a fixed number of bytes between the FX3 and any of the endpoints in the FPGA.



Re: XferData

baranmicro posted on 28 Oct 2012 12:55 PM PST
Member
9 Forum Posts

Sorry,

In my C++ program I had an extra Reset() call. This was the problem.

They are behaving same now.






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.