internal error +ccs c compiler

i 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

Replies

  • CEMember
    CEMember
    reshmivg
    i 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
    Hi reshmivg,

    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
    reshmivg
    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 Italiya
    Harshad Italiya
    try to reinstall compiler and MPLAB.

    and please make sure which is this line Line 41(0,1)?
  • reshmivg
    reshmivg
    the last line is line 39 ( ending braces
    line38:} while (TRUE);
    line39:}
    these are the last lines of this prgm....


  • Harshad Italiya
    Harshad Italiya
    Don't you think that there should be

    while(True)
    {

    }
  • reshmivg
    reshmivg
    i have reinstalled mplab8.3 and pcw 4.13
    still showing the same error
  • reshmivg
    reshmivg
    pls refer to the previous code....
    i just put the last lines here... it is a do- while statement... not a while loop.....

You are reading an archived discussion.

Related Posts

hi i wnt to kne some topics for programing in c
CEans, I personally know CEans who wear the CE T-Shirts in colleges & companies to promote CE. Few of us have gone out of the way to convince their friends/colleagues...
hi all, please specify ieee real time project topics.and im very much intrested in doing my project in image processing...
Can any one give me the download link for "Queueing systems for computer applications vol 2" by klienrock.... I need this book very urgently for my phd work.... Please help...😔.
Name: NIMISH PRABHU *Engineering Trade: Computer Location: Mumbai, India *Occupation: Student Work Experience: - *Hobbies & Interests: Hacking,Computer Games,Downloading latest stuffs around the net(though my slow net connection doesnt help...