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

Problem generating coff files

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



Joined: 12 Feb 2009
Posts: 12
Location: cape town

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

Problem generating coff files
PostPosted: Tue Feb 17, 2009 12:22 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Feb 17, 2009 12:47 pm     Reply with quote

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

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

PostPosted: Tue Feb 17, 2009 2:54 pm     Reply with quote

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

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

PostPosted: Tue Feb 17, 2009 2:57 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Feb 17, 2009 3:36 pm     Reply with quote

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

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

Solved it
PostPosted: Tue Feb 17, 2009 3:57 pm     Reply with quote

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
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