CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

CCS-MPLAB Plugin

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Barney



Joined: 18 Oct 2004
Posts: 41
Location: Newark, CA

View user's profile Send private message

CCS-MPLAB Plugin
PostPosted: Mon Sep 12, 2005 3:33 pm     Reply with quote

I have been using MPLAB 7.21 & PCM 3.212 with no problems. I just installed PCH 3.233 into another directory (PCM & PCH are different versions) and MPLAB doesn't see the CCS tool suite anymore.

Do I just need to re-install the plug-in?

Is the plug-in version sensitive to either MPLAB or the CCS compiler?

Thanks
MikeValencia



Joined: 04 Aug 2004
Posts: 238
Location: Chicago

View user's profile Send private message Send e-mail Yahoo Messenger

PostPosted: Mon Sep 12, 2005 3:40 pm     Reply with quote

Yes, you have to re-install the plug-in. It will prompt you for the new directory.

Everytime a new version of CCS gets released, then i re-install the plug-in into that specific directory each time.
Barney



Joined: 18 Oct 2004
Posts: 41
Location: Newark, CA

View user's profile Send private message

PostPosted: Mon Sep 12, 2005 4:06 pm     Reply with quote

OK, got past that hurdle, then Grrrrrrr.

I complied a short program and got:


    Clean: Deleting intermediary and output files.
    Clean: Deleted file "C:\Documents and Settings\mcabeflusc\My Documents\18FSerial\18FSerial.mcs".
    Clean: Done.
    Executing: "C:\Program Files\PCH\PICC\Ccsc.exe" "18FSerial.c" +FH +DF +LN +T -A +M +Z +Y=9 +EA
    Error: The selected compiler: "PCH" is not installed on this PC
    Halting build on first failure as requested.
    BUILD FAILED: Mon Sep 12 14:52:01 2005


I had just installed PCH into a separate directory (Programs\PCH\PICC) which maybe confusing it.

Suggestions?
MikeValencia



Joined: 04 Aug 2004
Posts: 238
Location: Chicago

View user's profile Send private message Send e-mail Yahoo Messenger

PostPosted: Mon Sep 12, 2005 5:22 pm     Reply with quote

I've had the same problem "PCH not installed..."

It's because you forgot to put the "pch.crg" file in the directory before you installed PCH.

So here are the steps i usually follow:
Suppose the version is PCH 3.230

1. Create a folder C:\Program Files\PICC_3_230\
2. Create a subfolder C:\Program Files\PICC_3_231\PICC\
3. Copy your registration file "pch.crg" to both directories above. (I'm not sure which directory the installation uses, so i copy pch.crg into both).
4. Install PCH into the directory of '2' above.
5. Install the Plug-In into the directory of Step '2' above.
Barney



Joined: 18 Oct 2004
Posts: 41
Location: Newark, CA

View user's profile Send private message

PostPosted: Mon Sep 12, 2005 6:47 pm     Reply with quote

Still no joy. I didn't see why the pch.crg file had to be present BEFORE installing, so I just copied if from the PICC directory up to the PCH directory. Same problem.

Then I tried a fresh install following your procedure step by step. I copied pch.crg from the CDROM to both directories before installing PCH. Same failure:


    Clean: Deleting intermediary and output files.
    Clean: Deleted file "18FSerial.ERR".
    Clean Warning: File "C:\Documents and Settings\mcabeflusc\My Documents\18FSerial\18FSerial.o" doesn't exist.
    Clean: Deleted file "C:\Documents and Settings\mcabeflusc\My Documents\18FSerial\18FSerial.mcs".
    Clean: Done.
    Executing: "C:\Program Files\PCH\PICC\Ccsc.exe" "18FSerial.c" +FH +DF +LN +T -A +M +Z +Y=9 +EA
    Error: The selected compiler: "PCH" is not installed on this PC
    Halting build on first failure as requested.
    BUILD FAILED: Mon Sep 12 17:43:20 2005


Rebooted the PC and tried compiling again, same failure.

Suggestions?
MikeValencia



Joined: 04 Aug 2004
Posts: 238
Location: Chicago

View user's profile Send private message Send e-mail Yahoo Messenger

PostPosted: Mon Sep 12, 2005 7:30 pm     Reply with quote

Oh i think I see why.

You are attempting to execute ccsc.exe from C:\Program Files\PICC\

but the proper ccsc.exe file resides in C:\Program Files\PICC_3_230\PICC\

To correct this, go to MPLAB,and use the pulldown menu to correct your 'language toolsuite':

Project --> Select Language Toolsuite
Use the 'browse' button to correct the directory from where you're pulling off ccsc.exe

I think that should take care of it.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Mon Sep 12, 2005 8:38 pm     Reply with quote

Barney wrote:
Still no joy. I didn't see why the pch.crg file had to be present BEFORE installing, so I just copied if from the PICC directory up to the PCH directory. Same problem.

Then I tried a fresh install following your procedure step by step. I copied pch.crg from the CDROM to both directories before installing PCH. Same failure:


    Clean: Deleting intermediary and output files.
    Clean: Deleted file "18FSerial.ERR".
    Clean Warning: File "C:\Documents and Settings\mcabeflusc\My Documents\18FSerial\18FSerial.o" doesn't exist.
    Clean: Deleted file "C:\Documents and Settings\mcabeflusc\My Documents\18FSerial\18FSerial.mcs".
    Clean: Done.
    Executing: "C:\Program Files\PCH\PICC\Ccsc.exe" "18FSerial.c" +FH +DF +LN +T -A +M +Z +Y=9 +EA
    Error: The selected compiler: "PCH" is not installed on this PC
    Halting build on first failure as requested.
    BUILD FAILED: Mon Sep 12 17:43:20 2005


Rebooted the PC and tried compiling again, same failure.

Suggestions?


It should be in the PICC dir.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Mon Sep 12, 2005 8:38 pm     Reply with quote

MikeValencia wrote:
Oh i think I see why.

You are attempting to execute ccsc.exe from C:\Program Files\PICC\

but the proper ccsc.exe file resides in C:\Program Files\PICC_3_230\PICC\

To correct this, go to MPLAB,and use the pulldown menu to correct your 'language toolsuite':

Project --> Select Language Toolsuite
Use the 'browse' button to correct the directory from where you're pulling off ccsc.exe

I think that should take care of it.


"Executing: "C:\Program Files\PCH\PICC\Ccsc.exe" "18FSerial.c" +FH +DF +LN +T -A +M +Z +Y=9 +EA
"
That's where he said that he installed it.
Barney



Joined: 18 Oct 2004
Posts: 41
Location: Newark, CA

View user's profile Send private message

PostPosted: Tue Sep 13, 2005 9:51 am     Reply with quote

Well, I had to get something going. I renamed my original \PICC folder (with PCM compiler) to \PCM and installed PCH into a new \PICC directory. Then I installed the plug-in and reset the project tool location in my 18F project to \PICC. It works.

I am guessing I will have to have a PCM and a PCH directory and rename the one I want to use to PICC then reinstall the plug in and probably reset the tool path each time I switch from 16F to 18F parts.

Having PCM & PCH co-existing on the same PC with MPLAB seems like a pretty typical setup. Why does CCS make it so damn hard?
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Tue Sep 13, 2005 11:25 am     Reply with quote

Here are a couple of options:

1. Upgrade PCM to the same version and install into the same directory.
2. Search the forum for a post I did a few months back telling how to do this by creating a legacy third party tool suite. It requires a few bits of registry hacking but it works for me. I use it to compile with different versions of PCM compiler.
Barney



Joined: 18 Oct 2004
Posts: 41
Location: Newark, CA

View user's profile Send private message

PostPosted: Tue Sep 13, 2005 9:39 pm     Reply with quote

Appreciate the suggestions. I researched this issue before buying PCH and found your post with the registry changes. Frankly it is a little more than I want to bite off. For now I will be doing 90% PCM and 10% PCH, so hopefully I won't need to switch back and forth too often.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group