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.

[参考译文] MSP430FR5969:使用 CCS (12.1.0)构建 MSP430FRBoot (1_03_00_00)

Guru**** 663810 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1285202/msp430fr5969-building-msp430frboot-1_03_00_00-with-ccs-12-1-0

器件型号:MSP430FR5969

您好!

我正在尝试构建"MSPBoot_FR5969_UART"项目、位于"MSP430FRBoot 1_03_00_00"软件包内(下载地址: https://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSP430FRBoot/latest/index_FDS.html)、但我遇到一些问题。

在尝试了很多错误之后,与一些 Google-Foo 一起,我已经能够达到这个地步:

-将包含项目的文件夹复制到我的工作区中 MSPBoot_FR5969_uart
-使用"File"->"Import"->"Code Composer Studio"->"CCS Projects"导入工程

但是、我现在遇到了以下没有那么大帮助的构建错误:



有关如何构建该项目的提示?

谢谢。
km

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我应该添加—似乎源文件编译成功(下面是完整的构建日志)、但"mi -> subdir_rules.mk" make 规则的某些内容导致了问题。

    谢谢。
    km

    **** Build of configuration BSLBased_20bit_UART for project MSPBoot_FR5969_UART ****
    
    "C:\\ti\\ccs1210\\ccs\\utils\\bin\\gmake" -k -j 8 all -O 
     
    Building file: "../boot.c"
    Invoking: MSP430 Compiler
    "C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/bin/cl430" -vmspx --data_model=restricted -O3 --use_hw_mpy=F5 --include_path="C:/ti/ccs1210/ccs/ccs_base/msp430/include" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART" --include_path="C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/include" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/AppMgr" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/Comm" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/MI" --advice:power=all --advice:hw_config=all --define=MSPBoot_20bit --define=MSPBoot_BSL --define=MSPBoot_CI_UART --define=__MSP430FR5969__ --define=_MPU_ENABLE -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="boot.d_raw"  "../boot.c"
    "../boot.c", line 145: remark #1538-D: (ULP 10.1) ISR _c_int00 calls function main_boot. Recommend moving function call away from ISR, or inlining the function, or using pragmas
    Finished building: "../boot.c"
     
    Building file: "../main.c"
    Invoking: MSP430 Compiler
    "C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/bin/cl430" -vmspx --data_model=restricted -O3 --use_hw_mpy=F5 --include_path="C:/ti/ccs1210/ccs/ccs_base/msp430/include" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART" --include_path="C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/include" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/AppMgr" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/Comm" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/MI" --advice:power=all --advice:hw_config=all --define=MSPBoot_20bit --define=MSPBoot_BSL --define=MSPBoot_CI_UART --define=__MSP430FR5969__ --define=_MPU_ENABLE -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"
    Finished building: "../main.c"
     
    Building file: "../AppMgr/Crc.c"
    Invoking: MSP430 Compiler
    "C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/bin/cl430" -vmspx --data_model=restricted -O3 --use_hw_mpy=F5 --include_path="C:/ti/ccs1210/ccs/ccs_base/msp430/include" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART" --include_path="C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/include" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/AppMgr" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/Comm" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/MI" --advice:power=all --advice:hw_config=all --define=MSPBoot_20bit --define=MSPBoot_BSL --define=MSPBoot_CI_UART --define=__MSP430FR5969__ --define=_MPU_ENABLE -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="AppMgr/Crc.d_raw" --obj_directory="AppMgr"  "../AppMgr/Crc.c"
    "../AppMgr/Crc.c", line 98: remark #1544-D: (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier
    "../AppMgr/Crc.c", line 152: remark #1544-D: (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier
    Finished building: "../AppMgr/Crc.c"
     
    Building file: "../AppMgr/TI_MSPBoot_AppMgr.c"
    Invoking: MSP430 Compiler
    "C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/bin/cl430" -vmspx --data_model=restricted -O3 --use_hw_mpy=F5 --include_path="C:/ti/ccs1210/ccs/ccs_base/msp430/include" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART" --include_path="C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/include" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/AppMgr" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/Comm" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/MI" --advice:power=all --advice:hw_config=all --define=MSPBoot_20bit --define=MSPBoot_BSL --define=MSPBoot_CI_UART --define=__MSP430FR5969__ --define=_MPU_ENABLE -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="AppMgr/TI_MSPBoot_AppMgr.d_raw" --obj_directory="AppMgr"  "../AppMgr/TI_MSPBoot_AppMgr.c"
    "../AppMgr/TI_MSPBoot_AppMgr.c", line 114: remark #1544-D: (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier
    "../AppMgr/TI_MSPBoot_AppMgr.c", line 118: remark #1544-D: (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier
    "../AppMgr/TI_MSPBoot_AppMgr.c", line 199: remark #1527-D: (ULP 2.1) Detected SW delay loop using __delay_cycles. Recommend using a timer module instead
    Finished building: "../AppMgr/TI_MSPBoot_AppMgr.c"
     
    Building file: "../Comm/PHY_DataLink/TI_MSPBoot_CI_PHYDL_USCI_UART.c"
    Invoking: MSP430 Compiler
    "C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/bin/cl430" -vmspx --data_model=restricted -O3 --use_hw_mpy=F5 --include_path="C:/ti/ccs1210/ccs/ccs_base/msp430/include" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART" --include_path="C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/include" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/AppMgr" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/Comm" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/MI" --advice:power=all --advice:hw_config=all --define=MSPBoot_20bit --define=MSPBoot_BSL --define=MSPBoot_CI_UART --define=__MSP430FR5969__ --define=_MPU_ENABLE -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="Comm/PHY_DataLink/TI_MSPBoot_CI_PHYDL_USCI_UART.d_raw" --obj_directory="Comm/PHY_DataLink"  "../Comm/PHY_DataLink/TI_MSPBoot_CI_PHYDL_USCI_UART.c"
    "../Comm/PHY_DataLink/TI_MSPBoot_CI_PHYDL_USCI_UART.c", line 284: remark #1528-D: (ULP 3.1) Detected flag polling using UCA1IFG. Recommend using an interrupt combined with enter LPMx and ISR
    Finished building: "../Comm/PHY_DataLink/TI_MSPBoot_CI_PHYDL_USCI_UART.c"
     
    Building file: "../Comm/NWK_APP/TI_MSPBoot_CI_NWK_APP_BSL_UART.c"
    Invoking: MSP430 Compiler
    "C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/bin/cl430" -vmspx --data_model=restricted -O3 --use_hw_mpy=F5 --include_path="C:/ti/ccs1210/ccs/ccs_base/msp430/include" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART" --include_path="C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/include" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/AppMgr" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/Comm" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/MI" --advice:power=all --advice:hw_config=all --define=MSPBoot_20bit --define=MSPBoot_BSL --define=MSPBoot_CI_UART --define=__MSP430FR5969__ --define=_MPU_ENABLE -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="Comm/NWK_APP/TI_MSPBoot_CI_NWK_APP_BSL_UART.d_raw" --obj_directory="Comm/NWK_APP"  "../Comm/NWK_APP/TI_MSPBoot_CI_NWK_APP_BSL_UART.c"
    "../Comm/NWK_APP/TI_MSPBoot_CI_NWK_APP_BSL_UART.c", line 252: remark #1544-D: (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier
    "../Comm/NWK_APP/TI_MSPBoot_CI_NWK_APP_BSL_UART.c", line 309: remark #2553-D: (ULP 14.1) Array index (involving "counter") of type "int". Recommend using "unsigned int"
    "../Comm/NWK_APP/TI_MSPBoot_CI_NWK_APP_BSL_UART.c", line 131: remark #1534-D: (ULP 7.1) Detected use of global variable "CI_Callback_s" within one function "TI_MSPBoot_CI_Init". Recommend placing variable in the function locally
    Finished building: "../Comm/NWK_APP/TI_MSPBoot_CI_NWK_APP_BSL_UART.c"
     
    Building file: "../MI/TI_MSPBoot_MI_FRAM.c"
    Invoking: MSP430 Compiler
    "C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/bin/cl430" -vmspx --data_model=restricted -O3 --use_hw_mpy=F5 --include_path="C:/ti/ccs1210/ccs/ccs_base/msp430/include" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART" --include_path="C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/include" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/AppMgr" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/Comm" --include_path="C:/Users/km/workspace_v12/MSPBoot_FR5969_UART/MI" --advice:power=all --advice:hw_config=all --define=MSPBoot_20bit --define=MSPBoot_BSL --define=MSPBoot_CI_UART --define=__MSP430FR5969__ --define=_MPU_ENABLE -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="MI/TI_MSPBoot_MI_FRAM.d_raw" --obj_directory="MI"  "../MI/TI_MSPBoot_MI_FRAM.c"
     
    >> Compilation failure
    MI/subdir_rules.mk:9: recipe for target 'MI/TI_MSPBoot_MI_FRAM.obj' failed
    "../MI/TI_MSPBoot_MI_FRAM.c", line 74: remark #1544-D: (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier
    gmake: *** [MI/TI_MSPBoot_MI_FRAM.obj] Error 1
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****
    

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    好—升级到21.6.0.LTS 编译器解决了问题!

    本该更深入地了解一下现有的论坛帖子。

    对不起误报。

    谢谢。
    卡坦