|
From: | E. Weddington |
Subject: | Re: [avr-gcc-list] placing a variable in flash |
Date: | Mon, 22 Nov 2004 10:50:49 -0700 |
User-agent: | Mozilla Thunderbird 0.7.3 (Windows/20040803) |
Royce & Sharal Pereira wrote:
Hi, How can one assign a predetermined address to a variable in code? Say I place the Oscillator Calib. byte at 0x1fff. How can retreive it in my program? I have to 'tell' GCC to look for it at (byte)location 0x1fff; which means I need to have a variable(or const) located at 0x1fff. How does one do this?
Wouldn't the variable be better off stored in the EEPROM and not in Flash (Program Memory)?
[Prev in Thread] | Current Thread | [Next in Thread] |