AVR1605
7
8242A-AVR-05/09
2) Communicates with AVRBOOT
3) Enters programming mode
4) XML file is parsed and new XML file is generated in the current working folder
5) Signature is checked to match
6) Chip erase is performed
7) Leaves the programming mode
3.2 Write a file to flash
This section explains how to write/download a file to the flash.
Ensure that the steps to make the device wait in bootloader section are done [Press
both External RESET and SW0 buttons on STK600 and release the RESET first and
then the SW0].
In windows explorer, run the batch file x128A1_flash_write_file.bat. The batch file
runs the following command to program and verify the flash memory:
AVROSP -dATxmega128A1 -e -ifflash.hex -pf -vf
Table 3.2 -1.
Command Description
Command Description
-e
This command will erase the flash the device.
-ifflash.hex
This command will give the ‘flash.hex’ file as an input file for programming the
flash
-pf
This command will program the flash
-vf
This command will verify the flash content after programming
After comparing, by the verification command, “Equal!” string in the command window
is to be noted which ensures that the programming of flash memory with the given
input file is performed without any error.
Refer Figure 3.2-1 Downloading to Flash where you can see the “Equal!” string.