Skip to main content
jsalg.1
Associate II
March 7, 2023
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
March 7, 2023

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

;)

Pavel A.
March 7, 2023

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

WojtekP1
Associate II
March 7, 2023

"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.