I'm playing with the Freemarker templating system for linker scripts generation on one of my project. I could not make my content in my custom user_memory.ldt file (under <project>/linkerscripts) appear in the linkerscript generated. After some search I think that memory.ldt in my installation directory (under wizard/linkerscripts) may be incorrect.
memory.ldt starts with :
<#include "user.ldt" >
<#include "user_library.ldt" ignore_missing=true>
<#include "header.ldt" >MEMORY
In my understanding it should rather be:
<#include "user.ldt" >
<#include "user_memory.ldt" ignore_missing=true>
<#include "header.ldt" >MEMORY
Should I correct manually memory.ldt or am I getting anything wrong?
You appear to be correct. Thank you for reporting this. If you are wanting to provide a user_memory.ldt in your project, you should be able to workaround by also putting an "fixed" copy of the memory.ldt in a "linkscripts" folder of your project.
Regards,
LPCXpresso Support