From this discussion FLAGC set to not empty after TD_Init , using the same firmware.
I have a problem with this firmware, reading from EP6 (from external master), greater than 1024 cause the last buffer data to be zero.
Let's say, I need 1050 number of data to read, the first 1024 is okay, but the next data is zero.
Please be inform that external master sends PKTEND.
Thank you for your support.
Make sure the pktend is asserted along with the data and slwr signals. If it is being asserted alone, there is a chance it could trigger a separate Zero length packet which is gets into the device, without the remaining bytes.