CrazyEngineers
  • internal error +ccs c compiler

    reshmivg

    reshmivg

    @reshmivg-BTGLFY
    Updated: Oct 25, 2024
    Views: 1.4K
    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
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • CEMember

    MemberJul 7, 2009

    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 !
    Are you sure? This action cannot be undone.
    Cancel
  • reshmivg

    MemberJul 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....
    Are you sure? This action cannot be undone.
    Cancel
  • Harshad Italiya

    MemberJul 7, 2009

    try to reinstall compiler and MPLAB.

    and please make sure which is this line Line 41(0,1)?
    Are you sure? This action cannot be undone.
    Cancel
  • reshmivg

    MemberJul 7, 2009

    the last line is line 39 ( ending braces
    line38:} while (TRUE);
    line39:}
    these are the last lines of this prgm....


    Are you sure? This action cannot be undone.
    Cancel
  • Harshad Italiya

    MemberJul 7, 2009

    Don't you think that there should be

    while(True)
    {

    }
    Are you sure? This action cannot be undone.
    Cancel
  • reshmivg

    MemberJul 7, 2009

    i have reinstalled mplab8.3 and pcw 4.13
    still showing the same error
    Are you sure? This action cannot be undone.
    Cancel
  • reshmivg

    MemberJul 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.....
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register