I have external an internal Flash in my LM3S9B96. Because the use of the internal flash is much faster I want to specify for each function if it should be placed in the internal or external flash. I can specify for each file with the scatter file where it is placed but how can I do this with each function and const data. Is it possible with __attribute__? I'm using MDK-ARM 4.12.
Thank you for your assistance
Ivo
Read your linker manual:
extern int32s power_failure_handler(void) __attribute__((section ("power_failure_section"))) ;
and in the scatter file:
POWER_FAILURE_HANDLER POWER_FALURE_HANDLER_LOCATION FIXED { POWER_FAILURE_IMPL.o (power_failure_section) }