Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Packet not commited on fx2lp

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



Packet not commited on fx2lp
Moderator:
RSKV

Post Reply
Follow this topic



Packet not commited on fx2lp

Amir1981 posted on 10 Sep 2011 3:46 PM PST
Member
5 Forum Posts

Hello everybody

 

i am new here and this is my first post so please be patient with me.

 

I am using fx2lp (cy7c60813A) for transfering images from my camera. As a master i use FPGA Cyclone3. Now, i have setup everything and implemented (adjusted) a state machine in VHDL for bulk transfer of data. I am using the EP2,EP6 and EP8 configuration from TRM (i think it is number 4). It is valid. I should also point out that the configuration i am using worked previously just fine. Yesterday i had to re-install my system. So i deleted everything and install WinXp (32-bit) and cypress driver (3.4.5). I downloaded my FPGA configration, and any transfere i try always endups in timeout.

 

I decided to follow things with signal tap and the logic is ok. I also hooked up my scope on FullFLAG and it is always HIGH (the USB FIFO never goes full) My USB_CS, USB_WR and USB_OE pins are LOW during writing procedure while USB_RD is high. Fifo ADDRESS is set to '00' (endpoint 2). Now when i start CyConsole the device is recognized with all configurations properly initialized. In my application i use CyApi and i can read my device, configraion and enpoints with no problem. BUT TRANSFER OVER THOSE NEVER HAPPENS. I just do not understand what is happening. I also dont know what eles too try.

 

I tryed the bulkloop example provided by cypress and it works fine. My application also worked fine before i reinstalled my system. I have installed the drivers i used in previous times, but nothing works. Please tell me what can i do, what should i try what should i look for in moving ahead.

 

kind regards

 

mirza

 

 




Re: Packet not commited on fx2lp

Amir1981 posted on 10 Sep 2011 05:31 PM PST
Member
5 Forum Posts

Sorry just to say that my USB_OE is also HIGH not LOW.



Re: Packet not commited on fx2lp

ragers posted on 10 Sep 2011 08:52 PM PST
Top Contributor
25 Forum Posts

dear mirza

did you configured OUTPKTEND register in your firmware?

please attach your.

regards

ragers 



Re: Packet not commited on fx2lp

Amir1981 posted on 11 Sep 2011 09:14 AM PST
Member
5 Forum Posts

Hi

 

thank you for the fast response. Please see attachement of my firmware. I am using 48MHz external clock, and i aiming for the following configuration

EP2 BULK IN 512k Quad Buff

EP6 BULK IN 512k Double Buff

EP8 BULK OUT 512k DoubleBuff

i installed cypress kit development 3.4.5 and also the uVision2 studio with keil. I can see my device in Cypress console, but not transfere occurs. I checked and double checked my WR OE CS and FLAG pins and all of them are appropriate. 

 

regards

 

mirza

 

 



Re: Packet not commited on fx2lp

Amir1981 posted on 12 Sep 2011 10:07 AM PST
Member
5 Forum Posts

Hi

anyone experience any simillar problems?

 



Re: Packet not commited on fx2lp

Gayathri posted on 13 Sep 2011 02:34 AM PST
Cypress Employee
428 Forum Posts

 Hello Mirza,

 

You have attached only the initialization part of firmware. Can you please attach the parts where the data is being handled. 

Regards,

Gayathri

 



Re: Packet not commited on fx2lp

Amir1981 posted on 13 Sep 2011 08:47 AM PST
Member
5 Forum Posts

Hi

 

What do you mean by how is data handeled?

 

What i posted is the firmware i download to eeprom. But my data is being commited to fx2lp by external master ... a vhdl code on Cyclone3. From what i see there and the flags shown by scope, everything is ok.

 

regards

 

mirza

 

 



Re: Packet not commited on fx2lp

Gayathri posted on 14 Sep 2011 02:16 AM PST
Cypress Employee
428 Forum Posts

 Hello Mirza,

 

As far as I understood I believe the transfers are not successful with CyConsole as well. In that case, it is not an issue with your application. Have you checked your External clock from FPGA? Is it intact? Since the interface is Synchronous, only if clocking is proper data bytes would be transferred.

 

Regards,

Gayatrhi






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