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/TMS320F28377S: TMS320F28377S

Part Number: TMS320F28377S
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hello,

I am trying to create my own library with existing example.

And i created library as name lib2 and i copied #include "F28x_Project.h"  in  lib2.h file.

But i getting error as   #1965: cannot open source file "F28x_Project.h".

I am using CCS v7 .

OS= Windows 10.

  • Here is complete error:

    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O
    'Building file: ../main.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --include_path="C:/Users/subodh.bansode/workspace_v7/testing" --include_path="C:/Users/subodh.bansode/workspace_v7/lib2" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"

    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'main.obj' failed
    "C:/Users/subodh.bansode/workspace_v7/lib2/lib2.h", line 11: fatal error #1965: cannot open source file "F28x_Project.h"
    1 catastrophic error detected in the compilation of "../main.c".
    Compilation terminated.
    gmake: *** [main.obj] Error 1
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****
  • Hello,

    Subodh Bansode said:
    "C:/Users/subodh.bansode/workspace_v7/lib2/lib2.h", line 11: fatal error #1965: cannot open source file "F28x_Project.h"

    It looks like the issue is that the compiler was unable to find the required include header file "F28x_Project.h"

    Subodh Bansode said:
    --include_path="C:/Users/subodh.bansode/workspace_v7/lib2" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include"

    Please add the path to where "F28x_Project.h" is located to your list of include search paths. You can do this in the project properties in the "Include Options" of the compiler properties

    thanks

    ki

  • Thank you for reply ...
    I will check that.

    Do we need to copy created library files(.c & .h) in driverlib folder ?
  • I'm not familiar with your project or the driverlib contents to comment. The experts in the C2000 forum can guide you best on how to create your project

    Thanks
    ki
  • OK, Thanks though..
  • I linked that path but still not working.
    following is new error:

    **** Build of configuration Debug for project Testing ****

    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O
    'Building file: ../Testing.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --include_path="C:/Users/subodh.bansode/Desktop/Subodh/Testing" --include_path="C:/ti/c2000/C2000Ware_1_00_02_00/device_support/f2837xs/headers/include" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include" --include_path="C:/ti/c2000/C2000Ware_1_00_02_00/device_support/f2837xs/common/include" --include_path="C:/Users/subodh.bansode/Desktop/Subodh/sab/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="Testing.d_raw" "../Testing.c"
    'Finished building: ../Testing.c'
    ' '
    'Building target: Testing.out'
    'Invoking: C2000 Linker'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -g --diag_warning=225 --diag_wrap=off --display_error_number -z -m"Testing.map" --stack_size=0x200 --warn_sections -i"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/lib" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include" -i"C:/Users/subodh.bansode/Desktop/Subodh/sab" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="Testing_linkInfo.xml" --rom_model -o "Testing.out" "./Testing.obj" "../28377S_FLASH_lnk.cmd" -llibc.a -lsab.lib
    <Linking>
    error #10008-D: cannot find file "sab.lib"
    error #10010: errors encountered during linking; "Testing.out" not built

    >> Compilation failure
    makefile:142: recipe for target 'Testing.out' failed
    gmake[1]: *** [Testing.out] Error 1
    makefile:138: recipe for target 'all' failed
    gmake: *** [all] Error 2

    **** Build Finished ****
  • Subodh Bansode said:
    error #10008-D: cannot find file "sab.lib"

    This is a linker error. Your project uses sab.lib

    Subodh Bansode said:
    -lsab.lib

    But the linker could not find where it is. For this one, you need to add the path to it in the library seach path. Again in the project properties but under the LINKER options "File Search Path"

    Thanks

    ki

  • I included all path of "F28x_Project.h", but still i am having following error :



    **** Build of configuration CPU1_FLASH for project Test4 ****

    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O
    'Building file: ../Test4.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -O2 --include_path="C:/Users/subodh.bansode/Desktop/Subodh/Test4" --include_path="C:/Users/subodh.bansode/Desktop/Subodh/abc/include" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include" --cpp_default --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="Test4.d_raw" "../Test4.c"

    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'Test4.obj' failed
    "C:/Users/subodh.bansode/Desktop/Subodh/abc/include/abc.h", line 5: fatal error #1965: cannot open source file "F28x_Project.h"
    1 catastrophic error detected in the compilation of "../Test4.c".
    Compilation terminated.
    gmake: *** [Test4.obj] Error 1
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****
  • I will answer your last question in the new thread you created and close this one
    e2e.ti.com/.../2409649

    Thanks
    ki