Keil Logo

ARMCC: EXECUTING FUNCTIONS IN RAM


Information in this article applies to:

  • RealView C Compiler Version 3

QUESTION

I convert code from the Keil CARM Compiler to the RealView Compiler. I need to implement in-system Flash programming on STR710, and since the device cannot execute code out of flash while I write to it, I need to execute the function from RAM.

With the CARM Compiler I have used the __ram attribute. How can I replace this in the RealView compiler? I have tried to use a linker scatter loading file, but this failed.

ANSWER

µVision allows you to locate modules to specific memory areas that are entered in the dialog Project - Options - Target. To do so, right click on a source file (or file group) and open the dialog Options - Properties. Then select the memory regions under Memory Assignment.

There is an example in the folder ARM\Examples\RAM_Function.

MORE INFORMATION

  • RealView Compilation Tools Introduction - Embedded Programs - Specific Memory Areas.

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Friday, June 27, 2008


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.