Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Problems reading data from my EP6 OUT endpoint

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



Problems reading data from my EP6 OUT endpoint
Moderator:
RSKV

Post Reply
Follow this topic



Problems reading data from my EP6 OUT endpoint

tabenash2002 posted on 31 Jul 2012 4:50 AM PST
Member
2 Forum Posts

 Hallo Guys,

I ran into some problems last 3 weeks while trying to implement the salve fifo synchronous read module on my fpga using verilog. 

AIM of this project:

Transfer data from PC(matlab file) through c# program(using xferdata()) to the cypress usb. FPGA implements a read module to read data from EP6 and save in a FIFO-memory(IPCORE) for further processing.

Problem:

After setting the SLOE(active low) and SLRD(active low) as required(Cypress manual), the data on the BUS doesn't really change. I used Chipscope from Xilinx for debugging and i got the following simulation(see pdf  file).

As u can see from the simulation, although sloe and slrd shows that different values where supposed to be put on the bus, only 7373 is present at all times. why?

note: the status signal in the simulation is used to make sure that the slrd signal is asserted for exactly one clock circle meaning the cypress usb-device(Fx2) should increase pointer to next value in fifo(EP6) and sloe means it should move into the fd_bus.

-The usb_fd bus usually shows a different value that was never transmitted.(FD99)why?

-after resetting the usb device, the usb_bus shows 7FFF (I used 16 bits bus)why?

-I also noticed that when I changed the REVCTL = 0x03 in the TD_Init(), my endpoint doesn't work. USB Control Center throws an error (BULK OUT transfer ,BULK OUT transfer failed with Error Code:997) but when I comment it out, it works fine. (EP2 is of no use to me at the moment)

Please guys I have been working on this for weeks and I really need urgent help.

Any help will be greatly appreciated

Thanks in advance 

Mathias




Re: Problems reading data from my EP6 OUT endpoint

aasi posted on 04 Sep 2012 01:33 PM PST
Cypress Employee
1090 Forum Posts

Have you overcome this issue or are you still working on this?

If you're still working on this issue, please let us know the following information

Are using auto or manual slave FIFO mode?

What is ur endpoint configuration i.e. EP2 quad buffered, EP6 double buffered etc etc

The flag information (which flag is what and whether they're behaving as expected i.e. say even if data doesn't change doesn't clocking out all the data does the FLAG indicate the buffer is empty etc)

-AASI






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