OK, this was not the worst day of my life, but it was pretty bad.
I'm trying to implement USB for the first time, and I don't have much hair left. Everything has failed miserably and I am not even trying to write code yet. Using a PIC18F2455, first I tried that cool USBdemo thing (the one specifically for the 2455). It compiled fine and the PC (windows xp pro) recognized the pic as and HID mouse. But the Vbasic program showed no evidence of a connection (no input from the pic and no control over lights or pulse modulators, etc). Some of the LEDs came on randomly in some attempts--seemed like complete chaos. I added in some blinky code to illuminate things (ooo, bad pun...), and got the leds to blink intially but it soon froze up.
So I gave up on the USBdemo and went for the very clear and simple instructions on the post "USB CDC Communications for Dummies!" (http://www.picbasic.co.uk/forum/arch...hp/t-5806.html). Again, no trouble compiling, but the PC would not recognize the "Unknown USB device" and did not ask me about installing the driver (pbpcdc.inf). Attempts to install the driver manually also failed--that stupid wizard insists on searching for the driver and it never finds it.
Then I tried the USBmouse example in PBP. Result: "USB device not recognized...."
I'm not even sure how to ask for help here. I feel like I've tried almost everything (tried several factory fresh pics, used a different PC, quadruple checked the wiring...) What could I be doing wrong? I have no compiling problems so I would guess that I have fuses set correctly (and I didn't alter the supposedly working code anyway). The pic gets recognized with the USBdemo, so I think I have the physical usb connection configured correctly. I've reinstalled and updated PBP, microcode, and MPASM. I can run simple blinky programs, no problem. I've been pouring over the forum all day and can't find instances of similar problems.
I'm going home.....
Could somebody please post "USB CDC Communications for Hopeless Dimwits"?
Bookmarks