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.

URGENT : please help-MSPEXP430G2 Launchpad

I have got a MSP-EXP430G2-LaunchPad demo. and following the instruction of "Getting Started with the MSP430 LunchPad" to step 10. every thing looks cool to me. However, when I went to step 11, that I clicked "Build" button and watch the tools run in Console window. There are a lot error messages (in Red) as follows, I prety sure that I have not done anything wrong and changed any C program codes. I just pasted the Code from .txt to main.c and save it. Why have I had the following error messages, and how to fix them? Thanks 

CONSOLE WINDOW

**** Build of configuration Debug for project Temperature_Sense_Demo ****

C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all
'Building target: Temperature_Sense_Demo.out'
'Invoking: Linker'
"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/msp430/bin/
cl430" -vmsp -g -O0 --define=__MSP430G2231__ --diag_warning=225 --printf_support=minimal -z -m"Temperature_Sense_Demo.map" 
--stack_size=50 --heap_size=0 --warn_sections -i"C:/Program Files/Texas Instruments/ccsv4/msp430/include"
 -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/msp430/lib" 
-i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/msp430/include"
 --reread_libs --rom_model -o "Temperature_Sense_Demo.out"  "./main.obj" -l"libc.a" "
../lnk_msp430g2231.cmd" 
<Linking>

undefined first referenced
symbol in file
--------- ----------------
TA0CCR0 ./main.obj
TA0CCR1 ./main.obj
TA0CCTL0 ./main.obj
TA0CCTL1 ./main.obj
TA0CTL ./main.obj
TA0R ./main.obj

error: unresolved symbols remain
error: errors encountered during linking; "Temperature_Sense_Demo.out" not
built

>> Compilation failure
gmake: *** [Temperature_Sense_Demo.out] Error 1
gmake: Target `all' not remade because of errors.
Build complete for project Temperature_Sense_Demo
---------PROBLEMS WINDOW-------------------------

Severity and Description	Path	Resource	Location	Creation Time	Id
errors encountered during linking; "Temperature_Sense_Demo.out" not built Temperature_Sense_Demo line 0 1328248095677 45
unresolved symbol TA0CCR0, first referenced in ./main.obj Temperature_Sense_Demo line 0 1328248095675 39
unresolved symbol TA0CCR1, first referenced in ./main.obj Temperature_Sense_Demo line 0 1328248095675 40
unresolved symbol TA0CCTL0, first referenced in ./main.obj Temperature_Sense_Demo line 0 1328248095676 41
unresolved symbol TA0CCTL1, first referenced in ./main.obj Temperature_Sense_Demo line 0 1328248095676 42
unresolved symbol TA0CTL, first referenced in ./main.obj Temperature_Sense_Demo line 0 1328248095676 43
unresolved symbol TA0R, first referenced in ./main.obj Temperature_Sense_Demo line 0 1328248095677 44


  • Hi Salony,

    DId you import the example?  If so did you select "copy files into workspace" or not?  Which exact document where you following?  Is it something from the workshop posted on the wiki?

    Best Regards,
    Lisa

  • hi Lisa

    thanks for your reply.Actually the header file was wrong..

    now it is working. I am not comfortable with C programming on MSP430.I need to interface an IR(infrared ) 

    sensor.and I am unaware of the syntax like( P1OUT,BSCCTL3..etc )..so from where can i get information about these keywords..??

    thanks

  • Hi Salony,

    one of the best places for information on msps is usually the family user guide.   This should be the link for the G2231 and family.

    http://www.ti.com/litv/pdf/slau144i

    Glad to hear you found the issue.

    Best Regards,
    Lisa

  • Dear Lisa, 

    I am facing now with this problem, but I couldnt sort out where the problem pops from. I am working on EXP5438A board. I have created my own project with a simple sample code which actually works fine. I wanted to display the results on the LCD and so I have loaded necessary files from the user experience demo into my project. Result is this error.

    Severity and Description Path Resource Location Creation Time Id
    errors encountered during linking; "tryit.out" not built tryit line 0 1339297523953 455
    unresolved symbol fonts_lookup, first referenced in ./main.obj tryit line 0 1339297523953 454
    unresolved symbol fonts, first referenced in ./main.obj tryit line 0 1339297523953 453
    unresolved symbol GrayScale_fonts, first referenced in ./main.obj tryit line 0 1339297523953 452

    This error comes when I add the following instruction halLcdPrintXY(&lcdstring,0,0,OVERWRITE_TEXT); and this instruction is available in hal_lcd.c. But I have included this in the header file as #include "hal_lcd.c"

    I am thankful for any suggestions or help. 

    Best, 

    Vidya. 

  • Hi Vidya,

    CCS also needs to be able to find the header file.  This is why you are seeing the errors.  Have a look at this wiki topic, and fix and check your include options and paths.

    http://processors.wiki.ti.com/index.php/Include_paths_and_options

    Best Regards,
    Lisa

  • Lisa TI said:
    CCS also needs to be able to find the header file.

    Dear Lisa, 

    thanks for being supportive. Your post has helped. I found some missing definitions and I was able to sort it out. 

    Thanks a lot. :)

    Best regards, 

    Vidya. 

  • Hi Vidya,

    no problem, that's what we are here for.

    Please post any new questions or issues as a new post.  It helps us to give you faster and more efficient support.  I have split the thread for you this time.

    Best Regards,
    Lisa