--- In lpc2000@yahoogroups.com, "varuzhandanielyan" <dan@x> wrote:
>
> I have written very simple code just to evaluate the LPC2129
> speed for the Keil MCB2100 board:
>
> void Meander(void)
> {
> unsigned int n;
>
> n = 0x00010000;
> while (1) {
> IOSET1 = n;
> IOCLR1 = n;
> }
> }
>
> It works well and I can scope the meander pulses. But when I add
> the __ram attribute:
>
> void Meander(void) __ram
>
> The program does not work. Should I make any other changes in the
> program or compiler settings to force the code work from RAM?
>
> Thanks,
> Varuzhan
You need at the location of ram you wish to use to run the code
In the la locate user classes section of the target options use the
ERAM directive
i.e
ERAM(0x0400-0x4FF)
making sure that you allocate enough space for the function
paulMessage
Re: __ram attribute in Keil CA compiler
2004-12-10 by beano040461
Attachments
- No local attachments were found for this message.