I need to place a function in a specific address or segment in memory. I'm using GNU compiler in CodeWarrior for Kinetis KL16.
Just as an example, I was able to do this using MSP430 MCU as below:
void f(void) @ "MYSEGMENT";
void g(void) @ "MYSEGMENT"
I would appreciate any help in this regard. Thanks in advance.