Try to Compile 18F4550 Macro missing


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    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

  2. #2
    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.

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

    Default

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

  4. #4
    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 : 0

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