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

Absolute Variable Location: compilation error using __at

Hi,

I'm trying to use "__at" to locate a variable to a specific address:

void delay (void)
{ unsigned long cont __at 0x4000000;

for (cont = 0; cont < 10000;cont++);
}

But the compiler said me:

test.c(17): error: #65: expected a ";"

What is the problem?

Thank you very much..

0