How to copy function from flash to ram and run it from ram MCF51QE

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

How to copy function from flash to ram and run it from ram MCF51QE

Jump to solution
1,720 Views
Florijan
Contributor III

Hello,

 

I am using MCF51QE mcu.

Can someone please tell me what is the simplest way to copy a function from flash to RAM and execute it there. For example I have a function:

 

long multiply(int a,int b){


   return a*b;

}

 

Thanks.

Labels (1)
0 Kudos
Reply
1 Solution
691 Views
CrasyCat
Specialist III

Hello

 

Please look for FAQ-27860 on www.freescale.com.

This should explain how to achieve that.

 

CrasyCat

View solution in original post

0 Kudos
Reply
2 Replies
692 Views
CrasyCat
Specialist III

Hello

 

Please look for FAQ-27860 on www.freescale.com.

This should explain how to achieve that.

 

CrasyCat

0 Kudos
Reply
691 Views
Florijan
Contributor III

Thank you very much, I think this should solve my problem.

 

regards,florijan

0 Kudos
Reply