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


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2009
    Posts
    2

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

    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.

  2. #2
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Smile

    I think you have to change the file 18F4550.BAS in the PBP-path:

    Code:
    '****************************************************************
    '*  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 *--------------------*
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

  3. #3
    Join Date
    Mar 2009
    Posts
    2


    Did you find this post helpful? Yes | No

    Default

    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.


    PICBasicPRO.zip

    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)

  4. #4
    Join Date
    Oct 2009
    Posts
    2


    Did you find this post helpful? Yes | No

    Default

    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.
    Last edited by pbauman; - 21st October 2009 at 23:40. Reason: forgot the error messages

  5. #5


    Did you find this post helpful? Yes | No

    Default

    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...
    Last edited by comwarrior; - 22nd October 2009 at 01:26.

  6. #6


    Did you find this post helpful? Yes | No

    Default same but with 18f2455

    I have the same errors, but im using a 18f2455
    how would i fix this?

    thanks.

  7. #7


    Did you find this post helpful? Yes | No

    Default

    i just tried a 4450, with your modifications, and it still don't work.

Similar Threads

  1. Instant Interrupts - Revisited
    By Darrel Taylor in forum Code Examples
    Replies: 772
    Last Post: - 17th February 2016, 22:14
  2. PBPro error "Macro USBINIT? not found in macro file"
    By Bonxy in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th October 2011, 09:06
  3. ERROR: Macro MOD?TCB not found in macro file.
    By JohnP in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th February 2009, 19:10
  4. Error: macro COUNT?TCT nor found in macro file.
    By AMMOTT in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th November 2007, 05:05
  5. 18F452 "Unknown Processor" errors
    By schwinn_rider in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th April 2006, 03:56

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts