|
|||||||||||
|
Technical Support Support Resources
Product Information |
Technical SupportC166: PLACING VARIABLES IN NON-VOLATILE RAMInformation in this article applies to:
QUESTIONI 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. ANSWERThe 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 ALSOLast Reviewed: Friday, July 15, 2005 | ||||||||||
|
|||||||||||