Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > handling shortpacket with GPIFII

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



handling shortpacket with GPIFII
Moderator:
RSKV

Post Reply
Follow this topic



handling shortpacket with GPIFII

RSKV posted on 28 Sep 2012 4:29 AM PST
Cypress Employee
848 Forum Posts

Following are the ways to commit a short packet from GPIF II to USB:

Actually we have a action called COMMIT to submit a short packet. But we need to do IN_DATA action along with the COMMIT action. If we don't do IN_DATA then it will generate a Zero length packet after committing the short packet. But if you do IN_DATA then there is a chance that you may see extra data for one clock cycle. 

If you are seeing any extra data, then try changing the implemention as mentioned below:

Instead of doing COMMIT and IN_DATA actions in that state, do INT_CPU action. This will generate an interrupt to the firmware and there you can commit the short packet by calling CyU3PDmaChannelSetWrapUp API.

Thanks,

sai krishna.




Re: handling shortpacket with GPIFII

Rover posted on 09 Apr 2013 10:10 PM PST
Top Contributor
28 Forum Posts

If I use COMMIT in state machine, any short packet can be sent to USB. However, if I use INTR_CPU and call CyU3PDmaChannelSetWrapUp to commit the short packet, the size is trimmed  to multiple of 4. Why?






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