Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Diagnostic Test for new hardware

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



Diagnostic Test for new hardware
Moderator:
RSKV

Post Reply
Follow this topic



Diagnostic Test for new hardware

mimarsh2 posted on 25 Sep 2012 1:32 PM PST
Member
6 Forum Posts

 My company has been using an FX2LP with the same code for many years.

Recently we did a board spin(just got the prototypes).  Theoretically the FX2LP is wired on the board the same as before.  

 

The PC software is able to connect to the cypress.

The FX2LP correctly enumerates the device.

The PC successfully sends commands to the FX2LP, that are echoed over RS232 for debugging.

The FX2LP thinks it successfully sent data back to the PC, the RS232 debugging output shows function success.

The PC times out when calling m_ep8In->XferData.  Using the software USBlyzer, I see no USB packets coming from the FX2LP.

 

1) When sending works and receiving fails, what chip connections / pins should we check first?

2) Is there a standard diagnostic to exercise Cypress / PC communication?

 

Thanks,

Brian




Re: Diagnostic Test for new hardware

Gayathri posted on 26 Sep 2012 11:35 PM PST
Cypress Employee
428 Forum Posts

 Hi,

 

Please describe certain things like what is FX2LP connected to in the peripheral side? Is it is using GPIF/ Slave FIFO mmode? Is it Auto/ Manual mode? Based on these understandings, I would like to understand and confirm whether EP8 is actually getting data from the peripheral device. You would like to double check the connection of flags/ handshake signals. I believe you are seing NAKs in the USBLyzer trace for EP8 IN transfer request.

 

Regards,

Gayathri



Re: Diagnostic Test for new hardware

mimarsh2 posted on 26 Sep 2012 07:48 AM PST
Member
6 Forum Posts

 Endpoint 8 is set up with the following code:

 

EP8CFG = bmVALID | bmIN | bmBULK | bmDOUBLEBUF;

EP8FIFOCFG = bmZEROLENIN | bmWORDWIDE;

I am new to Cypress programming, so I am not sure if this answers all your setup questions or not.  If not, where could I find that information?  I have inherited this code from previous projects/developers.

No peripheral is connected to endpoint 8.  My test consists of sending a command from the PC to the FX2LP.  The FX2LP should send a response, which never seems to be sent.

 

Attached is output from USBlyzer.  The PC sends 8 bytes of data but never gets data back.

 



Re: Diagnostic Test for new hardware

mimarsh2 posted on 26 Sep 2012 11:11 AM PST
Member
6 Forum Posts

 I found the problem.  At some point in initialization  the IFCONFIG was getting set to use an external FPGA clock.  This was present on our previous board.  Using the onboard clock, USB communication works.



Re: Diagnostic Test for new hardware

Gayathri posted on 27 Sep 2012 11:29 PM PST
Cypress Employee
428 Forum Posts

 Cool 






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