AnsweredAssumed Answered

Larger USB Packet Sizes on USB-CDC FS

Question asked by Jason Blackston on Mar 6, 2016
Latest reply on Mar 7, 2016 by Kan_Li

I had a quick question about the CDC data transfer. I know if you have USB-FS chip your payload size is 64 Bytes. But I was wondering if someone had example code of showing how to handle larger payloads like 128 byte or 256 bytes.  On the PC side I'm able to just send out like 128 bytes and I just keep reading in on the firmware side in payload chunks of 64 bytes till I read in my 128 bytes and that works. Sending out to the PC do I send 64 bytes and then the null and keep doing that till I'm done sending out my full payload of like 128 bytes? or can I just keep sending out my data and then at the end of it all send the null?


I was just hoping someone might have implemented the logic for this and it could possibly save me some time trying to figure it out.