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

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

Re: [avr-gcc-list] Non initialized data in EEPROM


From: dimax un
Subject: Re: [avr-gcc-list] Non initialized data in EEPROM
Date: Sat, 9 Dec 2006 04:15:49 -0800

Actually it is not only one variable. I have about 1K of initialized
space and 3k of non initialized space allocated in EEPROM. ( I have
put one variably to make the problem clear ).
I still think the right solution is to define two sections and flag
one of them as non loadable. But not sure about it and I think there
is a more simple solution.


On 12/7/06, Erik Christiansen <address@hidden> wrote:
On Thu, Dec 07, 2006 at 03:50:48PM +0200, dimax un wrote:
> I do not want to strip the whole eeprom section but some array in it.
> BTW what if I will initialize array in eeprom with 0xFF. Can it make
> avrdude to skip pages that are totally FF'ed ?

OK, then initialising the one variable explicitly at run-time, and
still removing the section entirely would probably be be the easiest
way out. ;-)

Regards,
Erik


>
> On 12/7/06, Erik Christiansen <address@hidden> wrote:
> >On Thu, Dec 07, 2006 at 10:41:26AM +0200, dimax un wrote:
> >>
> >> As far as I can see I will have to declare special section without
> >> "loadable" flag so that it will not be taken to produce image. This
> >> may require to access linker scripts and I do not want to do it very
> >> much. Probably there is any other option?
> >
> >You could add  --remove-section=.eeprom to the avr-objcopy command
> >producing the hex file.
> >
> >Erik
> >
> >
> >_______________________________________________
> >AVR-GCC-list mailing list
> >address@hidden
> >http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
> >
>
>
> --
> ;-------------------------------------------------------
> ; Micro connection to the MacroVision
> ; http://www.xdimax.com
> ;--------------------------------------------------------



--
;-------------------------------------------------------
; Micro connection to the MacroVision
; http://www.xdimax.com
;--------------------------------------------------------




reply via email to

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