18F452 "Unknown Processor" errors


Closed Thread
Results 1 to 8 of 8

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Steve

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

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    In the latest version of MPASM the __CONFIG directive has been deprecated for PIC18 devices. MPASM now expects to see CONFIG followed by the list of options.

    The default config fuse directive in your PBP 18F device header files still use the old __CONFIG approach. It will still work (until Microchip makes it fail), but MPASM issues the warning to remind us to use the new CONFIG directive.

    This way;

    __CONFIG _CONFIG1H, _OSCS_OFF_1H & _XT_OSC_1H
    __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H
    __CONFIG _CONFIG4L, _LVP_OFF_4L

    Should now look like this;

    CONFIG OSCS=OFF,OSC=XT,WDT=ON,WDTPS=128,LVP=OFF

    Look in your MPLAB installation directory at device specific P18Fxxx.INC header files for fuse options available for the 18F part you're using.

    It's just a warning for now, and the old method still works, but I wouldn't be surprised if a new version of MPASM pops up one day and starts rejecting the older __CONFIG directive.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    schwinn_rider's Avatar
    schwinn_rider Guest


    Did you find this post helpful? Yes | No

    Default

    thanks bruce. i can see the rationale for the change.

  4. #4
    vaidyasp1's Avatar
    vaidyasp1 Guest


    Did you find this post helpful? Yes | No

    Default Query

    Do you mean to say that
    Q1 this statements should be copied into the code or the .inc file??
    Q2 and both works fine with mpasm??

    This way;

    __CONFIG _CONFIG1H, _OSCS_OFF_1H & _XT_OSC_1H
    __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H
    __CONFIG _CONFIG4L, _LVP_OFF_4L

    Should now look like this;

    CONFIG OSCS=OFF,OSC=XT,WDT=ON,WDTPS=128,LVP=OFF

Similar Threads

  1. Unable to pass a variable to LCDOUT without getting compile errors
    By Ferroto Baggins in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th February 2010, 16:43
  2. Compilation errors - strange
    By tetanus4 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th October 2009, 19:04
  3. Picbasic Pro Demo assembly errors
    By mikeRho in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 2nd January 2008, 06:41
  4. Pic 16 F877 to 18F452...?
    By turkuaz in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 31st October 2007, 15:54
  5. Microcode Studio Plus compile/assmebly errors
    By mikehagans in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th February 2006, 21:31

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