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

USB superspeed peripherals

jawu_4351971
Level 3
First like given
Level 3

您好:

     我在vendor request中调用CyU3PUsbGetEP0Data 和CyU3PUsbSendEP0Data都会返回CY_U3P_ERROR_TIMEOUT,我看论坛也有很多人遇到这个问题,没看到怎么解决。请问有没有解决办法?

            status = CyU3PUsbSendEP0Data(1,(uint8_t *)&ep0Buf[0]);

            if(status != CY_U3P_SUCCESS)

            {

      

                CyU3PUsbStall(0, CyTrue, CyFalse);

            }

            else

            {

                CyU3PUsbAckSetup();

            }

上面这个发送一个字节的代码,我host可以很快的接收到,但是程序就卡死了,没有任何返回值

CyU3PUsbGetEP0Data我放在vendor request里面也是程序卡死,我通过事件机制在其他地方处理的话返回值是CY_U3P_ERROR_TIMEOUT,凡是没有读到任何数据

0 Likes
1 Solution
YiZ_31
Moderator
Moderator 1000 replies posted 750 replies posted 500 replies posted
Moderator

请问您主机端程序用的是我们的USB Control Center吗?

您可以参考SDK中的USBBulkSourceSink这个例程。

View solution in original post

0 Likes
4 Replies
jawu_4351971
Level 3
First like given
Level 3

项目很急,希望有人帮助解决一下

0 Likes
YiZ_31
Moderator
Moderator 1000 replies posted 750 replies posted 500 replies posted
Moderator

请问您主机端程序用的是我们的USB Control Center吗?

您可以参考SDK中的USBBulkSourceSink这个例程。

0 Likes
jawu_4351971
Level 3
First like given
Level 3

USB Control Center可以发送vendor request吗?

0 Likes
YiZ_31
Moderator
Moderator 1000 replies posted 750 replies posted 500 replies posted
Moderator

当然可以

0 Likes