View previous topic :: View next topic |
Author |
Message |
jensen1d
Joined: 08 Apr 2005 Posts: 5
|
CCS demo and PCM conflict |
Posted: Fri Jul 29, 2005 9:44 pm |
|
|
I had the PCWH demo running in MPLAB 7.0 with ICD2 and PICDEM2+ and it worked well.
but then demo expired ...
I then wanted to run various 14 bit and PIC 18 parts so I bought the PCM and PCH compilers. I thought I could just add the toolsuites and specify them when I created a project.
So I installed PCM first....
Now when I try to compile a 14 bit program (ex_sqw.c) I get demo out of date error message. I tried installing PCM to another directory but it seems the damage has been done.
The CD doesn't seem to detect that the demo was there and installs thinking the PCM compiler is the only toolsuite.
I'd prefer not to do to a full reinstall of everything because getting ICD2 working with MPLAB and CCS-PCWH demo was *not* easy.
I've tried installing PCM to another directory (PICC_PCM) but the compiler doesn't show up in the toolsuite options.
I've tried directing the (default?) "CCS C compiler" toolsuite to the PICC_PCM directory but I still can't compile. In fact the Debug menu doesn't even show Compile as an option....
I"ve tried rerunning the MPLAB plugin utility to point to the PICC_PCM directory but that didn't make any difference..
I don't want to use the PCM Windows program (i get a "demo out of date error" anyway...).
I just want MPLAB to run the PCM compiler.
I then want to install the PCW for the pic18 compiler but Im beginning to wonder if MPLAB can't have more than one toolsuite from CCS....
My questions:
How do I get the PCM compiler working with MPLAB 7.0?
Could I reinstall the PCWH demo and PCM to have the PIC18
compilation working*
Would the PCM and PCH compilers both work in MPLAB ?
If so, how do I get PCM and PCH working together in MPLAB?
Oddly, the demo still works if I set the clock back.
For the record, I don't want to run the demo past its expiry date as a matter of principle but I can't get the software I paid for to work....
Any help would be greatly appreciated. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Jul 29, 2005 10:42 pm |
|
|
I would lose the fixation with the demo and wipe it completely off the
system.
You didn't give your exact version of MPLAB. If you really have vs. 7.00
then un-install it and get the latest version and install it. I'm using 7.20.
1. Un-install the PCWH demo.
Caution: Make sure you have the PCM.CRG and PCH.CRG
files saved in a safe place before you do this.
I recall that un-installing the demo also DELETES your
.CRG license files. CCS doesn't check to see if the
license files are for the demo or for your own copies
of PCM and PCH. It just deletes them.
Make sure you have the .CRG files saved in a safe place.
2. Right-click on the Start button and run Explorer.
Locate the PCWH demo folder and delete it.
3. Un-install PCM and PCH. Then delete their folders.
Caution: Make sure you have the PCM.CRG and PCH.CRG
files saved in a safe place before you do this.
4. Re-install PCM and PCH in their proper directory, which is:
C:\Program Files\PICC\
5. Copy the PCM.CRG and PCH.CRG files from the CCS email
(that's how I get them) to C:\Program Files\PICC\
6. Download the latest MPLAB plugin from CCS at this link:
http://www.ccsinfo.com/mplab-ccs-plugin-install.exe
Download it into this directory: C:\Program Files\PICC\
Then run it.
7. Start MPLAB and go to the Project menu. Go to the menu for
"Set Language Tool Locations". Find the entry which say:
"CCS C Compiler for PIC 12/14/16/18"
Verify that the location for the Executables is:
C:\Program Files\PICC\Ccsc.exe
When you go to the Project Wizard in MPLAB to make a new project, and
you get to the screen to select a language toolsuite, make sure that you
select: "CCS C Compiler for PIC 12/14/16/18"
If necessary, check the box which says "Show all Installed Toolsuites".
If you still have problems, then go to the Start button in Windows,
and click Run and run regedit, and search for all PCW keys and delete
them. I don't think that will be necessary. |
|
|
jensen1d
Joined: 08 Apr 2005 Posts: 5
|
It works. |
Posted: Sat Jul 30, 2005 11:32 am |
|
|
PCM Programmer,
I followed your instructions and the PCM,PCH compilers are now working with MPLAB 7.2 and the Microchip ICD2.
Thank you very much for the help! |
|
|
|