missing P18F14K22.INC file?


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156

    Default missing P18F14K22.INC file?

    Went to try to compile a program for the 18F14K22 and it doesn't compile. Says the P18F14K22.inc file is missing (which it is). Downloaded ver 5.20 from melabs, and it isn't there either.

    Anybody know which version it is in, or where to get it?

  2. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    If you have PBP 2.60, you can use MpLab IDE 8.20 or later. Otherwise, you are stuck with 8.15a.

    That chip is in MpLab IDE v 8.50, and I think it is at least in 8.46, although it might be in some earlier ones as well. You can download v 8.56 from Microchip here: http://www.microchip.com/stellent/id...9469#P171_5058

    Or the archives, here: http://www.microchip.com/stellent/id...cName=en023073
    http://www.scalerobotics.com

  3. #3
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Unhappy

    Don't really know anything about MPLABS. Guess I'd better see how it works! Do you use it as a stand-alone assembler then?

    Thanks
    Last edited by circuitpro; - 18th September 2010 at 18:03.

  4. #4
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    To compile PicBasic commands, PicBasic uses it's own .inc files (which all start with 18Fxxx.inc or whatever chip you are using), located in the PBP directory. If you peek inside them, they reference Microchip's .inc files (which all start with something like P18Fxxx.inc or something like that). The Microchip inc files tell Mpasm how to assemble the code. The microchip files are also usefull because at the bottom of the file, you can see all your config options. If PBP is giving you errors that it can not fine a PxxFxx.INC file, then it is talking about the microchip files (generated by installing mplab ide). Depending on which version you have, it may not have some of the newer chips. Microchip .inc files should be in the c:/program files/microchip/mpasm suite/ directory.

    PBP earlier than version 2.60, requires you to stay with Mplab IDE v8.15a. Which will be missing a few chips.

    Walter
    http://www.scalerobotics.com

  5. #5
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Default

    I erased my previous version of MPASM, downloaded version 5.20 from melabs, and installed it. I test compiled a previous project, and all looks okay. I then downloaded MPLABS (latest version), and installed it. I looked in the folders, and found a 'P18F14K22.INC' file. (the one I was originally missing). I copied that file into my new MPASM folder. Now when I try to compile using PBP, I no longer get a message saying it was unable to locate a 'P18F14K22.INC' file, but I get this:

    Error[132] c:\(path)\pbp\18f14k22.inc 18: Unknown processor (18F14K22)
    Message[301] c:\(path)\mpasm\p18f14k22.inc 33: MESSAGE: (Processor-header file mismatch. Verify selector processor.)
    Error[131] c:\(path)\pbp\18f14k22.inc 20: Processor type is undefined
    .
    .
    .
    What does THIS mean?

    Len

  6. #6
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by circuitpro View Post
    I erased my previous version of MPASM, downloaded version 5.20 from melabs, and installed it. I test compiled a previous project, and all looks okay. I then downloaded MPLABS (latest version), and installed it. I looked in the folders, and found a 'P18F14K22.INC' file. (the one I was originally missing). I copied that file into my new MPASM folder.
    If you are using Micro Code Studio, try pointing it to the c:/program files/microchip/mpasm suite/

    Name:  compiler-options.PNG
Views: 628
Size:  16.1 KB
    that should be where your new MPlab IDE files installed.
    http://www.scalerobotics.com

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