ARM Technical Support Knowledge Articles

EXECUTING FUNCTIONS IN RAM

Applies to: RealView C Compiler

Answer


Information in this article applies to:


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 ARMExamplesRAM_Function.

MORE INFORMATION

Article last edited on: 2008-06-27 07:00:35

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential