Skip to main content
Explorer II
March 7, 2023
Question

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

  • March 7, 2023
  • 2 replies
  • 1053 views

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.

    2 replies

    Graduate II
    March 7, 2023

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

    ;)

    Super User
    March 7, 2023

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

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