Application notes - HTML
Extractinig Atmel AVR8/16 .elf projectNeeded software: WinAVR: can be downloaded from http://sourceforge.net/projects/winavr/files/WinAVR/
Step by step manual
Run command prompt
USE “dir” and “cd” commands to get into folder, where the project is saved
Using the command “avr-readelf -l <project_name.elf>” you can display the program headers and section's header stored in the project file.
use command “avr-objcopy -O binary -j .text <project_name.elf> flash.bin”
use command “avr-objcopy -O binary -j .eeprom <project_name.elf> eeprom.bin”
use command “avr-readelf -x .fuse <project_name.elf>”
use command “avr-readelf -x .lock <project_name.elf>”
Erase the whole buffer.
Load an EEPROM data. They will be stored at address 0.
Open View/Edit Buffer.
Move an EEPROM data to the correct address.
Load Flash Data. They will be stored at address 0.
Setting of “View/Edit Lock, Fuses and Calibration window” using AVRStudio
If you don't have AVRstudio, continue by clicking here
STEP-13 If you are using AVRstudio
In AVRstudio select programmer, which supports your device. Run in Disconnected Mode.
STEP-14 If you are using AVRstudio
Select your device in PP/HVSP mode.
STEP-15 If you have AVRstudio
Insert the obtained fuse settings into the corresponding places.
STEP-16 If you are using AVRstudio
The checkboxes will change according to an inserted hex values.
STEP-17 If you are using AVRstudio
Set the fuse bits according to an AVRstudio settings.
STEP-18 If you are using AVRstudio
Insert an obtained Lock setting into the corresponding place.
STEP-19 If you are using AVRstudio
You can see the desired setting and set it in pg4uw.
Setting of “View/Edit Lock, Fuses and Calibration window” using datasheet
STEP-13 If you are using datasheet
Obtain a fuse bits settings using obtained data.
STEP-14 If you are using datasheet
Implement an obtained fuse setting into pg4uw.
STEP-15 If you are using datasheet
Obtain the correct lock bits setting unsing obtained data.
STEP-16 If you are using datasheet
Set the correct lock bits setting using datasheet.
Presov, January 2012
Author: Jan Drab, Elnec
Return to Application notes