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.

Linker.cmd not updated after normal build

hi , 

Everytime when i change the memory configuration in the Tools>RTSC tools> edit/view :  The changes made is not reflected in the linker.cmd after giving a build .

It requires a clean and build - which takes nearly around 10-15 min for my huge code base . 

Is it necessary to clean and build the code to get the memory configuration change to be reflected in linker.cmd or any other method is available to save the build time ?

  • vinodh,
    I can replicate the problem. I'll look into it more and post any further information, but for now you can try to force rebuilding linker.cmd by right-clicking on your cfg script and then choosing "Build Selected File". After that, just click on Build as you would normally do and only the files affected by the cfg script and linker.cmd should be rebuilt. I am guessing that most of your source files do not reference any file affected by the cfg script, so your build should be faster.

  • I think I have a better workaround, or at least one that will make rebuild automatic. Add the file makefile.init to the top directory of your project. It should have only one line:
    configPkg/linker.cmd: C:/platforms/myNewPlatform/Platform.xdc
    where you should replace the path to Platform.xdc with the actual path to your Platform.xdc file in your custom platform. That should make rebuild automatic whenever you change the platform.

  • Thanks Sasha Slijepcevic . It worked .