PDA

View Full Version : ERROR: Macro USBINIT?,USBSERVICE?,USBIN?CBBL ,USBOUT?CBBL not found in macro file.



Bachra
- 21st March 2009, 12:51
Hello !!
I`m new to Pic Basic Pro, I have MicroStudio version 3.0.0 and Pic Basic Pro Version 2.47.
I used Easy HID to generate a project for Pic18F4550 and Delphi for the PC side, but when i compile the USBProject.pbp, I receive the errors listed bellow,
I tried to change the folder location, but same results:

ERROR: Macro USBINIT? not found in macro file.
ERROR: Macro USBSERVICE? not found in macro file.
ERROR: Macro USBIN?CBBL not found in macro file.
ERROR: Macro USBOUT?CBBL not found in macro file.

The topic is discussed in various forum, but the solutions were only to change folder location which I already tested, with no + result.

Best regards.

BigWumpus
- 22nd March 2009, 20:55
I think you have to change the file 18F4550.BAS in the PBP-path:



'************************************************* ***************
'* 18F4550.BAS *
'* *
'* By : Leonard Zerman, Jeff Schmoyer *
'* Notice : Copyright (c) 2004 microEngineering Labs, Inc. *
'* All Rights Reserved *
'* Date : 12/31/04 *
'* Version : 2.46 *
'* Notes : *
'************************************************* ***************

BANKA $0000, $005F
BANK0 $0060, $00FF
BANK1 $0100, $01FF
BANK2 $0200, $02FF
BANK3 $0300, $03FF
BANK4 $0400, $04FF
BANK5 $0500, $05FF
BANK6 $0600, $06FF
BANK7 $0700, $07FF
'EEPROM $F00000, $F000FF
'LIBRARY "PBPPIC18"
LIBRARY "PBPUSB18"

include "PIC18EXT.BAS"

PORTL VAR PORTB
PORTH VAR PORTC
TRISL VAR TRISB
TRISH VAR TRISC

include "PBPPIC18.RAM"

'*-----------------------* EOF 18F4550.BAS *--------------------*

Bachra
- 23rd March 2009, 06:05
Thanks for your reply,
I did the changes recommended, and the error regarding Macros disappear, but I received new ones such the examples bellow.
Here attached the SW I`m trying to compile with no success, it`s exactly the one generated by EasyHID.
Thanks & Best regards.


3264

Errors example
FATAL ERROR: Too many errors. (21)
ERROR Line 12: Redefinition of VAR. (PIC18EXT.BAS)
ERROR Line 13: Redefinition of VAR. (PIC18EXT.BAS)
ERROR Line 14: Redefinition of VAR. (PIC18EXT.BAS)
ERROR Line 15: Redefinition of VAR. (PIC18EXT.BAS)

pbauman
- 21st October 2009, 23:37
I know this topic has been beaten to death on these forums, but I cannot get it to work. When I try to compile the USBProject, I get these same errors. Are there files that I might be missing, even though I have all the files from the zip file above in the same folder.

ERROR: Macro USBINIT? not found in macro file.
ERROR: Macro USBSERVICE? not found in macro file.
ERROR: Macro USBIN?CBBL not found in macro file.
ERROR: Macro USBOUT?CBBL not found in macro file.


Any help would be appreciated!

Thanks.

comwarrior
- 22nd October 2009, 01:22
hi Bachra,
I have PBP2.47 at the moment and i've been digging through all the pbp files for the pic18, so i may have a solution...

Do what BigWumpus has said...
Then open PIC18EXT.BAS in notepad and comment out lines 12 through 15 (assuming your "Redefinition of VAR" errors are with those new lines)

Basically, my understanding is that the error "Redefinition of VAR" error is that it's tried to create the same variable name twice, so, you only need one...

Now try to compile and hopefully it's just an oversight that those variables have been defined twice...

shadowlight
- 4th November 2009, 09:57
I have the same errors, but im using a 18f2455
how would i fix this?

thanks.

shadowlight
- 4th November 2009, 13:36
i just tried a 4450, with your modifications, and it still don't work.