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.

MSP430FR2311: 编译报错 !!!!让人头大

Part Number: MSP430FR2311


**** Build of configuration Debug for project EHSI_LRF215C_GPT ****

"D:\\TI\\CCS1240\\ccs\\utils\\bin\\gmake" -k -j 8 all -O

Building file: "../main.c"
Invoking: MSP430 Compiler
"D:/TI/CCS1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/bin/cl430" -vmspx --use_hw_mpy=none --include_path="D:/TI/CCS1240/ccs/ccs_base/msp430/include" --include_path="D:/TI/Workspace/EHSI_LRF215C_GPT" --include_path="D:/TI/CCS1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/include" --advice:power=all --advice:hw_config=all --define=__MSP430FR2311__ -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"

>> Compilation failure
subdir_rules.mk:9: recipe for target 'main.obj' failed
"../main.c", line 80: remark #1528-D: (ULP 3.1) Detected flag polling using ADCIFG. Recommend using an interrupt combined with enter LPMx and ISR
"../main.c", line 91: remark #1528-D: (ULP 3.1) Detected flag polling using UCA0IFG. Recommend using an interrupt combined with enter LPMx and ISR
"../main.c", line 112: warning #176-D: expression has no effect
"../main.c", line 112: remark #1544-D: (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier
"../main.c", line 110: remark #1535-D: (ULP 8.1) variable "Checksum" is used as a constant. Recommend declaring variable as either 'static const' or 'const'
"../main.c", line 172: remark #2553-D: (ULP 14.1) Array index (involving "dataIndex") of type "int". Recommend using "unsigned int"

INTERNAL ERROR: D:\TI\CCS1240\ccs\tools\compiler\ti-cgt-msp430_21.6.1.LTS\bin\acpia430.exe experienced a segmentation fault
while processing function (unknown or file scope) file (unknown) line 0

This is caused by a defect in the TI EABI C/C++ Parser.
TI Customer Support may be able to suggest a workaround to avoid this.

Upgrading to the newest version of the compiler may fix this problem.

Contact TI in the E2E support forums at http://e2e.ti.com under
"Development Tools", "TI C/C++ Compiler". See the link titled
"Submitting an issue".

We need to see this ENTIRE error message and a complete, reproducible
test case including ALL of the command-line options.
Include the .pp file created by option --preproc_with_comment

gmake: *** [main.obj] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • 麻烦大佬指点一下,感激不尽

  • 看报错的是让你使用最新版本的编译器,请尝试一下。

    另外你的工程是TI的例程吗?如果不是的话可以尝试使用TI的例程来编译看看有没有问题。

  • TI例程跑过没有问题,我前版本程序编译也没有问题,现在程序也不报错,但是就是编译不过:


    **** Build of configuration Debug for project EHSI_LRF215C_GPT ****

    "D:\\TI\\CCS1240\\ccs\\utils\\bin\\gmake" -k -j 8 all -O

    Building file: "../main.c"
    Invoking: MSP430 Compiler
    "D:/TI/CCS1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/bin/cl430" -vmspx --use_hw_mpy=none --include_path="D:/TI/CCS1240/ccs/ccs_base/msp430/include" --include_path="D:/TI/Workspace/EHSI_LRF215C_GPT" --include_path="D:/TI/CCS1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/include" --advice:power=all --advice:hw_config=all --define=__MSP430FR2311__ -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"

    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'main.obj' failed
    "../main.c", line 80: remark #1528-D: (ULP 3.1) Detected flag polling using ADCIFG. Recommend using an interrupt combined with enter LPMx and ISR
    "../main.c", line 91: remark #1528-D: (ULP 3.1) Detected flag polling using UCA0IFG. Recommend using an interrupt combined with enter LPMx and ISR
    "../main.c", line 112: warning #176-D: expression has no effect

    INTERNAL ERROR: D:\TI\CCS1240\ccs\tools\compiler\ti-cgt-msp430_21.6.1.LTS\bin\acpia430.exe experienced a segmentation fault
    while processing function (unknown or file scope) file (unknown) line 0

    This is caused by a defect in the TI EABI C/C++ Parser.
    TI Customer Support may be able to suggest a workaround to avoid this.

    Upgrading to the newest version of the compiler may fix this problem.

    Contact TI in the E2E support forums at http://e2e.ti.com under
    "Development Tools", "TI C/C++ Compiler". See the link titled
    "Submitting an issue".

    We need to see this ENTIRE error message and a complete, reproducible
    test case including ALL of the command-line options.
    Include the .pp file created by option --preproc_with_comment

    gmake: *** [main.obj] Error 1
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****



  • 是否方便分享下程序我这边调试一下。