Copy code from FLASH to RAM and running in RAM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Copy code from FLASH to RAM and running in RAM

980件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
0 返答(返信)