View previous topic :: View next topic |
Author |
Message |
Gabriel
Joined: 03 Aug 2009 Posts: 1067 Location: Panama
|
Recent project no longer compiling... Urgent - Solved!!! |
Posted: Fri Dec 06, 2013 2:24 pm |
|
|
Hi guys,
I'm having an emergency...
I developed a project about 2 months ago, it was working perfectly fine.
I have not touched the project since... i compiled today again to program the board for a demonstration and the project does not compile.
Please help... its probably something dumb I'm overlooking
G. _________________ CCS PCM 5.078 & CCS PCH 5.093
Last edited by Gabriel on Mon Dec 09, 2013 10:04 am; edited 1 time in total |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9221 Location: Greensville,Ontario
|
|
Posted: Fri Dec 06, 2013 3:59 pm |
|
|
Ah the 'joys' of computers.....
My 'guess' is that the path has changed during the past 2 months ?
What does the error message say ?
Can other programs created at the same time compile?
We need more info to be more help....
Jay |
|
|
asmboy
Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
|
|
Posted: Sat Dec 07, 2013 10:31 am |
|
|
&&
what is the error ?? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Dec 07, 2013 12:08 pm |
|
|
He doesn't really want an answer. His need was immediate. He had
some demo due in one hour. The crisis is over. He had to postpone
the demo, most likely. This type of post is a cry of frustration, more
than anything else. |
|
|
Gabriel
Joined: 03 Aug 2009 Posts: 1067 Location: Panama
|
|
Posted: Sun Dec 08, 2013 7:50 am |
|
|
Actually, I do want an answer.
I did have to postpone the demo, which sucked since ive been after this proyect since February, 3 prototypes already demoed...
I have not yet solved the problem, and suggestions are still welcomed.
So my crisis is not over.
Ive not come back to the issue until today for a variety of personal reasons, national holidays(mothers day), and miscellaneous prior engagements due to my recent engagement.
I believe Temtronixs diagnose is most likely the cause.
Im going to make a project from scratch and see if that fixes the path problem.
Im going to post the errors later today... tomorrow is a holiday here as well so i have today and tomorrow to solve this.
Desperate? Frustration? Yes... when you have 8 months of work and a couple of grand of investment fail on demo day you want to die...
G. _________________ CCS PCM 5.078 & CCS PCH 5.093 |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19498
|
|
Posted: Sun Dec 08, 2013 8:10 am |
|
|
As a comment, if you have the original downloaded install file. then try re-installing into another directory (or backing up the current install, and re-installing from scratch).
Is it possible the files have been 'touched' by another version of the compiler since?.
Are you using the IDE version, or command line version?.
CCS, creates a .pjt file when you first open a new 'main' (with V5, a ccspjt file). If you do a compile with V5, the original pjt file gets destroyed and has to be re-created. The file contains details of 'where' the include files, and driver files are to be fetched from. I suggest deleting the pjt file (or ccspjt if you are on v5), then launching the compiler, and selecting the primary source file. Then select 'options', and 'include files', and delete the entries here if they are wrong, and re-create them.
Is there any possibility the core permissions on the OS have been changed in the time gap?. Assuming you are installing into the 'Program Files' location, CCS requires write permission to here. There were some changes to group policies affecting this, in a Microsoft update about 6 weeks ago. Wouldn't normally affect a 'home' setup, but on more complex setups, might change things.
Best Wishes |
|
|
newguy
Joined: 24 Jun 2004 Posts: 1907
|
|
Posted: Sun Dec 08, 2013 11:28 am |
|
|
I've had this happen a few times before. I just deleted the .pjt file, then reopened the main/master .c file and hit compile. CCS then generates a new .pjt file and will successfully (in my case anyway) compile the project. I should state that I don't use the linker, as this may make a difference. I've done this quite a few times with v3.xxx and I think once or twice with v4.xxx.
You can also try manually editing the .pjt file with a good editor (ultraedit works for me). |
|
|
Gabriel
Joined: 03 Aug 2009 Posts: 1067 Location: Panama
|
|
Posted: Mon Dec 09, 2013 10:03 am |
|
|
Ok, So problem solved.
Indeed it was the path. I have no idea how this happened but its been a learning experience.
I deleted the .pjt file and that had no effect.
It was searching for drivers in the "driver" default folder. instead of my project folder... obviously nothing worked.
As a temporary solution i just moved my drivers to the driver folder.
For future reference, how can i limit my driver search path to only where i want it to be?
I'm using both PCM and PCH as described in my footer, and MPLAB 8.85 with PCM and MPLAB 8.92 with PCH
First time this has ever happened.
Thank you all for your support.
G. _________________ CCS PCM 5.078 & CCS PCH 5.093 |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19498
|
|
Posted: Mon Dec 09, 2013 10:38 am |
|
|
The first part of this, is "" versus <>.
This is the distinction between these two syntaxes for include files. If you use "" the search should always start in the directory where the main file is found. If you use <> the route is 'implementation defined' (for CCS, the paths in the PJT file.
You can add any paths you want to the PJT file - including the one the project is in if you want.
Best Wishes |
|
|
|