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/TMS320F28335: "28335_IQmath_lnk.cmd" conflict with another linker command file "F28335.cmd".

Part Number: TMS320F28335

Tool/software: Code Composer Studio

Hi, 

I found out that "28335_IQmath_lnk.cmd" conflict with another linker command file "F28335.cmd" when compile the project. they double defined areas which causes a lot of errors.

Here is the "28335_IQmath_lnk.cmd" and "F28335.cmd"  files used in my project.. 1374.28335_IQmath_lnk.zip1881.F28335.zip

my questions is how to fix the "28335_IQmath_lnk.cmd" file to compile the project.

Can I simply remove the "28335_IQmath_lnk.cmd" file when compile the project? what is the problem if it is removed?

Thanks.

Z

  • Hello Zhiyang,

    Are you referring to a specific TI project where these 2 linker command files are both included and cause build errors?

    This should not be the case, but please confirm.

    Or are you trying to build your own project (possibly involving IQMath), and therefore need to include 28335_IQmath_lnk.cmd? Is F28335.cmd included by default?

    If you are using IQMath library, my suggestion would be to use the 28335_IQmath_lnk.cmd file. The F28335.cmd may not be required. If the linker complains about any memory sections that are undefined, you can accordingly modify 28335_IQmath_lnk.cmd.

    Thanks,
    Sira
  • Thank you, Sira,

    Here is my answers:
    -- "Are you referring to a specific TI project where these 2 linker command files are both included and cause build errors?"
    Reply: The project runs well boot from RAM when compile with "28335_IQmath_lnk.cmd". Now I need to move to Flash boot, which is why I need to use "F28335.cmd"

    -- "Or are you trying to build your own project (possibly involving IQMath), and therefore need to include 28335_IQmath_lnk.cmd? Is F28335.cmd included by default?"
    Reply: both of the cmd files are included correctly.

    -- "If you are using IQMath library, my suggestion would be to use the 28335_IQmath_lnk.cmd file. The F28335.cmd may not be required. If the linker complains about any memory sections that are undefined, you can accordingly modify 28335_IQmath_lnk.cmd."
    Reply: I used "28335_IQmath_lnk.cmd" to compile the project and the project boot from RAM and runs very well.
  • Hello Zhiyang,

    Thanks for the update. You should be able to remove the 28335_IQMath_lnk.cmd file since it applies only to the case where you are running from RAM. The F28335.cmd file applies to the case where you are running from Flash, and should be used. When you build the project, the linker will issue warnings or errors if it encounters any problems. As long as there are none, you should be OK. Please test and see what happens, and also let me know if your project runs as expected.

    Thanks,
    Sira
  • Thank you so much. It does work that way.

  • Zhiyang,

    Great! Could you please mark the issue as Answer Verified against my reply, so that the issue is closed.

    Thanks,
    Sira