Hello, I've create a FLASH_CMD linker file. At the end I have this.
.TI.ramfunc : {} LOAD = FLASH1 | FLASH4,
RUN = RAMGS0 | RAMGS1 | RAMGS2 | RAMGS3 | RAMGS4 | RAMGS5 | RAMGS6
etc...
What I think this means, is during Device_Init, the FLASH sections listed after LOAD will be memcpy'd to the RAM sections listed after RUN. So as long as I have my .text in FLASH1 or FLASH4, it will be copied to RAM and run from there. Is that correct?
In code I have:
#pragma CODE_SECTION(motor1ControlISR, ".TI.ramfunc");
I can see from the MAP file, this function is in the RAM section. But all other functions are in the FLASH section. If I was correct above, I shouldn't need this #pragma at all. But if that's the case, how can I tell if my functions are running from RAM or FLASH?
Do I still need this #pragma for all functions I want in RAM?
thanks
Ken