Placing & executing functions from RAM

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

Placing & executing functions from RAM

Jump to solution
802 Views
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

Labels (1)
0 Kudos
1 Solution
517 Views
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.

View solution in original post

0 Kudos
2 Replies
518 Views
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 Kudos
517 Views
leimao
Contributor II


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