Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Skip a packet in AUTO-OUT mode

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



Skip a packet in AUTO-OUT mode
Moderator:
RSKV

Post Reply
Follow this topic



Skip a packet in AUTO-OUT mode

lazyWombat posted on 01 Jul 2012 9:40 PM PST

1 Forum Post

 Hi

I setup the transfer using the auto-out mode. Everything the PC sends to the device is transferred using GPIF transfer.

Unfortunately, I need to skip the first packet, transmit 300 packets, skip 301 packet, transmit another 300 packets and so on.

In the ISR_Ep2inout I check the packet content and try to ignore it before the setting the GPIF transfer.

The code:

EP2FIFOCFG = 0x01; // manual mode

SYNCDELAY;

OUTPKTEND = 0X82; // skip packet

SYNCDELAY;

EP2FIFOCFG = 0x11; // back to auto out mode, disable PKTEND zero length send, word ops

SYNCDELAY;

does not work. The packet is not skipped and GPIF transfer picks it up.
 
If I use another code that resets FIFO (from TRM):
 
FIFORESET = 0x80; // activate NAK-ALL to avoid race conditions
SYNCDELAY;
EP2FIFOCFG = 0x01; //switching to manual mode
SYNCDELAY;
FIFORESET = 0x02; // Reset FIFO 2
SYNCDELAY;
OUTPKTEND = 0X82; // skip the packet
SYNCDELAY;
EP2FIFOCFG = 0x11; //switching to auto mode
SYNCDELAY;
FIFORESET = 0x00; //Release NAKALL
SYNCDELAY;
 
then I sometimes skip more than one packet

Is it any way to skip exactly one packet from EP2 buffer and preserve others intact?




Re: Skip a packet in AUTO-OUT mode

RSKV posted on 02 Jul 2012 10:24 PM PST
Cypress Employee
655 Forum Posts

Meanwhile, I would recommend you to create a tech support case (MyAccount --> MyCases) regarding this. One of our engineer will look into this.

Regards,

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.