Skip to main content
ABouk.1
Associate III
May 6, 2021
Question

USB FS Host - GetURBState returns ERROR after a USBH_BulkReceiveData

  • May 6, 2021
  • 2 replies
  • 886 views

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,

This topic has been closed for replies.

2 replies

Ons KOOLI
Associate
May 6, 2021

Hi @Community member​ ,

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

Best Regards,

Ons.

ABouk.1
ABouk.1Author
Associate III
May 7, 2021

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,

Ons KOOLI
Associate
May 7, 2021

Hi @Community member​ ,

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

Best Regards,

Ons.