Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: need variables to be stored in EEPROM

2005-04-26 by arhodes19044

--- 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?

-Tony

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.