Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > what cause CY_U3P_USB_EVENT_SUSPEND event?

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



what cause CY_U3P_USB_EVENT_SUSPEND event?
Moderator:
RSKV

Post Reply
Follow this topic



what cause CY_U3P_USB_EVENT_SUSPEND event?

mike g posted on 30 Jan 2012 12:14 AM PST
Member
10 Forum Posts

I find when i load .img file, after some time, firmware receive SUSPEND event. Could somebody kindlly tell me why?

Regards!

Thanks!




Re: what cause CY_U3P_USB_EVENT_SUSPEND event?

aasi posted on 30 Jan 2012 01:33 AM PST
Cypress Employee
1073 Forum Posts

It means a suspend condition was detected on the USB lines.

Please provide more information on this scenario that you're facing

Device enumerates/does not enumerate? Device works for so and so time and then this event is received? etc

Regards,

Anand



Re: what cause CY_U3P_USB_EVENT_SUSPEND event?

mike g posted on 31 Jan 2012 12:13 AM PST
Member
10 Forum Posts

Thanks aasi!

I want to reappear SUSPEND event,but i failed. I will  show details when i reappear this case.

But I find an other problem. Could you kindly explain this case. 

My firmware is almost same as syncfifo project, fpga produce data to fill fx3's slave fifo, i only use  P2U channel to auto commit to an IN EP. 

CASE 1:  when i load img to ram, after device  enumerates successfully, i don't do any operation, after a time, i find CY_U3P_USB_EVENT_RESET arrived, then CY_U3P_USB_EVENT_SET_SEL, CY_U3P_USB_EVENT_SETCONF events follow. i can hear dingdong like device disconnect, but it's really reset not disconnect. i can also read data from device by application runing on PC.

CASE 2: when i load img to ram, after device  enumerates successfully, i run my application to read data, after a time( this interval is shorter than case 1, and more  frequently), i find CY_U3P_USB_EVENT_RESET arrived, then CY_U3P_USB_EVENT_SET_SEL, CY_U3P_USB_EVENT_SETCONF events follow. i can hear dingdong like device disconnect, but it's really reset not disconnect.

also, I find when CY_U3P_USB_EVENT_RESET event come i call CyFxSlFifoAppInStop, and when CY_U3P_USB_EVENT_SET_SEL come i call CyFxSlFifoApplnStart, the device will dead. but when CY_U3P_USB_EVENT_RESET event come i do nothing, and  when CY_U3P_USB_EVENT_SET_SEL come i call CyFxSlFifoApplnStop, then CyFxSlFifoApplnStart, the device is still active. Is there difference?

 

Regards!

 

Thanks!



Re: what cause CY_U3P_USB_EVENT_SUSPEND event?

mike g posted on 31 Jan 2012 07:11 PM PST
Member
10 Forum Posts

I  reappear SUSPEND event,  when i load img to ram, after device  enumerates successfully, i don't do any operation, after a time, follow events come in sequence:

CY_U3P_USB_EVENT_SUSPEND,

CY_U3P_USB_EVENT_CONNECT,

CY_U3P_USB_EVENT_RESET,

CY_U3P_USB_EVENT_SPEED,

CY_U3P_USB_EVENT_RESET,

CY_U3P_USB_EVENT_SPEED,

CY_U3P_USB_EVENT_SETCONF.

after these events, my device become  High speed, before is super speed. Please kindlly tell me which can cause suspend happen? hardware, firmware or device driver?

 

Regards!

 



Re: what cause CY_U3P_USB_EVENT_SUSPEND event?

aasi posted on 31 Jan 2012 08:25 PM PST
Cypress Employee
1073 Forum Posts

Hi,

Are you using the DVK or a custom board?

Regards,

Anand



Re: what cause CY_U3P_USB_EVENT_SUSPEND event?

mike g posted on 01 Feb 2012 10:07 PM PST
Member
10 Forum Posts

Anand, Thanks for your reply.

I used my custom board which refer to DVK. 

Regards.

mike



Re: what cause CY_U3P_USB_EVENT_SUSPEND event?

aasi posted on 01 Feb 2012 01:36 AM PST
Cypress Employee
1073 Forum Posts

Please look at http://www.cypress.com/?docID=33570 and see if you're conforming to the recommendations. Looking at your description it seems the signal quality isn't good so the host is reverting the device back to high-speed.

Regards,

Anand






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.