This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

__at keyword does not work

Compiler complains when using that attribute as in example : const char MyText[] __at (0x1F00) = "TEXT AT ADDRESS 0x1F00";

Any idea ?

Parents
  • Look at this :

    RealView Microcontroller Development Kit - Version 3.03a
    [RealView Compilation Tools V3.0 SP1]
    The RealView Compilation Tools V3.0 SP1 (which are part of this release) correct several issues with symbolic debugging.
    Corrected: a potential hang-up problem during Flash download or program load process.
    Added __at keyword that allows to locate constants on absolute addresses.

    C Example: The following example will locate a section to address 0x1F00:
    #include <absacc.h>

    const char MyText[] __at (0x1F00) = "TEXT AT ADDRESS 0x1F00";
    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

Reply
  • Look at this :

    RealView Microcontroller Development Kit - Version 3.03a
    [RealView Compilation Tools V3.0 SP1]
    The RealView Compilation Tools V3.0 SP1 (which are part of this release) correct several issues with symbolic debugging.
    Corrected: a potential hang-up problem during Flash download or program load process.
    Added __at keyword that allows to locate constants on absolute addresses.

    C Example: The following example will locate a section to address 0x1F00:
    #include <absacc.h>

    const char MyText[] __at (0x1F00) = "TEXT AT ADDRESS 0x1F00";
    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

Children