Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Re: need variables to be stored in EEPROM

2005-04-25 by David Kelly

On Mon, Apr 25, 2005 at 01:38:57PM -0500, David Kelly wrote:
> 
> As for the syntax of compiling EEPROM variables all I can say is, "I've
> done it" but don't have an example under my fingertips or in CVS. IIRC
> the variables were defined in a .c source file reserved specifically for
> this purpose. In the Makefile this one source file was compiled with an
> option to map .data to .eeprom, or some such thing.

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@HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.

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.