Keil Logo

far

The far memory type may be used for variables, constants, and functions. This memory is accessed using 32-bit addresses and may be on-chip or external.

  • For variables, far memory is limited to 16M, objects are limited to 16K and may not cross any n*(16K) page boundary, where n= {1,2,3,...). Variables declared far are located in the FDATA group.
  • For constants (ROM variables), far memory is limited to 16M, objects are limited to 16K and may not cross any n*(16K) page boundary, where n={1,2,3,...). Constant variables declared far are located in the FCONST group.
  • For program code (functions), far memory is limited to 16M. Program code declared far is stored in the default memory type, which is selected with the memory model. This is either NCODE or FCODE. Functions are invoked with the CALLS instruction.

Declare far objects as following:

unsigned char far far_variable;

unsigned char const far far_const_variable;

unsigned int far far_func (void)
{
return (0);
}
  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.