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 CCS Technical Support

One too many printf() statements cause compiler error: .cof

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







One too many printf() statements cause compiler error: .cof
PostPosted: Mon Jul 14, 2003 1:46 pm     Reply with quote

Micro: PIC 18F442

Shortly after reset, I decided to do a "#use RS232...", and printed out 7 lines of text using a "printf()". All is well if I have 6 printf statements, BUT on my 7th printf() function call, I get the MPLAB (or is that a CCS error) that says, "Failed to load C:\my_path\my_file.cof

And when I try to execute it anyways, my target seems to freeze at that line.

Can someone shed some light into this problem?
Thanks,
Mike
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515969
Michael Valencia
Guest







Re: One too many printf() statements cause compiler error: .
PostPosted: Mon Jul 14, 2003 2:10 pm     Reply with quote

Okay, in MPLAB, I tried right-clicking on the .c file and changing "build options" from "COFF" to "NONE". This seems to have fixed the problem, at least I don't get the failure error message anymore.

But does someone know why this would be a problem?
-Mike
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515970
water_river



Joined: 17 Feb 2004
Posts: 16

View user's profile Send private message

failed to load .cod file instead
PostPosted: Tue Feb 17, 2004 10:49 pm     Reply with quote

When I did what you have done, ie, right clicking the c file and changing the debug option, it said "failed to load .cod file" instead.
Strange. Anyone knows why??
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