| Author |
Message |
|
|
Posted: May 07, 2006 - 09:26 PM |
|

Joined: Apr 29, 2006
Posts: 20
|
|
e.g. an int viable expected to be at 0x2000;
Thanks in advance.
Jinting |
|
|
| |
|
|
|
|
|
Posted: May 07, 2006 - 10:32 PM |
|

Joined: Nov 17, 2004
Posts: 13840
Location: Vancouver, BC
|
|
| You could declare it as a pointer and set the address as 0x2000. But you will have to take measures to ensure that the compiler doesn't use that space for it's own purposes. Since you are using 0x2000 as an example, I am assuming that you are using external ram. There is a section in the avr-libc manual that talks about external ram and how to tell the compiler where to put global variables and heap (you want to keep the stack in internal ram). |
_________________ Regards,
Steve A.
The Board helps those that help themselves.
|
| |
|
|
|
|
|
Posted: May 07, 2006 - 11:08 PM |
|

Joined: Apr 29, 2006
Posts: 20
|
|
|
|
|
|
|
|
|