asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
Re: MPlab crg file error |
Posted: Mon Jan 26, 2009 11:00 am |
|
|
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!! |
|