Try to Compile 18F4550 Macro missing


Closed Thread
Results 1 to 8 of 8
  1. #1
    Denicou's Avatar
    Denicou Guest

    Default Try to Compile 18F4550 Macro missing

    I am trying to compile USBMOUSE.BAS using Microstudio and PICBASIC PRO 2.47. for 18F4550
    This is an example inside thz USB18 directory of PBP247
    I got error messages ERROR: LABEL?L not found in macro file. Same message for CMPGT?BCL, BRANCH?BCL, BRGOTO?L ......
    It's look like to me that a library is missing. But unable to find the PB by myself.
    Who can help me ???? Tnks Michel

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    weird, it's compile just fine here. Make sure PBP folder is listed in your system environment path, make sur you select the right PIC in the drop menu and try to re-install PBP cd and reboot your system.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Denicou's Avatar
    Denicou Guest

    Smile

    Thanks Steve......You gave me the right way to think.... Now it's working of course using MPASM as assembler and inhex32.
    Have a good chrismas time Michel

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    Bienvenue,
    de tres joyeuses fête a toi aussi.

    Bonne chance!
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257

    Default

    Steve,

    Just trying to compile the usb demo program with MCS and mpasm (Inhex32)

    but get errors caused by the config fuses...

    the errors I get are all the same....

    __CONFIG directives cannot be used with CONFIG directives

    Any idea what these are and how to fix them?

    Cheers
    Squib

  6. #6
    Join Date
    Jan 2007
    Posts
    70

    Default

    you probably checked this, but if you leave the stock __config lines in the 18f4550.inc, the stock 20mhz config fuses will conflict with the specific 4mhz config fuses in USBDemo.bas.

    I just fought with this ******* for like 10 hours, and it turned out to probably have been non-standard USB wire colors! I got frustrated, cut another cable with bizarre colors, and had to figure it out with a meter.. worked first time i hooked up that cable...

    dont trust anything!
    robert.

  7. #7
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257

    Default

    Yeah found some useful info about the config fuses in the FAQ section. LOL

  8. #8
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    Already posted elsewhere but anyways. If you don't have v2.47 and you want to disable the MPASM CONFIG deprecated plah plah, make sure your LIST line in the .INC file looks like this...
    Code:
            LIST p = 18F4550, r = dec, w = -311, w = -230, f = inhx32
    Yeah... all default config lines must be commented as well.

    I still don't understand why there's any default ones anyways...
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Fail to compile, COD file missing
    By Jumper in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th June 2009, 17:20
  2. Replies: 2
    Last Post: - 10th July 2006, 01:05
  3. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th December 2005, 23:30
  4. Compile errors within macro....
    By forgie in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 5th September 2005, 19:08
  5. 18F4550 compile error
    By sean-h in forum USB
    Replies: 2
    Last Post: - 28th August 2005, 21:27

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