Giovanni wrote:Just a note "sd" functions are specific of the serial driver, they do work with the "sdu" driver but are not meant for that. you should use chnReadTimeout() instead.
Thanks, I got it.
About the timeout, what is the state of the system when it hangs? crashed or just some thread hung and others working?
The state is normal, all threads are working, except "USB_THREAD" (maybe I can look at its state too, but I did not think to do it), USB driver even responding to system requests. When I unplug USB cable the cable detection function resets the USB queues as I wrote once before and likely this is resume the USB thread.
In addition I have saw that data in "USB hang state" still sent succesfully from device to host (hangs only receive function).
Maybe it is only my problem, could someone check it on on their board?