View previous topic :: View next topic |
Author |
Message |
jchan
Joined: 27 Jan 2008 Posts: 2 Location: Texas/Oklahoma
|
"PCM" not installed on this pc |
Posted: Sun Jan 27, 2008 5:04 pm |
|
|
I am just beginning to learn to program MCUs. I bought the Microchip PICkit2 and installed the CCS plugin. I have tried compiling several different code files including the first timer file on the "code" page and keep getting the same error:
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\Documents and Settings\Boss\Desktop\Microcontroller\Examples\timer.ERR".
Clean Warning: File "C:\Documents and Settings\Boss\Desktop\Microcontroller\Examples\timer.o" doesn't exist.
Clean: Done.
Executing: "C:\Program Files\Microchip\Third Party\PICC\CCSC.EXE" "C:\Documents and Settings\Boss\Desktop\Microcontroller\Examples\timer.c" +FM +DF +LN +T -A +M +Z +Y=9 +EA
Error: The selected compiler: "PCM" is not installed on this PC
Halting build on first failure as requested.
BUILD FAILED: Sun Jan 27 16:43:06 2008
Has anyone else had this occur? Everything seems to be in order but I don't know what why I keep getting the '"PCM" is not installed' error. I've spent the last seven hours trying to get C to compile. Assembly isn't giving me any problems.
Also, I've seen quite a few books out there that teach C programming for the Microchip MCUs. Does anyone have a recommendation? I'm only finding 4-5 ratings on any of these books, and that's not enough to risk up to $85 on a book.
Thank you,
-Johnny _________________ -Johnny |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Jan 27, 2008 5:16 pm |
|
|
Are you trying to use the CCS compiler that comes included with MPLAB ?
I believe that's only the PCB compiler. It's for the older PICs, such as
16C54 and for newer (but low end) PICs such as the 12F509, 12F510, etc.
Here's the Microchip Pickit2 web page:
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en023805
It says:
Quote: | Features of PICkit 2 Starter Kit
Includes:
20-pin PIC16F690 midrange microcontroller
FREE! HI-TECH PICC™ LITE C Compiler (contained on the MPLAB CD)
FREE! CCS PCB™ Baseline C Compiler (contained on the MPLAB CD) |
You can't use the CCS PCB compiler with the 16F690. It looks like they
want you to use the Hi-Tech Picc-Lite compiler with that PIC. |
|
|
jchan
Joined: 27 Jan 2008 Posts: 2 Location: Texas/Oklahoma
|
Hi-Tech |
Posted: Sun Jan 27, 2008 8:43 pm |
|
|
Well that could definitely cause a problem. I went back in MPLAB and set it to Hi-Tech and everything seems to work. I must not understand the context for the hardware configuration used for the timer code I mentioned. Either way I was able to compile and write using MPLAB and read and write using the PICkit2 software.
Thanks a bunch! _________________ -Johnny |
|
|
DevilROCKS Guest
|
|
Posted: Wed Feb 06, 2008 3:01 pm |
|
|
You can use the CCS compiler that comes with the PICkit 2 CD. Note that it installs the PCM compiler into C:\Program Files\PICC\ directory where as the MPLAB installs it to C:\Program Files\Microchip\Third Party\PICC\. So u need to change the location of the compiler in your MPLAB IDE->Project->Select Language Toolsuite. |
|
|
|