Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > FX3 slave fifo with multiple endpoints

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



FX3 slave fifo with multiple endpoints
Moderator:
RSKV

Post Reply
Follow this topic



FX3 slave fifo with multiple endpoints

YoyoGo posted on 20 Sep 2012 11:55 AM PST
Senior Member
16 Forum Posts

I want to have my FPGA service 2 producer/consumer endpoints. One will use packet bursting and one a single USB 3.0 packet. I have the bursting EP working... beautiful... but I simply can't figure out how, with the FX3 API,  to add the second endpoint using a smaller buffer. In all, I want 1 thread assigned to each of the data transfer directions for each of the 2 endpoints. I've compiled an image file with what I'd hoped were the proper changes to the basic synchronous slave fifo firmware design example in thre SDK but the second  endpoint doesn't show up in the Control Center application. Anyone have suggestions? I'm finding the documentation and examples lacking as guidance and have no prior experience with the Cypress tools.




Re: FX3 slave fifo with multiple endpoints

Vytautas2 posted on 21 Sep 2012 11:54 PM PST
Top Contributor
36 Forum Posts

Maybe something is wrong with USB configuration descriptor.



Re: FX3 slave fifo with multiple endpoints

YoyoGo posted on 21 Sep 2012 07:42 AM PST
Senior Member
16 Forum Posts

Yes, no doubt. My problem is trying to set up up multiple dma descriptors. I can't find any similar examples to glean insight from. The bulk many-to-one example would seem to be along a similar path but isn't helping... What I want to do certainly can't be that unique.

thanks for the reply, bill



Re: FX3 slave fifo with multiple endpoints

RSKV posted on 22 Sep 2012 12:34 AM PST
Cypress Employee
655 Forum Posts

Yes. Unfortunatley we don't have any example that suits your requirement.

But you can attach your code here. I will look into it to findout what is going wrong in there.

Thanks,

sai krishna.



Re: FX3 slave fifo with multiple endpoints

YoyoGo posted on 24 Sep 2012 07:10 AM PST
Senior Member
16 Forum Posts

Hey thanks,

I don't think that I'm too far off... just missing something. Currently, I can program the FX3 but if I stipulate that there are 4 endpoints the device fails to enumerate.



Re: FX3 slave fifo with multiple endpoints

YoyoGo posted on 27 Sep 2012 02:10 PM PST
Senior Member
16 Forum Posts

Sai,

I found one error in cyfxslfifousbdscr.c in that I didn't change the total size of all descriptors for super speed... at least now I can see the 2 new endpoints and proceed with debugging. Instead of 0x2C, 0x00 it should be 0x46, 0x00. Did you find any other issues that I haven't?

thanks and regards, bill



Re: FX3 slave fifo with multiple endpoints

RSKV posted on 28 Sep 2012 04:10 AM PST
Cypress Employee
655 Forum Posts

That is right.

Other thing is that, I am not sure if you are planning test your application with USB 2.0 host. But if you need USB2.0 support as well then you need to decide the epcfg.burstlen based on the USB bus speed. It should be one in case of USB2.0. Otherwise, CyU3PSetEpConfig fails in your application.

Thanks,

sai krishna.






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.