Hi,
I need to define on which address a section is loaded and on which address it starts to run.
For example, in the .cmd file, the section text is defined as:
.text : {} > FLASH run = IPRAM, LOAD_START(FLASH_TEXT_START), RUN_START(RAM_TEXT_START), SIZE(TEXT_SIZE)
The symbols FLASH_TEXT_START, RAM_TEXT_START and TEXT_SIZE are created by the linker. I can also see them in the map file. But I couldn't find a way to use them in my C code.
The fact is, I need to do copy the section from the load address to start address, the first one is in Flash and the second one is in DDR, in my project. But this operation will not be done in the .asm file which runs before cint, but in my code in a arbitrary location. Is there a way I can use these symbols in my code?
Thanks in advance,
Erman