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 msp430 compiler linker problem it does not recognise msp430.h

Other Parts Discussed in Thread: MSP430G2553

**** Build of configuration Debug for project matanbattery ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Invoking: MSP430 Compiler'
"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.4/bin/cl430" -vmsp --abi=eabi -Ooff --use_hw_mpy=none --include_path="C:/ti/ccsv6/ccs_base/msp430/include" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.4/include" --advice:power="all" -g --relaxed_ansi --float_operations_allowed=all --gen_acp_xref --program_level_compile --define=__MSP430G2553__ --verbose_diagnostics --diag_warning=225 --display_error_number --diag_wrap=off --printf_support=minimal -k --src_interlist --asm_listing --output_all_syms --asm_includes  "../matabat2.c"  
<Generating>
<Interlisting>
<Assembling>
'Finished building: matabat2.obj'
' '
'Building target: matanbattery.out'
'Invoking: MSP430 Linker'
"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.4/bin/cl430" -vmsp --abi=eabi -Ooff --use_hw_mpy=none --advice:power="all" -g --relaxed_ansi --float_operations_allowed=all --gen_acp_xref --program_level_compile --define=__MSP430G2553__ --verbose_diagnostics --diag_warning=225 --display_error_number --diag_wrap=off --printf_support=minimal -k --src_interlist --asm_listing --output_all_syms --asm_includes -z -m"matanbattery.map" --heap_size=80 --stack_size=80 -i"C:/ti/ccsv6/ccs_base/msp430/include" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.4/lib" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.4/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="matanbattery_linkInfo.xml" --use_hw_mpy=none --rom_model -o "matanbattery.out" "matabat2.obj"  "../lnk_msp430g2553.cmd"  -l"libc.a"
<Linking>
"C:\\Users\\user1\\AppData\\Local\\Temp\\015683", line 27: error #10008-D: cannot find file "matabat2.obj"
matabat2.obj
warning #10211-D: cannot resolve archive C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.4/lib/libc.a to a compatible library, as no input files have been encountered; build attribute information from input files is needed to determine library compatibility
fatal error #10009: no input files
gmake: *** [matanbattery.out] Error 1
gmake: Target `all' not remade because of errors.

>> Compilation failure

**** Build Finished ****

  • Hi,

    The header file is being properly recognized, but I found out that the .obj files are not being generated.

    Upfront I can tell you the option --asm_includes is causing this (I tested it here with an example project), but I am moving this thread to the compiler forum and deferring the explanation to the compiler experts.

    Regards,
    Rafael
  • The option --asm_includes is to be used only with assembly files, as denoted by the file extension .asm.  Please do not use it with C files.

    Thanks and regards,

    -George