Skip to main content
jsalg.1
Associate II
Mar 7, 2023 8:50 AM UTC
Question

what is best way to receive more than 64 bytes of data through USB in STM32??

Hi Team,

there is requirement that my board has to receive 256 bytes of data. but according to USB spec there is limit of 64 bytes, I am looking for solution/example how to handle more than 64 bytes through USB.

This topic has been closed for replies.

3 replies

LCE
Principal III
Mar 7, 2023 11:21 AM UTC

I guess it would be possible to write some code that can receive 4 packets with 64 bytes each.

;)

Pavel A.
Mar 7, 2023 2:37 PM UTC

Also 2,3 ... 5,6,7 packets and so on.

WojtekP1
Associate II
Mar 7, 2023 2:43 PM UTC

"receive 256 bytes of data. but according to USB spec there is limit of 64 bytes,"

1) make your own USB standard. Just name it different ;)

2) receive 4 times 64 bytes.

second method is easier for sure.