View previous topic :: View next topic |
Author |
Message |
curiousaboutcircuits85
Joined: 08 Apr 2010 Posts: 13
|
CCS Support has been horrible, i need someone else's help |
Posted: Thu Apr 08, 2010 5:52 pm |
|
|
My ccs c compiler simply stopped compiling. I am not even sure what I did, but the build keeps failing even with codes that have compiled before. This is what I get with no matter what codes I use.
Quote: |
Executing: "C:\Program Files\PICC\Ccsc.exe" +FM "..\Codes that worked!\RFIDtestwithoutoutputdrive.c" #__DEBUG=true +ICD +DF +LN +T
+A +M +Z +Y=9 +EA #__16F877A=TRUE
BUILD FAILED: Wed Mar 31 12:46:48 2010
|
No matter what, even with codes that have compiled before, it keeps giving me this error. I am using MPLAB plugin to compile from there. Anybody have this problem before? Thanks |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Apr 08, 2010 6:19 pm |
|
|
Try compiling the simple test program shown below. What happens ?
Post your compiler version.
Quote: |
..\Codes that worked!\RFIDtestwithoutoutputdrive.c
|
Also, I noticed you're using complicated pathnames.
I suggest that you get rid of those and use something simple.
Code: |
#include <16F877.H>
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock = 4000000)
//=============================
void main()
{
while(1)
{
output_high(PIN_B0);
delay_ms(500);
output_low(PIN_B0);
delay_ms(500);
}
} |
|
|
|
curiousaboutcircuits85
Joined: 08 Apr 2010 Posts: 13
|
hello |
Posted: Sun Apr 11, 2010 4:36 pm |
|
|
thank you for your input. I tried that and i still get build failed
Executing: "C:\Program Files (x86)\PICC\Ccsc.exe" +FM "..\simplecode.c" #__DEBUG=true +ICD +DF +LN +T +A +M +Z +Y=9 +EA #__16F877A=TRUE
BUILD FAILED: Sun Apr 11 17:35:19 2010
do you have any other suggestions?
thanks |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Apr 11, 2010 4:53 pm |
|
|
Quote: |
I am not even sure what I did, but the build keeps failing even
with codes that have compiled before.
|
If the compiler worked previously on the same computer, and now it
fails, then re-install the compiler. |
|
|
curiousaboutcircuits85
Joined: 08 Apr 2010 Posts: 13
|
|
Posted: Sun Apr 11, 2010 7:35 pm |
|
|
Thank you, I reinstalled for the 7th time, and it's starting to work correctly. I am not sure what the problem was. Thank you for your help. |
|
|
KaraMuraT
Joined: 16 May 2006 Posts: 65 Location: Ankara/Turkey
|
|
Posted: Wed Apr 14, 2010 3:49 am |
|
|
I have a solution for such situations, but it's not a complete one.
In this "it was working but not working right now, even if I didn't do anything" situation I'm changing the Debug Output Type. I'm doing this in MPLab, and don't know how to change it in CCS IDE.
Go to Project/Build Options/Project Menu. Within the opened window select "CCS C Compiler" tab. In the Debug group box usually the output format is selected as COFF. Change it to "Expanded COD Format". Then click OK.
This will change the compiler attribute from "+DF" to "+DC" if you are compiling your code with console.
I know this is a bug, but don't know what causes it.
Hope this helps... _________________ /// KMT
/// www.muratursavas.com |
|
|
|