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

    All .INC files comes with PBP disks. So chances are that you deleted it, renamed it or corrupted it. Delete the whole PBP directory, then reinstall your disk.

    Be sure you really have MPASM as it don't comes with PBP.

    Wich IDE are you using to compile your code??? MPLAB, MicroCode Studio, CodeDesigner ???

    if the problem persist do one of the following
    1. Post your code and much about what you use
    2. Do the rain dance, with a sweet pickle in your right ear, sing "Abba Dancing Queen", from the end to the begining then go outside naked and say loud "I'm an extra terrestrial comming directly from Tharg planet and i love eating humans"
    if the last work... i really want to see it
    Steve

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

  2. #2
    schwinn_rider's Avatar
    schwinn_rider Guest


    Did you find this post helpful? Yes | No

    Default

    OOPs

    it looks like my installation of the MPLab IDE was messed up. The "P18F453.INC" file should have come with it, I think. Will try fixing that.
    Last edited by schwinn_rider; - 24th September 2005 at 15:37.

  3. #3
    schwinn_rider's Avatar
    schwinn_rider Guest


    Did you find this post helpful? Yes | No

    Default rock! got it!

    ok, reinstalling MPLab did the trick. The program compiled and uploaded fine, except for these warnings from the compiler:

    Warning[230] C:\PBP\18F452.INC 20 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
    Warning[230] C:\PBP\18F452.INC 21 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
    Warning[230] C:\PBP\18F452.INC 22 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.

    But, whatever they mean, it works! Thanks for the help!

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

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

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

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