2017-09-25 10:41 AM
Hi,
I am using STM32L4 Discovery board, I have generated USB VCP code from cube MX and configured as CDC class in Device mode. I am facing an issue with Receive buffer, I don't understand the issue. If host send data more than 8 bytes to device, my code get hangs. Is there any Limitation in RX buffer. Could Some one suggest how to overcome this issue. I have attached the reference document which used to generate code in CUBEMX.
Thanks
#stm32l4-usb2017-09-25 01:00 PM
hello!
Put a Break inside CDC_Receive_FS(..) to observe where the problem is.
The Rx buffer is configured inside CubeMx.
Regards
vf
2017-09-25 01:09 PM
>>Is there any Limitation in RX buffer.
Presumably you have all the source code, it can't be that intractable, dig a little.
Cube/HAL seems to like to have blocking code, and remember call-backs stall the system, so do minimal work, buffer or whatever, and leave quickly.