- Is the device being used CY7C68013A?
- I understand that new_Data() is being executed every 40mS right?
- Every time this function is run, you need to send data in xferBuffer_in of length PACKET_SIZE over the Bulk endpoint right?
- When you say "it crashes", do you mean the XferData() is returning false OR is the application crashes?
yes, the device is CY7C68013A. and every 40 ms new_Data() is executed. i need to read data in xferBuffer_in of length PACKET_SIZE over the Bulk endpoint.
it crashes means application crashes.
is it possible that when the code check true the conditions and waiting for receive data, usb disconnected and it crashes.is there any solution for this?