Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > FX2LP-CY7C68013A Isochronous 3pkts/uFrame autoin not working!

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



FX2LP-CY7C68013A Isochronous 3pkts/uFrame autoin not working!
Moderator:
RSKV

Post Reply
Follow this topic



FX2LP-CY7C68013A Isochronous 3pkts/uFrame autoin not working!

dadeur posted on 30 Sep 2010 3:58 AM PST
Member
7 Forum Posts

Hi everybody,

I'm getting a strange error with CY7C68013A.

An image sensor is filling the endpoint FIFOs in AutoIN mode and data is sent through an Isochronous pipe. If I send 1pkt/uFrame, data are correctly received by the host, if I send 2 or 3 iso pkts/uFrame, I get an error from the host controller (E0000B00:Iso Request Failed and every packet has status E0000011: XACT error).

FIFO is configured with AUTOIN and ZEROLENIN.

Here is the code:

             case Alt3_IsocIN:
                // Only using endpoint 2, zero the valid bit on all others
                EP2CFG = 0xD8;  // EP2 is DIR=IN, TYPE=ISOC, SIZE=1024, BUF=4x
                SYNCDELAY;

                EP2FIFOCFG = 0x0d;
                SYNCDELAY;
                
                EP1OUTCFG = EP1INCFG = EP4CFG = EP6CFG = EP8CFG = 0x00;
                SYNCDELAY;
    
                // Clear out any committed packets
                FIFORESET = 0x80;
                SYNCDELAY;
                FIFORESET = 0x02;
                SYNCDELAY;
                FIFORESET = 0x00;
                SYNCDELAY;
    
                // This register sets the number of Isoc packets to send per
                // uFrame.  This register is only valid in high speed.
                EP2ISOINPKTS = 0x03; // with EP2ISOINPKTS = 0x01 WORKS!!!
break;

and the descriptor:

;; Isoc OUT Endpoint Descriptor
      db   DSCR_ENDPNT_LEN   ;; Descriptor length
      db   DSCR_ENDPNT       ;; Descriptor type
      db   02H               ;; Endpoint 2 and direction OUT
      db   ET_ISO            ;; Endpoint type
      db   00H               ;; Maximun packet size (LSB)
      db   14H               ;; Max packect size (MSB) 10100b 3x1024 byte packets/uFrame
      db   01H               ;; Polling interval

I tried to manual flush the FIFO and in this case I correctly receive 3 pkts/uFrame!!!

Unfortunately I've no hardware protocol analyzer, so I cannot give deeper info about the isochronous transaction!

Thank you in advance!

 

 




Re: FX2LP-CY7C68013A Isochronous 3pkts/uFrame autoin not working!

dadeur posted on 30 Sep 2010 06:09 AM PST
Member
7 Forum Posts

I found an error in previous post! The endopint description is, actually:

;; Isoc IN Endpoint Descriptor
      db   DSCR_ENDPNT_LEN   ;; Descriptor length
      db   DSCR_ENDPNT       ;; Descriptor type
      db   82H               ;; Endpoint 2 and direction OUT
      db   ET_ISO            ;; Endpoint type
      db   00H               ;; Maximun packet size (LSB)
      db   14H               ;; Max packect size (MSB) 10100b 3x1024 byte packets/uFrame
      db   01H               ;; Polling interval

 



Re: FX2LP-CY7C68013A Isochronous 3pkts/uFrame autoin not working!

dadeur posted on 30 Sep 2010 06:31 AM PST
Member
7 Forum Posts

Here is another clue!!!

If I set endpoint polling time to 2 instead of 1 (250us instead of 125 us) transaction WORKS, even with 3 pkts/uframe! Unfortunately I need 3pkts/uframe with polling time of 125 us!!

 






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: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20