Makefile how to create the .eep file

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Guest

Makefile how to create the .eep file

Post by Guest » Wed Nov 12, 2008 12:50 pm

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

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Wed Nov 12, 2008 3:50 pm

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.

Guest

Post by Guest » Wed Nov 12, 2008 4:05 pm

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

sourav

Re: Makefile how to create the .eep file

Post by sourav » Wed Oct 14, 2009 2:30 am

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?

Post Reply