![](templates/subSilver/images/CCSLogo.jpg) |
![CCS C Software and Maintenance Offers](templates/subSilver/images/forumAd6.jpg) |
View previous topic :: View next topic |
Author |
Message |
Michael Valencia Guest
|
One too many printf() statements cause compiler error: .cof |
Posted: Mon Jul 14, 2003 1:46 pm |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
Michael Valencia Guest
|
Re: One too many printf() statements cause compiler error: . |
Posted: Mon Jul 14, 2003 2:10 pm |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
water_river
Joined: 17 Feb 2004 Posts: 16
|
failed to load .cod file instead |
Posted: Tue Feb 17, 2004 10:49 pm |
|
|
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?? |
|
![](templates/subSilver/images/spacer.gif) |
|
|
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
|