Content originally posted in LPCWare by gjdevos on Tue Jan 20 03:18:55 MST 2015
Hi,
Here is some more information on this issue.
When the LPC stops sending answers, it is always after the first message in the script. An external
USB analyzer shows that the LPC no longer sends data in this case while in the debugger we see
that WriteEP is still being called successfully. I assume the CDC initialization somehow triggers a
problem in the LPC USB stack. Indeed the USB analyzer shows a slightly different setup
sequence for a Windows host as compared to the same script running on the Linux host.
When the problem happens, ioctl(USBDEVFS_RESET) makes the communication working OK
again.
Gert-Jan