Placing & executing functions from RAM

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

Placing & executing functions from RAM

跳至解决方案
1,045 次查看
VictorLorenzo
Contributor IV

Hi,

How can I do for locating/placing several functions in RAM while keeping the rest of the code in FLASH?

Thanks, Victor

标签 (1)
0 项奖励
回复
1 解答
760 次查看
VictorLorenzo
Contributor IV

I just forgot to say I'm using CW10.4 with GCC. Thanks Lei Mao for your replay.

There's one AppNote at http://cache.freescale.com/files/32bit/doc/app_note/AN4695.pdf which deals with in-software flash programming that also addresses RAM code location. All credits an many thanks to Enric for pointing me to this note.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
761 次查看
VictorLorenzo
Contributor IV

I just forgot to say I'm using CW10.4 with GCC. Thanks Lei Mao for your replay.

There's one AppNote at http://cache.freescale.com/files/32bit/doc/app_note/AN4695.pdf which deals with in-software flash programming that also addresses RAM code location. All credits an many thanks to Enric for pointing me to this note.

0 项奖励
回复
760 次查看
leimao
Contributor II


you can see IAR k60 example. use __ramfunc to define a function in RAM. good luck