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.

Linker Error after upgrading from CCS 5.4 to CCS 5.5 (or newer)

Other Parts Discussed in Thread: MSP430F5529

After updating CCS 5.4 to a newer Version a Project which compiled and linked perfectly fine suddenly  throws a linker error.

Console Output in Version CCS 5.4:

"./src/utility/assert/component/assert_cpu.obj" -lF021_API_CortexR4_LE_V3D16.lib -l"rtsv7R4_T_le_v3D16_eabi.lib" "C:/svn/trunk/bootloader/src/hal/bl_link.cmd"
<Linking>
'Finished building target: bootloader.out'

Console Output in Version CCS 5.5 (or newer):

'ARM Linker: bootloader.out'
"C:/svn//trunk//src/hal/bl_link.cmd", line 48: error #10008-D:
   cannot find file "F021_API_CortexR4_LE_V3D16.lib"
        F021_API_CortexR4_LE_V3D16.lib (.text)
error #10010: errors encountered during linking;
   "bootloader.out" not built

The path to the "F021_API_CortexR4_LE_V3D16.lib" libray is correctly specified in the project settings:

  • What happens if you change the search path to an absolute path?  I suspect that the relative path you have listed is not resolving to where you think it should.  Personally I prefer to use variables.

    For example I have a search path entry setup as "${workspace_loc:/${ProjName}}/../../test"

    This is relative to my project location.

    When I invoke the linker I can see the resulting path in bold below

    'Invoking: MSP430 Linker'
    "C:/ti/ccs601/ccsv6/tools/compiler/msp430_4.3.3/bin/cl430" -vmspx --abi=eabi --data_model=restricted -O2 --advice:power=all -g --define=__MSP430F5529__ --diag_warning=225 --display_error_number --diag_wrap=off --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --printf_support=minimal -z -m"5529msp.map" --heap_size=160 --stack_size=160 --use_hw_mpy=F5 --cinit_hold_wdt=on -i"C:/ti/ccs601/ccsv6/ccs_base/msp430/include" -i"C:/Users/myusername/test"

  • Under Build -> Link Order:

    Add the files to link with.

    Roger