Quote Originally Posted by mister_e View Post
While we don't see of any code, may I suggest you to have a look to the following?
http://www.picbasic.co.uk/forum/showthread.php?t=5418
I'm sure that the USBdemo.zip file contains all that one need to put up a working USB demo environment with PIC18F4550 and for example a XP compunter or laptop.

However, I'm just really unlucky with all this USB stuff. When I copied all PICBasic stuff from your zip-file to C:\PBP and open the USBdemo.pbp in MicroCode Studio and then try to compile it (by invoking PICBASIC PRO 2.50B) I get the following error:
ERROR Line 81:Redefinition of VAR. (USBDemo.pbp)
Shows then the line highlighted with red:
UCFG var byte EXT ' include UCFG register... Yeah Melabs didn't (

Quit normal reaction to this is to try to comment out that line...however with the consequence of a bunch of errors, Error[118] and one Error[113], all in c:\pbp\usbdemo.asm
Error[113]c:\pbp\usbdemo.asm 134: Symbol not previously definded (_FCMEN_OFF_1H) ; This is the only one, 113
Error[118]c:\pbp\usbdemo.asm 128: Overwriting previous address contents (0000) ;First on line 128 then lines 134, 139, 140 and 141...

I took a to look at the usbdemo.asm file but I thought that better not to try to change anything there. Obviously I'm timid ...

What can here be wrong?


Also, try to remove that U3 for now.
U3? The successor of U2??
Sorry, I'm not familiar with all abbreviations and acronyms

disable the watchdog Timer in your config fuses.
I can do it with my config, but not with Darrels and the outcome is at this point known.