Hi Raphael, > Hmm. I spent the evening (after your post) compiling and inspecting the > USB/PICHID/* stuff and updated the source to compile without warnings > "the right way" (except for EVELYN, which is harmless: it removed empty > if-blocks). Find attached a more generally applicable Makefile, a patch > to move sdcc keywords into the __-namespace (just recommended, > cosmetic.patch) and another patch to remove all warnings (take address > of proper object instead of casting blindly). However, they yield no > difference in the output. >
I did some more debugging. I applied your patches and when I plug the device, it gets into DEFAULT state only. I would like to debug it - I enabled debugprintetc. I got following: USB Test Startup Enable the module Device powered Stall Stall Stall If it helps, I can send you the diff of orginal code and my changes (I copied some library sources into PICHID dir). Unfortunately I do not have any USB analyzer hardware, so I can just guess what happened. But I tested other USB stacks ( original Microchip and the one from Olin College as well) compiled with MCC18 and they work without any problem. So there must be something in software. Vaclav ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user