Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

__ram attribute in Keil CA compiler

2004-12-09 by varuzhandanielyan

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

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.