Application notes - HTML
Extractinig Atmel AVR8/16 .elf project
Needed software: WinAVR: can be downloaded from http://sourceforge.net/projects/winavr/files/WinAVR/Step by step manual
STEP-01
Run command prompt
STEP-02
STEP-03
![]() |
Using the command “avr-readelf -l <project_name.elf>” you can display the program headers and section's header stored in the project file.
|
STEP-04
![]() |
use command “avr-objcopy -O binary -j .text <project_name.elf> flash.bin”
|
STEP-05
![]() |
use command “avr-objcopy -O binary -j .eeprom <project_name.elf> eeprom.bin”
|
STEP-06
![]() |
use command “avr-readelf -x .fuse <project_name.elf>”
|
STEP-07
![]() |
use command “avr-readelf -x .lock <project_name.elf>”
|
STEP-08
Erase the whole buffer.
STEP-09
Load an EEPROM data. They will be stored at address 0.
STEP-10
Open View/Edit Buffer.
STEP-11
Move an EEPROM data to the correct address.
STEP-12
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






