Using the __at macro that is defined in the header file absacc.h allows you to locate variables to absolute addresses as shown below:
C Example:#i nclude <absacc.h>
const char MyText[] __at (0x1F00) = "TEXT AT ADDRESS 0x1F00";
int x __at (0x40003000); // variable at address 0x40003000
Assembler Example:
In assembler files you may define the location using section names composed of |.ARM.__AT_<addr>|. The following example will locate a section to address 0xFFE0:
AREA |.ARM.__AT_0xFFE0|, CODE, READONLY