CONTROL OUT transfer failed with Error Code:997

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.
Anonymous
Not applicable

cyusb3014,sample: firmware\serialif_examples\cyfxusbi2cregmode

   

​I send vendor command (USB control center) but it shows:

   

CONTROL OUT transfer failed with Error Code:997.

   

How to avoid this?

   

Thanks.

0 Likes
1 Solution
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

Hello,

Please refer to the readme.txt file of USBI2CRegMode example. 

If the data (data to send) needs to be sent from Host to Device, the direction of the transfer will be OUT otherwise IN.

The bRequest should be filled with bRequest mentioned in readme.txt file. bmRequestType can be mapped as follows

bmreqtype.PNG

 

Regards,
Rashi

View solution in original post

0 Likes
2 Replies
Anonymous
Not applicable

Please change the direct of transfer to "IN", and "Bytes to transfer" to 8

0 Likes
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

Hello,

Please refer to the readme.txt file of USBI2CRegMode example. 

If the data (data to send) needs to be sent from Host to Device, the direction of the transfer will be OUT otherwise IN.

The bRequest should be filled with bRequest mentioned in readme.txt file. bmRequestType can be mapped as follows

bmreqtype.PNG

 

Regards,
Rashi
0 Likes