eDub
- 9th February 2006, 04:12
I'm having this problem with my own program but anyone can see it with the USBMOUSE demo that comes with a PBP purchase v2.46. Them problem is that it won't compile from the command line, but it will compile with Microcode Studio. It might seem trivial to some, but getting this working is imperative for the product I'm trying to produce and I'm a one man op. So I will greatly appreciate any help that is offered.
(Just to get it out of the way, I've already shortened my file paths and names and reinstalled PBP.)
To reproduce this problem, copy the contents of C:\PBP\USB18 into a new folder (“C:\test”). Compile USBMOUSE.BAS with Microcode Studio and everything should work fine. Then use the following batch file contents to compile it from the command line:
cd C:\PBP
PBPW -ampasmwin -v -p18F2455 "C:\test\USBMOUSE.BAS"
pause
My results are:
C:\PBP>PBPW -ampasmwin -v -p18F2455 "C:\test\USBMOUSE.BAS"
PicBasic Pro Compiler 2.46, (c) 1998, 2005 microEngineering Labs, Inc.
All Rights Reserved.
Pass 1:
Pass 2:
Code Gen:
Macro Pass:
ERROR: Macro USBINIT? not found in macro file.
ERROR: Macro USBSERVICE? not found in macro file.
ERROR: Macro USBOUT?CBCL not found in macro file.
These four macros are mentioned in the C:\PBP\USB18\USB.txt file but the significance eludes me. BTW, USB.txt contains some useful information on this subject, but I've yet to find my answer there.
You can get a similar message inside Microcode studio if you try to compile the program for a 16 series pic instead of an 18 series (18F2455). It should also be noted that USBJADEM demo exibits the same behavior.
Thanks for reading, I hope someone can solve this.
(Just to get it out of the way, I've already shortened my file paths and names and reinstalled PBP.)
To reproduce this problem, copy the contents of C:\PBP\USB18 into a new folder (“C:\test”). Compile USBMOUSE.BAS with Microcode Studio and everything should work fine. Then use the following batch file contents to compile it from the command line:
cd C:\PBP
PBPW -ampasmwin -v -p18F2455 "C:\test\USBMOUSE.BAS"
pause
My results are:
C:\PBP>PBPW -ampasmwin -v -p18F2455 "C:\test\USBMOUSE.BAS"
PicBasic Pro Compiler 2.46, (c) 1998, 2005 microEngineering Labs, Inc.
All Rights Reserved.
Pass 1:
Pass 2:
Code Gen:
Macro Pass:
ERROR: Macro USBINIT? not found in macro file.
ERROR: Macro USBSERVICE? not found in macro file.
ERROR: Macro USBOUT?CBCL not found in macro file.
These four macros are mentioned in the C:\PBP\USB18\USB.txt file but the significance eludes me. BTW, USB.txt contains some useful information on this subject, but I've yet to find my answer there.
You can get a similar message inside Microcode studio if you try to compile the program for a 16 series pic instead of an 18 series (18F2455). It should also be noted that USBJADEM demo exibits the same behavior.
Thanks for reading, I hope someone can solve this.