Keil Logo

near

The near memory type may be used for variables and constants. This memory is accessed using 16-bit addresses and may be on-chip or external.

  • For variables, near memory is limited to 64KB and may not cross a 64KB boundary. Variables declared near are located in the NDATA memory class.
  • For constants (ROM variables), near memory is limited to 64KB and may not cross a 64KB boundary. Constant variables declared far are located in the NCONST group.

Declare near objects as follows:

unsigned char near near_variable;

unsigned char const near near_const_variable;
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

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.