Placing Function in RAM
I have a couple functions that I would like to place into RAM. I have added the the attribute to the function prototype:
void foo(void) __attribute__ ((section(".fast")));
Whenever I call this function from another function that is not in RAM, or a function that isn't in RAM call foo, I get the following error:
relocation truncated to fit: R_ARM_PC24 against symbol `foo' defined in .fast section in ARM Flash Debug/Interrupts.o
Please sign in to leave a comment.
Comments
1 comment