avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] using eeprom section in avr-gcc


From: Klaus Rudolph
Subject: Re: [avr-gcc-list] using eeprom section in avr-gcc
Date: Sun, 03 Mar 2002 13:12:46 +0100

Larry Barello wrote:
> 
> www.avrfreaks.org (net, com) has a very good page on GCC with getting
> started notes that should cover the stuff you are asking about.
Sorry, found millions of informations, but not the usage of eeprom
section
from c or assembly language. I am not searching for the c-lib functions.
I want to integrate some "semi" constants in my ass-files, which will be
hold some start-values for my software in eeprom. So the only question
was:
How can i place the vars in the eeprom section.

There is no .eeprom in the assembler, or? How can i put variables in the
eeprom section?


> 
> Here are some lines from a makefile.  It is for sample code for my
> RTOS, so the libraries are mine, not gcc.  The makefile creates .rom
> (hex), .eep (hex) and .obj (avrstudio debug module) from any single
> module source file which, happens to be how my samples are organized.
> For a real project the .elf file would be made from several module
> linked together...



> %eep: %elf
>  $(BIN) -j
> .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma
> .eeprom=0 -O $(FORMAT) $< $@
> 

Yes this is the information i need for the avr-objcopy... thanks,
but the frist question, putting the vars to eeprom is not clear for me.
Can you give me the single line to place the information in the source
text?

thanks
        Klaus
avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]