I am trying to find the size of a memory segment. In this specific case it should be easy since I only have one section in the memory segment. According to the docs for the section placement file format, one can add a size_symbol. If my understanding is correct, then I could access the value through this symbol in the application code. I tried this:
<MemorySegment name="$(ITCM_NAME:ITCM)">
<ProgramSection alignment="4" load="No" size_symbol="__itcm_size__" name=".code_TCM_run" />
</MemorySegment>
But it does not lead to creating such a symbol. Am I understanding the use of size_symbol correctly ? If yes, then how can I use it to do what I need ?
George
<MemorySegment name="$(ITCM_NAME:ITCM)">
<ProgramSection alignment="4" load="No" size_symbol="__itcm_size__" name=".code_TCM_run" />
</MemorySegment>
But it does not lead to creating such a symbol. Am I understanding the use of size_symbol correctly ? If yes, then how can I use it to do what I need ?
George