ARM Technical Support Knowledge Articles

PLACING VARIABLES IN NON-VOLATILE RAM

Applies to: C166 C Compiler

Answer


Information in this article applies to:


QUESTION

I use off-chip non-volatile RAM on the C164 microcontroller to save calibration parameters. I need to keep those values safe in memory even in case of software modification.

How can I store a few variables at a fixed memory location? The location must remain at the same place even when I change my software, so that several software revisions use the same configuration data.

ANSWER

The C166 Compiler offers several directives that are required for this:

An example that is almost identical to your requirement is in the Getting Started User's Guide, under Creating Applications, Tips and Tricks, Locate Sections to Absolute Memory Locations.

MORE INFORMATION

SEE ALSO

Article last edited on: 2005-07-15 10:00:26

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