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/MSP430F5659: Error : cannot find file "MSP430F5659.cmd" && unresolved symbol CRCINIRES, first referenced in <whole-program>

Part Number: MSP430F5659


Tool/software: Code Composer Studio

Hello everyone,

I am working on customizing boot loader for msp430f5659 referring from these links:-

http://www.ti.com/lit/an/slaa600d/slaa600d.pdf

http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPBoot/latest/index_FDS.html

I have generated code as mentioned in the user's guide , but while compiling it throws some errors : -

Kindly Help me to solve this issue..!

Regards,

Renjith

  • Hello Renjith,

    Could you please provide more detail as far as what example project from the MSPBoot 2_00_00_01 library you are working off of and what customizations you've made? I presume that the example project built properly out of box so it might be beneficial to retrace your steps to see what change or manipulation caused the build errors.

    Best regards,

    Matt
  • Hi matt,

    I  generated bootloader and application source files for msp430f5659 using MSPBootProjectCreator.pl (perl application).

    This is the command i used for generating code :-

    "perl MSPBootProjectCreator.pl -hdr msp430f5659.h -lnk_file lnk_msp430f5659.cmd -UART".


    i got these outputs from the above command:-

    MSPBootProjectCreator.pl V1.0
    Texas Instruments Inc 2017
    Device: MSP430F5659
    Application: 0x8000-0xF7FF & 0x10000-0x87FFF
        App_code: 0x8000-0xF701
        Proxy_table: 0xF702-0xF7FD
        App_Reset_Vector: 0xF7FE-0xF7FF
        Flex_code: 0x10000-0x87FFF
    Bootloader Area: 0xF800-0xFFFF
        Boot_code: 0xF800-0xFF79
        Shared_Vectors: 0xFF7A-0xFF7F
        Interrupt_Vectors: 0xFF80-0xFFFD
        Reset_Vector: 0xFFFE-0xFFFF

    After importing the project to the CCS i also deleted the default linker command file from each project.

    when i compile the project i got that errors, this was the steps i followed.

    I am attaching  generated project also:-

    MSPBoot_F5659_UART_Single_Img.zip

    console log :-

    **** Build of configuration Debug for project MSPBoot_F5659_UART_Single_Img ****
    
    /home/vkchlt0087/ti/ccsv8/utils/bin/gmake -k -j 4 all -O 
     
    Building file: "../boot.c"
    Invoking: MSP430 Compiler
    "/home/vkchlt0087/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/bin/cl430" -vmspx --data_model=large --near_data=none -O4 --opt_for_speed=0 --use_hw_mpy=F5 --include_path="/home/vkchlt0087/ti/ccsv8/ccs_base/msp430/include" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/AppMgr" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/MI" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm/PHY_DataLink" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm/NWK_APP" --include_path="/home/vkchlt0087/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/include" --advice:power="all" --define=__MSP430F5659__ -g --printf_support=minimal --diag_suppress=70 --diag_suppress=770 --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 142: 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: "../AppMgr/TI_MSPBoot_VecRed_F5659_Boot.c"
    Invoking: MSP430 Compiler
    "/home/vkchlt0087/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/bin/cl430" -vmspx --data_model=large --near_data=none -O4 --opt_for_speed=0 --use_hw_mpy=F5 --include_path="/home/vkchlt0087/ti/ccsv8/ccs_base/msp430/include" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/AppMgr" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/MI" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm/PHY_DataLink" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm/NWK_APP" --include_path="/home/vkchlt0087/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/include" --advice:power="all" --define=__MSP430F5659__ -g --printf_support=minimal --diag_suppress=70 --diag_suppress=770 --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_VecRed_F5659_Boot.d_raw" --obj_directory="AppMgr"  "../AppMgr/TI_MSPBoot_VecRed_F5659_Boot.c"
    Finished building: "../AppMgr/TI_MSPBoot_VecRed_F5659_Boot.c"
     
    Building file: "../main.c"
    Invoking: MSP430 Compiler
    "/home/vkchlt0087/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/bin/cl430" -vmspx --data_model=large --near_data=none -O4 --opt_for_speed=0 --use_hw_mpy=F5 --include_path="/home/vkchlt0087/ti/ccsv8/ccs_base/msp430/include" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/AppMgr" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/MI" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm/PHY_DataLink" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm/NWK_APP" --include_path="/home/vkchlt0087/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/include" --advice:power="all" --define=__MSP430F5659__ -g --printf_support=minimal --diag_suppress=70 --diag_suppress=770 --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/TI_MSPBoot_AppMgr.c"
    Invoking: MSP430 Compiler
    "/home/vkchlt0087/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/bin/cl430" -vmspx --data_model=large --near_data=none -O4 --opt_for_speed=0 --use_hw_mpy=F5 --include_path="/home/vkchlt0087/ti/ccsv8/ccs_base/msp430/include" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/AppMgr" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/MI" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm/PHY_DataLink" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm/NWK_APP" --include_path="/home/vkchlt0087/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/include" --advice:power="all" --define=__MSP430F5659__ -g --printf_support=minimal --diag_suppress=70 --diag_suppress=770 --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"
    Finished building: "../AppMgr/TI_MSPBoot_AppMgr.c"
     
    Building file: "../AppMgr/crc.c"
    Invoking: MSP430 Compiler
    "/home/vkchlt0087/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/bin/cl430" -vmspx --data_model=large --near_data=none -O4 --opt_for_speed=0 --use_hw_mpy=F5 --include_path="/home/vkchlt0087/ti/ccsv8/ccs_base/msp430/include" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/AppMgr" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/MI" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm/PHY_DataLink" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm/NWK_APP" --include_path="/home/vkchlt0087/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/include" --advice:power="all" --define=__MSP430F5659__ -g --printf_support=minimal --diag_suppress=70 --diag_suppress=770 --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/TI_MSPBoot_AppMgr.c", line 166: remark #1527-D: (ULP 2.1) Detected SW delay loop using __delay_cycles. Recommend using a timer module instead
    "../AppMgr/crc.c", line 96: 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: "../MI/TI_MSPBoot_MI_Flash_20Bit.c"
    Invoking: MSP430 Compiler
    "/home/vkchlt0087/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/bin/cl430" -vmspx --data_model=large --near_data=none -O4 --opt_for_speed=0 --use_hw_mpy=F5 --include_path="/home/vkchlt0087/ti/ccsv8/ccs_base/msp430/include" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/AppMgr" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/MI" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm/PHY_DataLink" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm/NWK_APP" --include_path="/home/vkchlt0087/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/include" --advice:power="all" --define=__MSP430F5659__ -g --printf_support=minimal --diag_suppress=70 --diag_suppress=770 --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_Flash_20Bit.d_raw" --obj_directory="MI"  "../MI/TI_MSPBoot_MI_Flash_20Bit.c"
    "../Comm/PHY_DataLink/TI_MSPBoot_CI_PHYDL_USCI_UART.c", line 258: remark #1528-D: (ULP 3.1) Detected flag polling using UCTXIFG. Recommend using an interrupt combined with enter LPMx and ISR
    Finished building: "../MI/TI_MSPBoot_MI_Flash_20Bit.c"
     
    Building file: "../Comm/PHY_DataLink/TI_MSPBoot_CI_PHYDL_USCI_UART.c"
    Invoking: MSP430 Compiler
    "/home/vkchlt0087/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/bin/cl430" -vmspx --data_model=large --near_data=none -O4 --opt_for_speed=0 --use_hw_mpy=F5 --include_path="/home/vkchlt0087/ti/ccsv8/ccs_base/msp430/include" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/AppMgr" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/MI" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm/PHY_DataLink" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm/NWK_APP" --include_path="/home/vkchlt0087/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/include" --advice:power="all" --define=__MSP430F5659__ -g --printf_support=minimal --diag_suppress=70 --diag_suppress=770 --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"
    Finished building: "../Comm/PHY_DataLink/TI_MSPBoot_CI_PHYDL_USCI_UART.c"
     
    Building file: "../Comm/NWK_APP/TI_MSPBoot_CI_NWK_APP_BSL_UART_20Bit.c"
    Invoking: MSP430 Compiler
    "/home/vkchlt0087/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/bin/cl430" -vmspx --data_model=large --near_data=none -O4 --opt_for_speed=0 --use_hw_mpy=F5 --include_path="/home/vkchlt0087/ti/ccsv8/ccs_base/msp430/include" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/AppMgr" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/MI" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm/PHY_DataLink" --include_path="/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img/Comm/NWK_APP" --include_path="/home/vkchlt0087/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/include" --advice:power="all" --define=__MSP430F5659__ -g --printf_support=minimal --diag_suppress=70 --diag_suppress=770 --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_20Bit.d_raw" --obj_directory="Comm/NWK_APP"  "../Comm/NWK_APP/TI_MSPBoot_CI_NWK_APP_BSL_UART_20Bit.c"
    "../Comm/NWK_APP/TI_MSPBoot_CI_NWK_APP_BSL_UART_20Bit.c", line 247: 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_20Bit.c", line 302: 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_20Bit.c", line 126: 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_20Bit.c"
     
    Building target: "MSPBoot_F5659_UART_Single_Img.out"
    Invoking: MSP430 Linker
    "/home/vkchlt0087/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/bin/cl430" -vmspx --data_model=large --near_data=none -O4 --opt_for_speed=0 --use_hw_mpy=F5 --advice:power="all" --define=__MSP430F5659__ -g --printf_support=minimal --diag_suppress=70 --diag_suppress=770 --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU40 -z -m"MSPBoot_F5659_UART_Single_Img.map" --heap_size=160 --stack_size=160 --cinit_hold_wdt=on -i"/home/vkchlt0087/ti/ccsv8/ccs_base/msp430/include" -i"/home/vkchlt0087/BSL/MSPBoot_F5659_UART_Single_Img" -i"/home/vkchlt0087/ti/ccsv8/ccs_base/msp430/lib/5xx_6xx_FRxx" -i"/home/vkchlt0087/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/lib" -i"/home/vkchlt0087/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/include" -i"/home/vkchlt0087/ti/ccsv8/ccs_base/msp430/lib/5xx_6xx_FRxx" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="MSPBoot_F5659_UART_Single_Img_linkInfo.xml" --use_hw_mpy=F5 --rom_model -o "MSPBoot_F5659_UART_Single_Img.out" "./boot.obj" "./main.obj" "./AppMgr/TI_MSPBoot_AppMgr.obj" "./AppMgr/TI_MSPBoot_VecRed_F5659_Boot.obj" "./AppMgr/crc.obj" "./Comm/NWK_APP/TI_MSPBoot_CI_NWK_APP_BSL_UART_20Bit.obj" "./Comm/PHY_DataLink/TI_MSPBoot_CI_PHYDL_USCI_UART.obj" "./MI/TI_MSPBoot_MI_Flash_20Bit.obj" "../lnk_MSP430F5659_UART_2KB_Single_Boot.cmd"  -llibmath.a -llibc.a 
    <Linking>
    error #10008-D: cannot find file "MSP430F5659.cmd"
    remark #10371-D: (ULP 1.1) Detected no uses of low power mode state changing instructions
    remark #10372-D: (ULP 4.1) Detected uninitialized Port A 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 B 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 C 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 D 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 E in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
     
    >> Compilation failure
    makefile:155: recipe for target 'MSPBoot_F5659_UART_Single_Img.out' failed
     
     undefined   first referenced
      symbol         in file     
     ---------   ----------------
     CRCDIRB_L   <whole-program> 
     CRCINIRES   <whole-program> 
     FCTL1       <whole-program> 
     FCTL3       <whole-program> 
     PAIN_L      <whole-program> 
     PBSEL_L     <whole-program> 
     PMMCTL0     <whole-program> 
     UCA0BRW_H   <whole-program> 
     UCA0BRW_L   <whole-program> 
     UCA0CTLW0_L <whole-program> 
     UCA0ICTL_H  <whole-program> 
     UCA0MCTL    <whole-program> 
     UCA0RXBUF   <whole-program> 
     UCA0TXBUF   <whole-program> 
     WDTCTL      <whole-program> 
     
    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "MSPBoot_F5659_UART_Single_Img.out" not built
    gmake[1]: *** [MSPBoot_F5659_UART_Single_Img.out] Error 1
    gmake: *** [all] Error 2
    makefile:151: recipe for target 'all' failed
    
    **** Build Finished ****
    
    

    Regards,

    Renjith

  • Hello matt,

    I resolved the issue, actually the issue was in generated 'lnk_MSP430F5659_UART_2KB_Single_Boot.cmd' file, the las line of this file was

    -l MSP430F5659.cmd but required is -l msp430f5659.cmd.

    Regards,

    Renjith

  • Thank you for posting the solution to your issue, it is much appreciated by other customers running into the same problem :)

    Best regards,

    Matt

**Attention** This is a public forum