--- In AVR-Chat@yahoogroups.com, David Kelly <dkelly@h...> wrote:
> It was simpler than I remembered. This puts ee_serial_number in
EEPROM:
>
> uint32_t ee_serial_number __attribute__ ((section (".eeprom")));
>
> --
> David Kelly N4HHE, dkelly@H...
>
=====================================================================
===
> Whom computers would destroy, they must first drive mad.
OK, I like this technique because _I_ do not have to keep track of
the address of variables in EEPROM. But....
Always a but. How do I use this command. I tried it in the C
source inside main(). This gave errors.
I then put it into the makefile, and I got no errors, but who knows
what it did with the command. When I referenced the variable, I got
an "undeclared" error.
So, where I I put the command you suggest, and then how do I use the
resulting variable?
-TonyMessage
Re: need variables to be stored in EEPROM
2005-04-26 by arhodes19044
Attachments
- No local attachments were found for this message.