PDA

View Full Version : USBinit and USBservice



Christopher4187
- 4th March 2006, 01:05
Why when I compile a program for an 18F4550 with MPASM and PBP, I keep getting an error that says "ERROR: Macro USBINIT? not found in macro file" and the same for USBSERVICE. Does anyone know how to solve this problem?

Thanks,

Chris

Bruce
- 4th March 2006, 01:25
You have a number of support files that need to be in the same directory as
the file you're compiling. If these files aren't in the same directory, you'll get
this error.

Christopher4187
- 4th March 2006, 01:34
Bruce,

Can you elaborate? I understand what you are saying but I don't know what to look for.

Chris

Bruce
- 4th March 2006, 01:46
Hi Chris,

Look in USB.TXT in your USB18 directory.

You can also download EasyHID from http://www.mecanique.co.uk/products/usb/easyhid.html

It will create all the required files for you & place them all in one directory.

Christopher4187
- 4th March 2006, 03:27
I have those files but I still can't figure out why I am still getting this message. Any ideas?

Bruce
- 4th March 2006, 15:50
OK, but is the file you're trying to compile in the same sub directory as the
USB support files?

I can force this exact same error, but only if the file I'm compiling isn't in the
same directory as the required USB include files.