Hello all, Sorry for screwing up the thread with different titles. Here's the thing, I've been having a fine time with USB-18f2550, so far I have tried:
1) My ports of the microchip CDC HID and CDC demo's on 18f2550 2) The "Nuts 'n Volts' HID code ported to SDCC on 18f2550 3) The CUI code from the Create USB Interface project 4) The Vasco project's PUF ( PIC USB Framework) 18f4550 and 18f2550 5) The ( assembler ) USB code "RCJoy" I'm using an 18f2550 with 4MHz resonator in all cases, I've also tried a 20MHz xtal and rebuilt to run at USB low speed with absolutely no different results. The ( assembler) RCJoy code works fine on my target hardware; so does PUF built with "18f4550" specified in the Makefile. None of my code works if built using "18f2550". In fact, building PUF for both 18f2550 and 18f4550 by just changing, in three places, "18f4550" to "18f2550" in the Makefile and re-building seems to result in two widely different hexfiles, only one of which works and which are obviously different, notably the banksel instructions. I've been banging away at this byte swapping because inspecting USB descriptors, it looks as if the length fields at the beginning are swapped when comparing descriptors in RAM and in flash; now I'm at a loss to understand why the different code output for what should be identically cored chips. I'd really appreciate any suggestions, TIA, polly <=> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Sdcc-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sdcc-user
