Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > copy fifo buffer

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



copy fifo buffer
Moderator:
RSKV

Post Reply
Follow this topic



copy fifo buffer

Timmons posted on 20 Dec 2011 12:11 PM PST
Senior Member
20 Forum Posts

Hi

i have a problem

I'm trying to implement a loop back similar to exemple bulkscr but i want not to use the autopointer for copy endpoint out to enpoint in (for read my write). I would like access to ram by make the copy directly.

I tried to use the command

 for (i=0;i<512;i++)
    EP6FIFOBUF[i] =EP2FIFOBUF[i];    // EP2 OUT and EP6 input

but doesn't work

is the assigment correct for fifo ram buffer?

 

thanks a lot




Re: copy fifo buffer

Timmons posted on 21 Dec 2011 09:28 AM PST
Senior Member
20 Forum Posts

 Hi Aasi

Excuseme

I put my questtion in another way.....

If i send data to EP6 output endpoint from host, if i call by firmware EP6FIFOBUF[i] do i have in this array the data sended by host?

please help me

 

Thanks

 



Re: copy fifo buffer

PRJI posted on 21 Dec 2011 09:02 PM PST
Cypress Employee
333 Forum Posts

 Hi,

       Yes, you can access the fifo contents by firmware but FIFOshould be configured for Manual mode. For more details on manual and automode please look into section 9.3.4 Auto-In / Auto-Out Modes of TRM-page 111. You can configure FIFO modes using EPxFIFOCFG register.



Re: copy fifo buffer

Timmons posted on 25 Dec 2011 09:01 AM PST
Senior Member
20 Forum Posts

Hi PRJI

Excuseme, I'm in holiday i could not answer

Thanks for your answer, i will try your tip next week. I'll keep you informed.

I leaved EPXFIFOCFG by default so i will try to change it.

Mybe the problem can be also that i leave enabled the autopointer.....

I will Try

 

 






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