USBD_LL_PrepareReceive or similar after a USB Class specific SET_CURRENT request where USBD_CtlPrepareRx is used? Otherwise setup packets are no longer received.
Hi,
So the way the USB class drivers are implemented is that USBD_ClassName_Setup for a SET_CURRENT request will call USBD_CtlPrepareRx to receive the SET_CURRENT data payload and then the request will be processed from the USBD_ClassName_EP0_RxReady function.
The problem I am having is that it seems that after one such SET_CURRENT request, no more setup packets are received. Its as if USBD_LL_PrepareReceive should be called from the USBD_ClassName_EP0_RxReady so that future setup packets can be received, however, the examples from STM32CubeMX don't do this.
1) If I was to try calling USBD_LL_PrepareReceive or similar from EP0_RxReady, what parameters? Does this sound like the problem or am I on the wrong track? Its hard to believe that something so obvious would have been overlooked