2010-02-08 04:34 AM
Interrupt function in RAM, how to?
2011-05-17 01:00 AM
Hi Joel,
you can place a function in RAM using ''void yourfunc(void)__attribute((section(''.data'')));'' as declaration of the function. With attribute section you can place functions to every section defined in your linker script file. More information on http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html. Don't forget to add ''-mlong-calls'' to your gcc-options.