Page 1 of 1

Makefile how to create the .eep file

Posted: Wed Nov 12, 2008 12:50 pm
by Guest
Hi !

My Application is using the EEPROM memory and defines some constants in it. How do i modify the makefile, that it generates the .eep file with the EEPROM values in it? With the default makefile there is no output for this file.

Regards,

Dirk

Posted: Wed Nov 12, 2008 3:50 pm
by christian
As far as I know, this is done with avr-objcopy. Don't know the section name to extract, but I'm sure you can find it with a web search.

Posted: Wed Nov 12, 2008 4:05 pm
by Guest
Thanks Christian, sometimes the things are so easy...

Code: Select all

main.hex:   main.bin
   rm -f main.hex
   avr-objcopy -j .text -j .data -O ihex main.bin main.hex
   avr-objcopy -j .eeprom -O ihex main.bin main.eep


This gives you main.hex and main.eep .

Regards,

Dirk

Re: Makefile how to create the .eep file

Posted: Wed Oct 14, 2009 2:30 am
by sourav
how do i make a software with which i can write specific information at specified memory of AVR microcontroller?

do i use this command as well?