Compiler complains when using that attribute as in example : const char MyText[] __at (0x1F00) = "TEXT AT ADDRESS 0x1F00";
Any idea ?
And you're sure that _at_ is supposed to work with initialized variables in your compiler?
ya, pretty shure,
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
Check this
Menu => project => Components, Enviroments, books...,
Folders/Extentions
Check the checkbox Use Keil CARM compiler.
It looks like you are using the Realview compiler.
Regards
Luc Vercruysse
Of course I use Realview Compiler, and as pointed out (l ast post) it should work as claimed by Keil in their last release note (I use that version).
"Of course I use Realview Compiler"
Why "of course"?
Although you've been asked, you have never explicitly stated which compiler you're using.
Why of course ?
Because of my post on 3-Nov-2006 04:19
View all questions in Keil forum