C166: PLACING VARIABLES IN NON-VOLATILE RAM
Information in this article applies to:
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.
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.
Last Reviewed: Friday, July 15, 2005
of your data.