From: panocomp <pan...@gm...> - 2004-09-29 08:46:48
|
Alex Faveluke wrote: >Hi, > >Sorry if this is off topic for this list, but I don't know where else to >look.. > >I'm using SDCC to write a very simple polled communication for the EZ2131 >chip, with the usblib API on the linux host side, fxload for programming. >I've got some problems with data returning out of order... like a read gets >the previous packet I tried to read. Are there any good examples for simple >polled IO beyond what's in the Cypress book. > > Examples are in the Cypress developement kit. >Another problem I've got is that sometimes the chip will disappear from the >USB system, and not respond to plugging/unplugging.. It comes up temporarily >as an unknown device with no endpoints then disapears again. I have to >completely restart my system to fix this. Is there a way I can just request >the entire USB bus to reset? > >Thanks, > >Alex > > > What hardware do you use? Look to in linux to dmesg to see what the kernel recognize - unplug etc. If the hardware is stable it looks like a software bug. The pipe 0 messages are no longer answered by your device due to different errors like stack overflow, disabled interrupts etc. Bye Wolfgang |