Keil™, An ARM® Company

L166 User's Guide

Defining Physical Memory

The XC16x/C16x/ST10 device family offers a limitless number of possible memory configurations. It is imperative that the tools are configured to match the memory map of the target hardware system. Failure to correctly configure the development tools to match the target will certainly cause negative consequences.

Unfortunately, there is no general rule that can be used to describe all possible hardware/memory configurations. Therefore, several examples are used to demonstrate how to configure the memory areas for the linker.

Note

  • NEAR data (NDATA) must reside in a single 16K data page (unless you use the DPPUSE directive).
  • NEAR constants (NCONST) must reside in a single 16K data page (unless you use the DPPUSE directive).
  • NEAR code (NCODE) must reside in a single 64K block.
  • On-chip RAM (0FA00h-0FFFFh) may not be used for program code or constants.