This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STM32: USBH_BulkReceiveData() Usage

Hello!

I'm currently trying to implement a simple USB CDC Host. I used the following thread as reference: http://www.keil.com/forum/20569/ by Tsuneo Chinzei! It works well so far, I could enumerate my device and successfully used USBH_BulkSendData() to communicate with the OUT-Endpoint.
But when I use the USBH_BulkReceiveData() function the STM32 always goes into an USB-interrupt loop. Do I have to poll (HCD_GetURB_State(pdev , MSC_Machine.hc_num_in) == URB_DONE) first or maybe send an IN-Token first (if yes, which function is that?)?

0