AnsweredAssumed Answered

Controlling data and function placement in memory

Question asked by sfarzan on Mar 29, 2014
Latest reply on Mar 29, 2014 by Jorge_Gonzalez



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.