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,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-02-13 9:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-02-13 8:14 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-02-14 3:58 AM
Thank you for your rapid answer.
Best regards.
Ilson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-02-14 5:31 AM
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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-02-14 7:00 AM
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.
