Copy code from FLASH to RAM and running in RAM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Copy code from FLASH to RAM and running in RAM

655 Views
larryyang
NXP Employee
NXP Employee

The compiler is IAR 7.10, MCU type is Kinetis V31.

If the code is written by myself, we can use the following two ways to accomplish.

1.using keyword "__ramfunc" before the return type in the function protype.

__ramfunc void func(void);

2.located the function in section ".textrw"

void func(void) @".textrw"

{

}

But for FSL's motor control library, how to copy these functions to RAM? thanks!

For example, ACLIB_PMSMBemfObsrvDQ() and ACLIB_TrackObsrv() in CM4_ACLIB_F16.a

Labels (1)
0 Kudos
0 Replies