I am using the STM32_USB-Host-Device_Lib_V2.1.0 together with the STM32F207ZG-SK Eval Board.
I have changed the MSC example code (Host), so that I can communicate with an CDC device. The enumeration works fine and I can read the Device Descriptor, Configuration Descriptor, Interface Descriptor and the Endpoint Descriptor.
After the Enumeration I want to start to send data via
status = USBH_BulkSendData (pdev,
Some time it works fine and with
URB_Status = HCD_GetURB_State(pdev , hc_num_out);
I get URB_Status = URB_DONE.
In many cases I get URB_Status = URB_NOTREADY and I don't know why.
Did I miss some parameters to set up before using USBH_BulkSendData()?
Thanks a lot.