Copy code from FLASH to RAM and running in RAM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Copy code from FLASH to RAM and running in RAM

1,047 次查看
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 回复数