2021-05-06 06:50 AM
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,
2021-05-06 08:50 AM
Hi @Community member ,
You can refer to the STM32CubeL4 : Projects\32L4R9IDISCOVERY\Applications\USB_Host\MSC_Standalone
Best Regards,
Ons.
2021-05-07 01:29 AM
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,
2021-05-07 07:13 AM
Hi @Community member ,
Can you please provide your .ioc file and the frame trace of USB?
Best Regards,
Ons.