1 2 Previous Next 19 Replies Latest reply on Mar 12, 2020 12:33 AM by WGT_4383351

    XferData() doesn't return when data arrives during wait

    WGT_4383351

      Set the TimeOut to 10 seconds. Then use XferData() to read 2KB data from an IN endpoint, then the wait begain since there is no data available.

       

      Then 2KB data arrived, but XferData() won't return until time out and fail. Then the next XferData() call will get the 2KB data successfully.

       

      Why does this happen? Shouldn't XferData() return true immediately during wait when the data arrive? Does this behavior depend on some properties of CyBulkEndPoint, or depend on the firmware?

        1 2 Previous Next