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.

CCS v5.5.0.00077 for msp430 windows7 32bit

Other Parts Discussed in Thread: MSP430G2955, MSP430WARE, CCSTUDIO

i am trying to compile a c program using CCS for msp430g2955

the c program uses #include  msp430.h which in turn contains an #include msp430g2955.h

which contains all the defines for the chip's registers

i get compilation errors the compiler does not recognize any regiter

i do not get a message saying that the file was not found i have appended the complete path to the above file

moreover i have placed the contents of the msp430g2955.h file before the main program thus the compiler sees only one file with no includes and i am seeing the same result

  • Hi,

    Are you using the sample codes or your custom ones? Download MSP430Ware, it will have all the sample codes to try out.

    Regards,

    Gautam

  • thanks

    i have used an example project it does not compile due to errors reported in my post

  • Can you paste the screenshots of the errors you're experiencing?

  • Thank you

    Ezra

    **** Build of configuration Debug for project msp430g2x55_1 ****

     

    "C:\\ccs7\\ccsv5\\utils\\bin\\gmake" -k all

    'Building target: msp430g2x55_1.out'

    'Invoking: MSP430 Linker'

    "C:/ccs7/ccsv5/tools/compiler/msp430_4.2.1/bin/cl430" -vmsp --abi=eabi --advice:power=all -g --define=__MSP430G2955__ --diag_warning=225 --display_error_number --diag_wrap=off --printf_support=minimal -z -m"msp430g2x55_1.map" --heap_size=80 --stack_size=80 -i"C:/ccs7/ccsv5/ccs_base/msp430/include" -i"C:/ccs7/ccsv5/tools/compiler/msp430_4.2.1/lib" -i"C:/ccs7/ccsv5/tools/compiler/msp430_4.2.1/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="msp430g2x55_1_linkInfo.xml" --rom_model -o "msp430g2x55_1.out"  "./msp430g2x55_1.obj" -l"libc.a"

    <Linking>

    remark #10371-D: (ULP 1.1) Detected no uses of low power mode state changes using LPMx or _bis_SR_register() or __low_power_mode_x() in this project.

    warning #10247-D: creating output section ".stack" without a SECTIONS specification

     

     undefined first referenced  

      symbol       in file       

     --------- ----------------  

     P1DIR     ./msp430g2x55_1.obj

     P1OUT     ./msp430g2x55_1.obj

     WDTCTL    ./msp430g2x55_1.obj

     

    error #10234-D: unresolved symbols remain

    error #10010: errors encountered during linking; "msp430g2x55_1.out" not built

    remark #10372-D: (ULP 4.1) Detected uninitialized Port 2 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.

    remark #10372-D: (ULP 4.1) Detected uninitialized Port 3 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.

    remark #10372-D: (ULP 4.1) Detected uninitialized Port 4 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.

     

    >> Compilation failure

    gmake: *** [msp430g2x55_1.out] Error 1

    gmake: Target `all' not remade because of errors.

     

    **** Build Finished ****

     

  • Ezra Haim-Choumla said:

    'Invoking: MSP430 Linker'

    "C:/ccs7/ccsv5/tools/compiler/msp430_4.2.1/bin/cl430" -vmsp --abi=eabi --advice:power=all -g --define=__MSP430G2955__ --diag_warning=225 --display_error_number --diag_wrap=off --printf_support=minimal -z -m"msp430g2x55_1.map" --heap_size=80 --stack_size=80 -i"C:/ccs7/ccsv5/ccs_base/msp430/include" -i"C:/ccs7/ccsv5/tools/compiler/msp430_4.2.1/lib" -i"C:/ccs7/ccsv5/tools/compiler/msp430_4.2.1/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="msp430g2x55_1_linkInfo.xml" --rom_model -o "msp430g2x55_1.out"  "./msp430g2x55_1.obj" -l"libc.a"

    Your command line is missing the linker command file lnk_msp430g2955.cmd.

    For instance, my build command looks like this:

    'Invoking: MSP430 Linker'

    "C:/CCStudio_v5.5.0.00077/ccsv5/tools/compiler/msp430_4.2.3/bin/cl430" -vmsp --abi=eabi --advice:power=all -g --define=__MSP430G2955__ --diag_warning=225 --display_error_number --diag_wrap=off --printf_support=minimal -z -m"msp430g2x55_1.map" --heap_size=80 --stack_size=80 --cinit_hold_wdt=on -i"C:/CCStudio_v5.5.0.00077/ccsv5/ccs_base/msp430/include" -i"C:/CCStudio_v5.5.0.00077/ccsv5/tools/compiler/msp430_4.2.3/lib" -i"C:/CCStudio_v5.5.0.00077/ccsv5/tools/compiler/msp430_4.2.3/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="msp430g2x55_1_linkInfo.xml" --rom_model -o "msp430g2x55_1.out" "./msp430g2x55_1.obj" "../lnk_msp430g2955.cmd" -l"libc.a"

    Not sure why it is missing, because if you had created the project using Resource Explorer the linker .cmd file should have been added automatically. You can try recreating the project again using Resource Explorer or manually copy this .cmd file into your project (it can be found in \ccsv5\ccs_base\msp430\include folder within the CCS installation).

  • thank you

    it was done automatically so i wander how  and why it happened i will try it  in 10 hours that is 18/06 10:00 my time

  • thank you

    there is no need for manual enter properties general advanced and add the linker command file
    Ezra