Replies
Welcome, guest
Join CrazyEngineers to reply, ask questions, and participate in conversations.
CrazyEngineers powered by Jatra Community Platform
-
@cemember-PlqlWH • Jul 7, 2009
Hi reshmivg,reshmivgi am using ccs c compiler , but while building it is showing an internal error
Internal Error - Contact CCS OUTPUT FILE P
i am a beginner ....pls help me
Welcome to CE. ! Please itroduce yourself in following format #-Link-Snipped-# in CE-Introductions section. 😀
Is it possible for you to share the code and steps what all you followed before you see errors ?
Thanks ! -
@reshmivg-BTGLFY • Jul 7, 2009
hii
thank u for yr reply
n the c code s.......
#include<16f877a.h>
#fuses HS,NOLVP,NOWDT,PUT
#use delay(clock=20000000)
#use rs232(baud=9600,xmit=PIN_C6,rcv=PIN_C7)
void main() {
int i, value, min, max;
printf("Sampling:");
setup_adc_ports( RA0_ANALOG );
setup_adc( ADC_CLOCK_INTERNAL );
set_adc_channel( 0 );
do { //Takes 30 samples from pin A0
min = 255; //and displays the min and max
max = 0; //values for that 100ms period
for(i = 0; i <= 30; ++i) {
delay_ms(100);
value = read_adc();
if(value < min)
min = value;
if(value > max)
max = value;
}
printf("nrMin:%x MAX: %x", min, max);
} while (TRUE);
}
//this c code is from the example file itself.. there s no compilation error while compiling in ccs c .. but when i build in mplab its showing the error
Line 41(0,1): Internal Error - Contact CCS OUTPUT FILE P
but this pgm does not have line 41..
n i followed the steps such as
"project wizard ->(tool suit i selected) ->ccs c compiler for pic10/12/16....
and i include the "c source file" which i made in pcw(ccs c compiler).
n i dnt add any other files
but while building the header files included automatically
.....
my steps r correct ?????😕
thanks.... -
@harshad-ukH5ww • Jul 7, 2009
-
@reshmivg-BTGLFY • Jul 7, 2009
the last line is line 39 ( ending braces
line38:} while (TRUE);
line39:}
these are the last lines of this prgm....
-
@harshad-ukH5ww • Jul 7, 2009
-
@reshmivg-BTGLFY • Jul 7, 2009
i have reinstalled mplab8.3 and pcw 4.13
still showing the same error -
@reshmivg-BTGLFY • Jul 7, 2009
pls refer to the previous code....
i just put the last lines here... it is a do- while statement... not a while loop.....