[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] EEPROM array in certain location
From: |
Ahmad Husni |
Subject: |
Re: [avr-gcc-list] EEPROM array in certain location |
Date: |
Tue, 7 Dec 2004 11:07:10 +0700 |
Leo,
I think, if you use Winavr, you can change the makefile. like this
%.eep: %.elf
@echo
@echo $(MSG_EEPROM) $@
-$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \
--change-section-lma .eeprom=0x10 -O $(FORMAT) $< $@
And Let's see the .eep file
----- Original Message -----
From: "Leo Hendrawan" <address@hidden>
To: <address@hidden>
Sent: Tuesday, December 07, 2004 5:26 PM
Subject: [avr-gcc-list] EEPROM array in certain location
> Hello all,
>
> does anyone know how to initialize an array in the EEPROM at a certain
> desired location.
> as far as i havr tried, using this:
> unsigned int EEPROM_ARRAY[][] __attribute__(((setion(".eeprom")))
> will make an array starting at the beginning of the EEPROM (address 0x00)
> how if i just want to start the array at, let's sat the address 0x10?
>
> best regards,
>
> --------------------------
> Leo Hendrawan
> 13200005
> at 10:23 Dec 7
> --------------------------
>
>
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list