Forcing Usb3 only

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

cross mob
lock attach
Attachments are accessible only for community members.
nich_4061921
Level 1
Level 1

Hi guys!

So, I finally got my fx3! Super excited  and I'm designing a super speed only device.

I know that a possible release would have compliance issues with usb, but would I assume correctly by deleting the following and keeping 1024, that would force Usb3 superspeed and fail out if it's connected to a usb2 host?

0 Likes
1 Solution

Hello,

Sorry for the misunderstanding. Please use the below code after the CyU3PConnectState() API call to disconnect the FX3 device in case it is not operating at Super Speed.

    CyU3PUSBSpeed_t usbSpeed = CyU3PUsbGetSpeed();

    CyU3PBusyWait(10);

    if(usbSpeed != CY_U3P_SUPER_SPEED)

    {

        CyU3PConnectState(CyFalse, CyTrue);

        CyFxAppErrorHandler(apiRetStatus);

    }

Best regards,

Srinath S

View solution in original post

0 Likes
3 Replies
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello,

To disable the SuperSpeed operation of FX3, the CyU3PConnectState() API should be called with its second parameter set to CyFalse.

Best regards,

Srinath S

0 Likes

Hi! I think you might have misunderstood me, or I was unclear.

I want to disable all other usb configurations other than Usb3, I need it to stop working if it's not connected to superspeed.

Just if I don't formulate myself well, I only want usb3

0 Likes

Hello,

Sorry for the misunderstanding. Please use the below code after the CyU3PConnectState() API call to disconnect the FX3 device in case it is not operating at Super Speed.

    CyU3PUSBSpeed_t usbSpeed = CyU3PUsbGetSpeed();

    CyU3PBusyWait(10);

    if(usbSpeed != CY_U3P_SUPER_SPEED)

    {

        CyU3PConnectState(CyFalse, CyTrue);

        CyFxAppErrorHandler(apiRetStatus);

    }

Best regards,

Srinath S

0 Likes