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.

I am getting the following error while building my project on DM6437 using CCS Version 3.3 !

The following error is displayed each time I try to build my code :

fatal error: could not open source file "psp_i2c.h"?

Please help!!

  • Hi,

    Kindly add the include path file to the CCS project properties and validate the availability of the mentioned header file above in the corresponding path mentioned in the project properties.

    With Project properties->build->C6000 Compiler->Include Options, Kindly check the availability of #include search path for the above header file "psp_i2c.h"

    After adding the include file path, try rebuilding the project to check for any error.

    Please refer to the following TI wiki and set the correct include path for the CCS project to get successful build.

    http://processors.wiki.ti.com/index.php/Include_paths_and_options

    Thanks & regards,

    Sivaraj K

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question

    -------------------------------------------------------------------------------------------------------

  • Thank you sir for your valuable response. The solution worked out well. There is a different problem now :
    <Linking>
    >> E:\\BE Project\\pratik\\lnk.cmd, line 83: error:
    can't find input file
    '../../../../packages/ti/vlib/lib/common.lib'
    >> E:\\BE Project\\pratik\\lnk.cmd, line 84: error:
    can't find input file '../../../../packages/ti/vlib/lib/vlib.lib'
    GROUP (NEAR_DP
    >> E:\\BE Project\\pratik\\lnk.cmd, line 100: error:
    syntax error
    >> E:\\BE Project\\pratik\\lnk.cmd, line 100: error:
    section GROUP_1 not built
    >> E:\\BE Project\\pratik\\lnk.cmd, line 100: error:
    section GROUP_1 not built
    >> E:\\BE Project\\pratik\\lnk.cmd, line 100: error:
    section GROUP_1 not built
    >> E:\\BE Project\\pratik\\lnk.cmd, line 101: error:
    section GROUP_1 not built
    } load
    >> E:\\BE Project\\pratik\\lnk.cmd, line 105: error:
    syntax error
    .init_array:
    >> E:\\BE Project\\pratik\\lnk.cmd, line 107: error:
    syntax error
    .far:
    >> E:\\BE Project\\pratik\\lnk.cmd, line 108: error:
    syntax error
    .fardata:
    >> E:\\BE Project\\pratik\\lnk.cmd, line 109: error:
    syntax error
    .neardata load
    >> E:\\BE Project\\pratik\\lnk.cmd, line 110: error:
    syntax error
    .rodata load
    >> E:\\BE Project\\pratik\\lnk.cmd, line 111: error:
    syntax error
    .data:
    >> E:\\BE Project\\pratik\\lnk.cmd, line 112: error:
    syntax error
    .switch:
    >> E:\\BE Project\\pratik\\lnk.cmd, line 113: error:
    syntax error
    .stack:
    >> E:\\BE Project\\pratik\\lnk.cmd, line 114: error:
    syntax error
    .args:
    >> E:\\BE Project\\pratik\\lnk.cmd, line 115: error:
    syntax error
    .sysmem:
    >> E:\\BE Project\\pratik\\lnk.cmd, line 116: error:
    syntax error
    .cinit:
    >> E:\\BE Project\\pratik\\lnk.cmd, line 117: error:
    syntax error
    .const:
    >> E:\\BE Project\\pratik\\lnk.cmd, line 118: error:
    syntax error
    .pinit:
    >> E:\\BE Project\\pratik\\lnk.cmd, line 119: error:
    syntax error
    .cio:
    >> E:\\BE Project\\pratik\\lnk.cmd, line 120: error:
    syntax error
    xdc.meta:
    >> E:\\BE Project\\pratik\\lnk.cmd, line 121: error:
    syntax error
    >> lnk.cmd: error: system error, can't open file 'START.obj' for input: No
    such file or directory

    >> Compilation failure

    Build Complete,
    25 Errors, 0 Warnings, 0 Remarks.

    Please help me with the above query asap!

    Regards.
  • It seem that you have included the library wrongly.
    Can you please attach your project with "lnk.cmd" file ?