ArduinoCore-sam icon indicating copy to clipboard operation
ArduinoCore-sam copied to clipboard

Atmel SAM UHD_Pipe_Read can't handle packet size >255 bytes

Open hugoduncan opened this issue 11 years ago • 1 comments

When reading USB packets with USBHost::intransfer, packet sizes of 512 bytes would read 0 bytes.

In UHD_Pipe_Read, nb_byte_received is declared uint8_t, whereas it needs to be at least uint16_t.

Recompiling the system library using this, everything works as expected.

Not sure where to report this, but hopefully I'll be set straight if this is not the right place.

hugoduncan avatar Jul 26 '13 22:07 hugoduncan

Posted this as "Update uotghs_host.c #66" But no reaction. Who maintains this library?

martinzw avatar May 09 '20 09:05 martinzw