AnsweredAssumed Answered

Reasonable timeout in Mass storage class MS_Host_SendReceiveData

Question asked by S S on Jul 25, 2019
Latest reply on Aug 1, 2019 by Alexis Andalon

Hi

Mass Storage Class  ehci.c file has a function called MS_Host_SendReceiveData. This has a forever loop at  - while(!Pipe_IsStatusOK(portnum)). So far we never had an issue but last two days the system gets caught in this forever loop. Without compromising normal operation, we would like add some timeout. Instead of waiting forever to get OK message, return with an error. What would be the reasonable timeout?

Thanks

Outcomes