Atmel ATAVRBFLY Data Sheet

Page of 42
AVR Butterfly User Guide
-11
4271C–AVR–04/05
Figure 2-2 shows the menu system of the application that comes with the AVR Butterfly.
The column to the left displays the main menu: “AVR Butterfly”, “Time”, “Music” etc… To
shift between the alternatives in the menu, press the joystick UP or DOWN. To enter a
sub-menu, press the joystick to the RIGHT. To exit a sub-menu, press the joystick to the
LEFT. To enter/adjust a value, press ENTER. E.g. when “Adjust clock” appears in the
LCD, press ENTER to enter the adjust function.
2.4
Bootloader
The AVR Butterfly comes with a bootloader which uses the self-programming feature in
the ATmega169. The bootloader combined with the integrated RS-232 level-converter
makes it possible to upgrade the application without any external hardware. It is based
on the Application Note AVR109: Self Programming AVR, but uses the new buffer load
mode for more efficient data downloading. AVR Prog, which is included in AVR Studio4,
is used as PC frontend. The data is transmitted through the RS-232 interface. Connect a
serial-cable from the PC to the AVR Butterfly as described in Section 3.7 “Connect to
PC”.
Figure 2-3.  AVR Prog in AVRStudio4
2.4.1
Upgrade the 
ATmega169
A jump to the boot section can be done from the application, “Options>Boot-
loader>Jump to Bootloader”, see Figure 2-2, or just reset the ATmega169 by shortcut
pin 5 and 6 on J403 the ISP connector, (after a reset the ATmega169 will start in the
boot section). See Figure 3-3 for the pinout of the ISP-connector. Nothing will be dis-
played on the LCD while in boot section. Press and hold the joystick in the ENTER-
modus while starting AVR Prog. When AVR Prog starts, release the joystick. Find the
*.hex file you want to program with the “Browse” button, and press “Program”. See that
“Erasing Device”, “Programing” and “Verifying” goes “OK”, this is done automatically.
After upgrading the application, press the “Exit”-button in AVR Prog in order to leave
programming mode in the ATmega169 bootloader.