View previous topic :: View next topic |
Author |
Message |
aasief
Joined: 12 Feb 2009 Posts: 12 Location: cape town
|
Problem generating coff files |
Posted: Tue Feb 17, 2009 12:22 pm |
|
|
Hey
I have a problem with generating cof files. When I build the code using CCS in mplab, the build succeeds and it notifies me that the cof file has been saved in the folder specified. But the file isn't there.
Can somebody please help. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Feb 17, 2009 12:47 pm |
|
|
It should be there.
1. Post your CCS compiler version.
2. Post your MPLAB version.
3. Post your PIC.
3. Post a small test program that you're compiling to show the problem.
Here is an example of a small test program:
Code: |
#include <16F877.H>
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock = 4000000)
//===================================
void main()
{
while(1)
{
output_high(PIN_B0); // Blink LED on pin B0
delay_ms(500);
output_low(PIN_B0);
delay_ms(500);
}
} |
|
|
|
aasief
Joined: 12 Feb 2009 Posts: 12 Location: cape town
|
|
Posted: Tue Feb 17, 2009 2:54 pm |
|
|
Im using ccs 4.038 i think
mplab v8.10
pic16f877a
Theres nuthn rong with the code because ive generated the exact same code before and it worked fine
But i reloaded windows today,and reinstalled all my software and since then I cant c any coff or hex files that ive loaded before as well
[/code] |
|
|
aasief
Joined: 12 Feb 2009 Posts: 12 Location: cape town
|
|
Posted: Tue Feb 17, 2009 2:57 pm |
|
|
Im using ccs 4.038 i think
mplab v8.10
pic16f877a
Theres nothing wrong with the code because I've generated the exact same code before and it worked fine.
But I reloaded windows today, and reinstalled all my software and since then I can't see any coff or hex files that I've loaded before as well.
This is what the output says:
Quote: |
Clean: Deleting intermediary and output files.
Clean: Deleted file "tem.ESYM".
Clean Warning: File "G:\Programing projects\temperature controller\tem.o" doesn't exist.
Clean: Deleted file "tem.HEX".
Clean: Deleted file "tem.LST".
Clean: Deleted file "tem.PJT".
Clean: Deleted file "tem.ERR".
Clean: Deleted file "tem.COF".
Clean: Deleted file "G:\Programing projects\temperature controller\tempcon.mcs".
Clean: Done.
Executing: "C:\Program files\Picc\CCSC.exe" +FM "tem.c" +DF +LN +T +A +M +Z +Y=9 +EA
>>> Warning 203 "G:\Programing projects\temperature controller\tem.c" Line 37(1,1): Condition always TRUE
Memory usage: ROM=43% RAM=16% - 23%
0 Errors, 1 Warnings.
Loaded G:\Programing projects\temperature controller\tem.cof.
BUILD SUCCEEDED: Sat Jan 17 22:10:34 2009
|
But the coff and hex files are not in that specified folder. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Feb 17, 2009 3:36 pm |
|
|
Your whole problem is then a re-installation problem. Something didn't
work correctly during that process. I notice you're using a "G" drive
and a "C" drive. That's probably part of the problem. I can't really
help too much more. My advice is to return everything to a baseline
installation, which is: All files on the C drive, in the c:\Program Files\Picc
directory and sub-directories. |
|
|
aasief
Joined: 12 Feb 2009 Posts: 12 Location: cape town
|
Solved it |
Posted: Tue Feb 17, 2009 3:57 pm |
|
|
Thanx alot,i solved it. Was a silly problem really....Windows was automatically giving the same file extension to different types of files.It was telling me that everything was a C object file.So I had to manually assign file types.
Thanx |
|
|
|