View previous topic :: View next topic |
Author |
Message |
Douglas Richard
Joined: 08 Sep 2003 Posts: 49 Location: Concord NH
|
Issue switching between version 3.* and 4.* |
Posted: Fri Oct 23, 2009 7:55 am |
|
|
I have been using 4.093 "PCH" for a while with no problems. I have some older code that I would like to make some changes to and compile with 3.249. I reload the old compiler, try to compile and I get this error
Error: The selected compiler: "PCM" is not installed on this PC. First off I am not using the PCM compiler (I am using the PCH). Second I have done this before and had no issue. I tried placing the 3.249 in another folder and get the same error. Anyone have a clue as to what is happening? I would really like to compile this in 3.249.
Thanks,
Doug |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Fri Oct 23, 2009 9:49 am |
|
|
I would try a re-install of the 3.249
First rename folder that holds 4.xx to PICC_new
Then reinstall 3.249 I think it will put it in c:\program files\PICC
Then try to re-compile. You didn't say if your using the IDE.
I just use the command line compile. |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Fri Oct 23, 2009 9:53 am |
|
|
I switch compiler versions all the time and have no problems.
But, I had some problems when the path to the compiler was different from the default installation path. So what I did from then on was to always have the active compiler in a directory named "Drive letter:\Program Files\PICC"
The actual drive letter can be anything.
On switching versions I rename the current compiler directory name to something like "PICC 3.249" and rename the version directory I want to use from "PICC 4.077" --> "PICC"
Crude, but works for me and I'm too lazy to look further into it. |
|
|
Douglas Richard
Joined: 08 Sep 2003 Posts: 49 Location: Concord NH
|
|
Posted: Fri Oct 23, 2009 10:02 am |
|
|
I am using the command line compiler. Tried dumping the compiler in the default folder and still have the same issue. |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Fri Oct 23, 2009 10:11 am |
|
|
And you have copied the valid registration files to this directory? (pcb.crg, pcm.crg and/or pch.crg)
I just tried: the registration files you use for v4.xxx are also valid for v3.249 when you copy them to this directory. |
|
|
Douglas Richard
Joined: 08 Sep 2003 Posts: 49 Location: Concord NH
|
|
Posted: Fri Oct 23, 2009 10:18 am |
|
|
No I am not sure if I am using the proper pch.crg file. I have used several versions of the .crg file that I have and all have the same results. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Oct 23, 2009 10:53 am |
|
|
1. Post your version of Windows.
2. What is your version of MPLAB ? (I assume you're using MPLAB).
3. Go to the Configure menu in MPLAB and look at the setting
for the PIC. What PIC is selected ?
4. Go to the Project menu in MPLAB, and then to the Select Language
Toolsuite menu. What is the setting ? Is there more than one
setting available for CCS ? What are they ? |
|
|
Douglas Richard
Joined: 08 Sep 2003 Posts: 49 Location: Concord NH
|
|
Posted: Fri Oct 23, 2009 12:25 pm |
|
|
running windows xp. not using MPlab to compile (just dragging and dropping the file onto the ccsc.exe. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Oct 23, 2009 2:18 pm |
|
|
I installed PCH vs. 3.249 and dragged a .c source file onto it.
It works OK for me. |
|
|
Douglas Richard
Joined: 08 Sep 2003 Posts: 49 Location: Concord NH
|
|
Posted: Mon Oct 26, 2009 1:54 pm |
|
|
OK here was the issue. In the command line I added +FH. My c files now compile with PCH 3.249.
Kind of funny though. I have never used +FH before this week (I have always left it out and was able to compile with 3.249 or 4.093 with no problems). |
|
|
|