AnsweredAssumed Answered

How to cancel transfer on OUT pipe of USB?

Question asked by serb.sergey on Aug 10, 2015
Latest reply on Oct 6, 2015 by serb.sergey
Is there any way to cancel OUT transfer (receive) on STM32 using CubeF4 library?

I use USB in my device to communicate with PC (STM32 is "device", PC is "host"). If client (PC side) program is "crashed" and my software protocol is not terminated correctly I have to send "reset" command to control (0) pipe of USB and handle it on STM32 side. The problem is that before the client application crashed last time, MCU firmware used USBD_LL_PrepareReceive function and device is waiting for data from PC!  I _have_ to cancel that transfer without resetting whole USB device stack. Is there any way to do that with CubeF4 library?

Outcomes