AnsweredAssumed Answered

USB_DeviceCancel makes endpoint unusable

Question asked by Tomas Vanek on Apr 22, 2017
Latest reply on May 5, 2017 by Tomas Vanek

I'm creating  an K22 application working as an USB FS device with vendor class bulk in. I use KSDK 2.2 with usb 1.6.3

The application needs to cancel running long transfer on bulk in endpoint. If it calls USB_DeviceCancel, pending transfer is canceled. Unfortunately the endpoint gets into not usable state, following calls of USB_DeviceSendRequest do not send any data to host until USB is reset and configured again.

It looks like khci device driver loose sync between endpointState bdtOdd and USB peripheral state after USB_DeviceCancel.

Can anybody point me to an working example of canceling USB transfer?

Outcomes