Why no CY_U3P_USB_EVENT_SUSPEND event is generated at Superspeed with SDK 1.3.4?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
GuSc_293616
Level 3
Level 3
5 likes given First like given

We are testing our firmware with the new SDK version 1.3.4 and notice that no CY_U3P_USB_EVENT_SUSPEND event is generated if the FX3 operates at superspeed.

With CyU3PUsbRegisterEventCallback we register a simple callback function:

// This is the callback function to handle the USB events.

void fx3UsbEventCallback (

    CyU3PUsbEventType_t evtype, // Event type

    u16 evdata __attribute__((unused)) )                 // Event data

{

  switch (evtype)

  {

    ...

    case CY_U3P_USB_EVENT_SUSPEND:

        SYSTEM_SetEvent( EVENT_SUSPEND_DEVICE );

      break;

    ...

    default:

      break;

  }

}

which worked fine till SDK 1.3.3.

Is there anything special to use the event with the new SDK?

0 Likes
1 Solution
Hemanth
Moderator
Moderator
Moderator
First like given First question asked 750 replies posted

Hi,

I just loaded AN75779 UVC firmware which is built using 1.3.4 SDK and please find the attached log which indicates suspend being encountered.

Can you please check the same firmware on your setup and test for the suspend event?

Regards,

Hemanth

Hemanth

View solution in original post

0 Likes
3 Replies
Hemanth
Moderator
Moderator
Moderator
First like given First question asked 750 replies posted

Hi,

Please check whether you are doing one of the following:

1. Returning false in CyFxApplnLPMRqtCB()

2. Whether CyU3PUsbLPMDisable() is called anywhere in your firmware?

Regards,

Hemanth

Hemanth
0 Likes

1. Returning false in CyFxApplnLPMRqtCB()
  -> we return always true

2. Whether CyU3PUsbLPMDisable() is called anywhere in your firmware?

  -> we never call CyU3PUsbLPMDisable

It seems that the event is only not generated at superspeed mode. I used the device on a USB2.0 - Port and it seems to work.

On a USB3.0 - Port the device show the wrong behavoire.

The same Firmware with SDK 1.3.3 works fine.

0 Likes
Hemanth
Moderator
Moderator
Moderator
First like given First question asked 750 replies posted

Hi,

I just loaded AN75779 UVC firmware which is built using 1.3.4 SDK and please find the attached log which indicates suspend being encountered.

Can you please check the same firmware on your setup and test for the suspend event?

Regards,

Hemanth

Hemanth
0 Likes