3 Replies Latest reply on Sep 17, 2018 1:28 AM by hman

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

    user_23927206

      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?