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.

Edit linker cmd file

Hi everyone,

I want to edit the .cmd used during link phase to add a memory section like:

SECTIONS
{
    my_mem_section: load >> L2SRAM
}

The problem is, the .cmd file is generated automatically, so if I edit the .cmd file manually it will be overwritten when I build my project and in the end of the build, CCS is going to show a message like this:

<Linking>
warning #10247-D: creating output section "my_mem_section" without a SECTIONS specification

How do I specify the SECTIONS if the linker.cmd file is generated automatically?

Is there other way of doing this, using CFG maybe?

Thanks for any help