AnsweredAssumed Answered

USB Library/HOST/URB_NOTREADY

Question asked by mueller.stefan on Jan 10, 2013
Latest reply on Jan 26, 2014 by moreto.miguel

Hello,

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,
                           USBH_CDC_XferParam.pOutBuffer,
                           USBH__XferParam.Out_Packet_Length, 
                           hc_num_out);

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.
Stefan

Outcomes