Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > cy3686fw question: GPIFTCB settings

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



cy3686fw question: GPIFTCB settings
Moderator:
RSKV

Post Reply
Follow this topic



cy3686fw question: GPIFTCB settings

xingsing posted on 31 Aug 2011 2:19 AM PST
Senior Member
15 Forum Posts

Could someone help with the GPIFTCB setting found in the CY3686 firmware?  I am new to cypress programming and studying the CY3686FW for use with CY7C68033.  I found that, in inand.c's nReadPages() and nWritePages(), GPIFTCB is set to 511 (cNAND_DSIZE), instead of using the sector size which is 512.  I wonder why it is so.

I have enclosed the inand.c and inand.h files from the CY3686FW.  cNAND_DSIZE is defined at line 414 of inand.h

Thanks in advance.




Re: cy3686fw question: GPIFTCB settings

aasi posted on 05 Sep 2011 10:54 PM PST
Cypress Employee
1090 Forum Posts

If you look at the GPIF waveform, it transfers a byte and only then it goes to a state which checks TCxpire, this is the reason GPIFTCB is loaded with a value 1 less than the actual transaction count.

You can find the GPIF waveform in the file gpif30.gpf that comes as part of the project. If you're looking at NX2LP-Flex firmware you should find http://www.cypress.com/?rID=43431 useful.

Regards,

Anand



Re: cy3686fw question: GPIFTCB settings

xingsing posted on 16 Sep 2011 10:09 PM PST
Senior Member
15 Forum Posts

Thanks.  Does it mean if (1) is written to the count, 2 bytes will actually be read/written? It seems different from the description given in the USB TRM, e.g. from page 154-155 (figure 10-33 and figure 10-34) of the ezusb_trm (verD), an example is given for FIFO read transaction: to read a packet of HSPKTSIZE (512), 512 is written to GPIFTCB via the function call Peripheral_SetGPIFTC().  Also on figure 10-48, 10-49, 10-50, for FIFO write operation, 512 is used, not 511.  I wonder if the ezusb_trm is wrong?




Re: cy3686fw question: GPIFTCB settings

aasi posted on 16 Sep 2011 10:34 PM PST
Cypress Employee
1090 Forum Posts

No. The TRM is right.

It depends on the GPIF waveform, here we are starting to check and decrement only after transferring a byte so the GPIFTCB comes into picture only after we've transferred 1 byte hence the value 511.

Regards,

Anand



Re: cy3686fw question: GPIFTCB settings

xingsing posted on 16 Sep 2011 01:36 AM PST
Senior Member
15 Forum Posts


Thanks for reply.  Probably I need to reread the GPIF waveform editor manual to understand the waveform first...
 






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