This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

getting error in ccs while compilation

Other Parts Discussed in Thread: MSP430F249, MSP430G2453

Hi,

                i am getting the below errors while compiling my code in ccs v5.0. I thought that these are linking error how can i come out of it any one help me..

Description Resource Path Location Type
#10008-D cannot rfreader line 36, external location: C:\Users\pc\AppData\Local\Temp\059483 C/C++ Problem

undefined first referenced
symbol in file
--------- ----------------

BCSCTL1 ./main.obj 

CALBC1_1MHZ ./main.obj
CALDCO_1MHZ ./main.obj
DCOCTL ./main.obj
IE2 ./UART.obj
IFG2 ./UART.obj
P1DIR ./main.obj
P1OUT ./main.obj
P1REN ./main.obj
P2DIR ./main.obj
P2OUT ./main.obj
P3DIR ./main.obj
P3OUT ./main.obj
P3SEL ./UART.obj
P4DIR ./main.obj
P4OUT ./main.obj
P6DIR ./main.obj
P6OUT ./main.obj
TACCR0 ./Timer.obj
TACCTL0 ./Timer.obj
TACTL ./Timer.obj
UC1IE ./UART.obj
UC1IFG ./UART.obj
UCA0BR0 ./UART.obj
UCA0BR1 ./UART.obj
UCA0CTL1 ./UART.obj
UCA0MCTL ./UART.obj
UCA0RXBUF ./UART.obj
UCA1BR0 ./UART.obj
UCA1BR1 ./UART.obj
UCA1CTL1 ./UART.obj
UCA1MCTL ./UART.obj
UCA1RXBUF ./UART.obj
UCA1TXBUF ./UART.obj
WDTCTL ./main.obj

thanks....


  • You probably did not include the header file that defines these things.

  • hi

      i include the #include <msp430F249.h> at top my program...

  • Do you have a header file by that name?

    And if so, is it in the search-path of the compiler you are using?

  • old_cow_yellow said:
    You probably did not include the header file that defines these things.

    Then the compiler would complain about undefined symbols.

    It rather looks like the project contains an old linker script from an older compiler version. The linker script is copied to the project on project creation.
    While this is a good idea if someone needs to change the script, e.g. to define own sections, it causes problems if the script has undergone serious changes.

    In this case, it seems that the definitions in the header files (new) do not match the liker script content (old).

    Originally, the header files defined the MSP-specific memory locations for module registers. But IIRC this has changed recently. Now the header file only define the existence of these registers, while the actual locations are set in the linker script. This allows more generic header files (e.g. all MSPs with a TIMERB can include the same TIMERB.H definitions)

    If this is the reason, then copy the new linker script form the IDE installation folder into your project folder (keep a copy of the original one)
    Alternatively start a new project and import the source code/copy the project settings manually.

  • Hi

        i am getting these error while compiling my code in my system,but when i compile same code in another system it getting compiled.....i thought that this might be problem with my C:drive....

    please clarify me what is the problem.....    

    Description Resource Path Location Type
    #10008-D cannot rf_gateway line 24, external location: C:\Users\pc\AppData\Local\Temp\023403 C/C++ Problem

  • hi

           the below problem i am getting while compiled my code

    >> Compilation failure

    #10008-D: cannot    find file "../lnk_msp430g2453.cmd"

**Attention** This is a public forum