PDA

View Full Version : missing P18F14K22.INC file?



circuitpro
- 18th September 2010, 01:48
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?

ScaleRobotics
- 18th September 2010, 05:50
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/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en019469#P171_5058

Or the archives, here: http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en023073

circuitpro
- 18th September 2010, 17:45
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

ScaleRobotics
- 18th September 2010, 18:12
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

circuitpro
- 18th September 2010, 22:14
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

ScaleRobotics
- 19th September 2010, 01:18
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/

4795
that should be where your new MPlab IDE files installed.