cancel
Showing results for 
Search instead for 
Did you mean: 

Hello!!! I'm working with the USB as a virtual com port of the STM32L4R5. If I'm not wrong, the size of the reception data is only 64 bytes and the transmissin buffer is limited to 2048 bytes. It's possible to increase both buffer size? Best regards,

INaka.1
Associate III
 
4 REPLIES 4
TDK
Guru

The 64-byte data packet size is a limitation of the USB FS protocol and can't be changed. You can create a buffer and add bytes as they come in, but they need to be received 64 bytes at a time or less.

USB HS has a 512-byte data packet size limit.

Not sure about the 2kB limit. The RM says it has a 1.25kB hardware FIFO.

If you feel a post has answered your question, please click "Accept as Solution".
INaka.1
Associate III

Thank you for your rapid answer.

Best regards.

Ilson

You'll need to create your own larger buffers behind the hardware provided ones. If you generate data faster than you can offload it you'll need to throttle the generation to allow the transfer to catch up.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
INaka.1
Associate III

Thank you for your attention. This is a thing that I didn't know how to do. C'est la vie !!!

Mais , Je remercie beaucoup pour votre aide.