|
|||||||||||
Technical Support Support Resources
Product Information |
C166: Locate Variables to Absolute AddressesInformation in this article applies to:
QUESTIONMy application requires that I locate a struct to an absolute memory address in a battery backup (non-volatile) RAM space. Is this possible? ANSWERThe following example locates the struct alarm_control at address 0x128000. This structure is defined in a source file named ALMCTRL.C, and this module contains only the declaration for this structure.
The C166 Compiler generates an object file for ALMCTRL.C and includes a section for variables in the huge memory area. The variable alarm_control is located in the section ?HD?ALMCTRL. To locate this section, enter under Options for Target - L166 Locate - Users Sections:
The L166 SECTIONS directive requires that you enter both the section name and the memory class name. MORE INFORMATION
SEE ALSO
Last Reviewed: Thursday, February 25, 2021 | ||||||||||
|
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.