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/TMS570LC4357: CCS "cannot find file cannot find file" error

Part Number: TMS570LC4357

Tool/software: Code Composer Studio

Hi,

I am working on a CCS 7.3 project which I got from my senior. I tried to compile it and CCS gave me a very unhelpful error message. I was able to link up all missing files in previous errors till this showed up.

Appreciate if anyone can give me any slightest clue about this error? I don't even know where to start to tackle this error.

Current setup: CCS7.3, with TI V16.9.4 compiler. This project was previously created under CCS6.x with TI 5.5.x compiler for previous Hercules TMS R4 core. As Hercules released new R5 MCU, we need to port it over and modify for new applications as well.

Thanks for the help!

  • Hello,
    Your screenshot did not seem to get posted correctly. Can you try again?

    Thanks
    ki
  • Hi Ki,

    I re-uploaded the screenshot. Sorry about that.

    Thanks!
  • Thanks. Can you provide all the build output from the build console?
  • Hi Ki,

    Thanks for the clue! Attached is the error found in the console.

    <Linking>

    error: cannot find file

      "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/lib/rtsv7R4_T_be_v3D16_eabi_eh.lib"

    error: errors encountered during linking; "LS31x_COMS_EV2.out" not built

    >> Compilation failure

    makefile:274: recipe for target 'LS31x_COMS_EV2.out' failed

    gmake[1]: *** [LS31x_COMS_EV2.out] Error 1

    makefile:270: recipe for target 'all' failed

    gmake: *** [all] Error 2

    **** Build Finished ****

    However, from my knowledge, we never used this  ***_eh.lib before. Even though I specifically set the runtime support library to be the one without rtsv7R4_T_be_v3D16_eabi.lib, during the compilation, it still looked for this ***_eh.lib. And I couldn't find this ***_eh.lib file in my TI installation directory and online as well. Any help on this?

    Thanks!

  • The "eh" is for exception handling support. This library would be selected if exception handling is enabled for the project. If the library does not exist, then CCS should try to build the library:

    processors.wiki.ti.com/.../Mklib

    The question is why the library didn't get built. Were there any other build errors regarding the building of the library?

    Thanks
    ki
  • Hi Ki,

    I found the issue and got it compiled.

    Under the ARM Linker, the _eh.lib file was included specifically under the "File search path". I don't know why it was there at the first place as we didn't enable the Exception handling option at all from the beginning.

    Thanks for the help!
  • Glad to hear you found the issue and resolved it. Thanks for the update!

    ki