cancel
Showing results for 
Search instead for 
Did you mean: 

USB FS Host - GetURBState returns ERROR after a USBH_BulkReceiveData

ABouk.1
Associate III

Hello everybody,

I am currently using a stm32l4R9 and it's communicating with a RTL2832u over USB FS. The initialisation works perfectly (using USBH_CtlReq). However, when I use USBH_BulkReceiveData I can see a frame transmitted on my oscilloscope but the STM32l4 doesn't get it and USBH_LL_GetURBState returns ERROR after a while (5ms approx)

I really need help with this because it's been weeks and still I have the same bug.

Thanks in advance,

3 REPLIES 3
Ons KOOLI
Senior III

Hi @Community member​ ,

You can refer to the STM32CubeL4 : Projects\32L4R9IDISCOVERY\Applications\USB_Host\MSC_Standalone

Best Regards,

Ons.

ABouk.1
Associate III

Hi,

The difference between my code and the example is that I only open 1 IN bulk pipe because i don't need to bulk write to the RTL2832U.

After a day of debugging, I retraced the URB error, it's cause by the BABBLE interrupt (USB_OTG_HCINT_BBERR) so I resize my buffer from 64 bits to 1024 - 5012 - 64KBits ... And still the same error.

Do you please have any suggestions ?

Thanks,

Hi @Community member​ ,

Can you please provide your .ioc file and the frame trace of USB?

Best Regards,

Ons.