cancel
Showing results for 
Search instead for 
Did you mean: 

USB Library/HOST/URB_NOTREADY

i_am_back
Associate
Posted on January 10, 2013 at 14:13

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
1 REPLY 1
miguelmoreto
Associate
Posted on January 26, 2014 at 03:42

Hello,

check this post:

/27b186a0

It worked for me, I was also stuck after enumeration.

Best regards,

Miguel