Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Problem about slave FIFO write

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



Problem about slave FIFO write
Moderator:
RSKV

Post Reply
Follow this topic



Problem about slave FIFO write

byeyear posted on 01 Feb 2012 7:04 PM PST
Top Contributor
29 Forum Posts

Hi,

    I'm trying slave fifo example and meeting the following problem:

    1.  I use 'slfifosync' SDK example;

    2. On Slave fifo side, I use 'pktend'  signal to write short packets continually. Each packet has 17 words (68 bytes).

    3. I add a breakpoint on CyFxSlFifoPtoUDmaCallback(...) function

    4.  If I set 'bytes to transfer' on USB Control Center as 1024, all things are nice.

    5.  Now I set "bytes to transfer" as 2048;

    I think that when I click 'Bulk transfer in' button each time, the callback function CyFxSlFifoPtoUDmaCallback(...) will be called once because one buffer is released by consumer(U port). Although I set 'bytes to transfer' as 2048, only 68 bytes will be transfered because I use pktend# signal to send short packet.

    But each time I click 'Bulk transfer in' button, the callback function is called more than one time sometimes. Sometimes it is called once, somtimes twice, sometimes three times, and sometimes more times. There is no law. The data received is not correct when the callback is called more than once.

Best, regard.




Re: Problem about slave FIFO write

aasi posted on 02 Feb 2012 05:22 AM PST
Cypress Employee
1073 Forum Posts

Hi,

We've to replicate the issue before we can look at what exactly is going wrong. Please create a support case (MyAccount -> MyCases) so that one of our engineers can take a deeper look into this issue.

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.