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.

TMS320F28335: How code composer studio chooses the linker command file used for compiling

Part Number: TMS320F28335

Tool/software:

Hello,

I'm using CCSV8.3.1 and I have no issue to compile projects, to load the code on target and the code do what I want.

But I'm not able to say how CCS knows the location of the linker command file ! It's a specific linker command file and I'm sure that my code is generated using this linker command file.

My file architechture is the following:

And if I check the project properties, there is nothing choosed as linker command file:

Somebody knows where it can be defined if it's not here?

Thank you very much for your help.

Best Regards,

Alexandre.

  • Hello Alexandre,

    Any file physically inside the project folder is considered part of the project. The exceptions are files generated inside the build configuration subfolder and any file/folders explicitly excluded from the build.

    Any linker command files in the project folder not explicitly excluded would get picked up by the linker.

    Thanks

    ki

  • Hello KI,

    Thank you for your answer, it explains clearly why it works !

    So if various linker command files are in the project folder but for each one is for a specific configuration, it's up to the developper to exclude those that should not be used by the linker according to the configuration? Otherwise, all linker command file will be read and applied, right?

    Best regards,

    Alexandre.

  • it's up to the developper to exclude those that should not be used by the linker according to the configuration? Otherwise, all linker command file will be read and applied, right?

    Yes, absolutely. Otherwise you can get errors like "[x] memory range has already been specified"

  • Yes sure ! 

    Thank you very much for your help.

    Have a good day.

    Best regards,

    Alexandre.