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 support@ccsinfo.com

MPlab crg file error

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







MPlab crg file error
PostPosted: Mon Jan 26, 2009 4:42 am     Reply with quote

I try to compile a file from mplab but Every time I tyry to do they give error message that is damaged crg file.
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

Re: MPlab crg file error
PostPosted: Mon Jan 26, 2009 11:00 am     Reply with quote

philip wrote:
I try to compile a file from mplab but Every time I tyry to do they give error message that is damaged crg file.


It may be looking in the wrong directory. For example. Let's say you have two different CCS compilers installed on your machine that may have been purchased at different time. Say you have PCH ver 3.x (PIC18) and PCD (PIC24, dsPIC). If you load a CCS project into MPLAB and start to compile it, the CCS compiler may see you are using a different compiler instance from the last time you compiled a CCS project and it will ask which one you want to use. If you pick the wrong one, then it will give you a crg file error.

To recover from this, in MPLAB goto the Projects tab, select the "Set Language Tool Locations" and point to the correct directory for the compiler you are using.

Make sure you have the correct crg file in the same directory as the compiler you are using.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
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