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.

TMS320F28P559SJ-Q1: tms320f28p559sj-q1

Part Number: TMS320F28P559SJ-Q1

Tool/software:

Hi Team,

I am working on building the software using the CMAKE environment. I have run the same software using CC-AS studio, and it was compiled successfully without any errors.

I am facing below linking error when trying in CMAKE.

Please let me know the root cause. Thanks

>> WARNING: invalid linker option -ppd=CMakeFiles/BmBsp.dir/home/sananth2/mb_8_5/programs/mercedes/my2028/gaia/gen6obc/dsp/bl-app/bm/BSP/f28p55x_defaultisr.c.obj.d (ignored)

   

  • The issue is that the CMake environment is passing the -ppd option to the linker. The -ppd option is a compiler option and should not be passed to the linker. 

  • Hi Team,

    I have resolved the issue . Thanks for the support .

    I am facing another linking issue . 

    FAPI_F28P55x_COFF_v4.00.00.lib file was not detected by CMAKE during linking.And this FAPI_F28P55x_COFF_v4.00.00.lib  is defined in linker script file .
    Error:

    "/home/sananth2/mb_8_5/programs/mercedes/my2028/gaia/gen6obc/dsp/bl-build/bl_linker_directives.ld", line 81: error #10008-D: cannot find file "FAPI_F28P55x_COFF_v4.00.00.lib"
    "/home/sananth2/mb_8_5/programs/mercedes/my2028/gaia/gen6obc/dsp/bl-build/bl_linker_directives.ld", line 81: error #10032-D: -l must specify a filename
    "/home/sananth2/mb_8_5/programs/mercedes/my2028/gaia/gen6obc/dsp/bl-build/bl_linker_directives.ld", line 82: error #10008-D: cannot find file "_c_int00"
    "/home/sananth2/mb_8_5/programs/mercedes/my2028/gaia/gen6obc/dsp/bl-build/bl_linker_directives.ld", line 95: error #10044-D: end of file encountered unexpectedly
    "/home/sananth2/mb_8_5/programs/mercedes/my2028/gaia/gen6obc/dsp/bl-build/bl_linker_directives.ld", line 95: error #10044-D: end of file encountered unexpectedly
     
    I included this library file in CMAKE using target link library function.
    CMAKE changes:
    set(MY_LIB_PATH                 FAPI_F28P55x_COFF_v4.00.00.lib)
    target_link_libraries(${BINARY_NAME} PRIVATE
    "${MY_LIB_PATH}"
    )
    .
    Linker changes:
    GROUP
    {
    .TI.ramfunc :
    {
    --library=FAPI_F28P55x_COFF_v4.00.00.lib
    --entry_point=_c_int00
    }

    LOAD = APP_CODE,
    RUN = RAMLS1,
    LOAD_START(_RamfuncsLoadStart),
    LOAD_SIZE(_RamfuncsLoadSize),
    LOAD_END(_RamfuncsLoadEnd),
    RUN_START(_RamfuncsRunStart),
    RUN_SIZE(_RamfuncsRunSize),
    RUN_END(_RamfuncsRunEnd),
    PAGE = 0, ALIGN(4)

    }
    Please let me know the root cause for the issue.
  • Hi Team,

      I have resolved the above mention error.

    And I am facing another issue. 

    Please support us to resolve the issue

    Could not able to find _c_int00 

    <Linking>
    error #10008-D: cannot find file "-z"
    "/home/sananth2/mb_15/programs/mercedes/my2028/gaia/gen6obc/dsp/bl-build/bl_linker_directives.cmd", line 89: warning #10068-D: no matching section
    warning #10062-D: entry-point symbol "_c_int00" undefined
    warning #10202-D: no suitable entry-point found; setting to 0
    error #10010: errors encountered during linking; "MB_GEN6_DSP_BL_Platform/MB_GEN6OBC_DSP_BL_Platform_FLASH.out" not built

  • The error #10008-D: cannot find file "-z" error message indicates that the TI linker is not being called with the correct options via CMake. Is there a way you can emit the compete command generated by CMake for the linker invocation? That will help you debug and resolve the issue.