My favorites | Sign in
Project Logo
             
Search
for
Updated Feb 04, 2010 by opendous
Labels: Phase-Implementation, Featured
Loading_Firmware  
Instructions for loading firmware hex files onto the board

Loading Firmware in Windows

The only required software for the following is Atmel's FLIP (Flexible In-System Programmer).

See Loading_EEPROM_Firmware for more information on loading EEPROM data.

Installing Atmel's FLIP Drivers

You may need to be logged in as Administrator to perform the following.

If you previously attempted to install Atmel's FLIP (Flexible In-System Programmer) drivers for the DFU Bootloader but nothing works, remove the drivers by following the UninstallingDriversInWindows wiki page.

  • Plug in your AVRopendous board and enter bootloader mode by pressing the RESET and HWB buttons, then release the RESET button, then release the HWB button.
  • Windows' driver installation should begin, do not let Windows search:
  • You will want to install from a specific location:
  • The specific location is the \usb directory of your Atmel FLIP installation:
  • The driver files are also in that directory:

That's it. You should now be able to load firmware.

Loading Firmware Graphically

Loading Firmware using the Command Prompt

you will need to add the \bin directory of your Atmel FLIP installation to your PATH. Simply type (replacing C:\Program Files\Atmel\Flip 3.3.1\bin with the \bin directory of your Atmel FLIP installation):
PATH = %PATH%;C:\Program Files\Atmel\Flip 3.3.1\bin
c:\
cd AVRopendous
cd Firmware
cd AVRopendousKeyboardTest
batchisp -hardware usb -device at90usb162 -operation erase f
batchisp -hardware usb -device at90usb162 -operation loadbuffer AVRopendousKeyboardTest.hex program
batchisp -hardware usb -device at90usb162 -operation reset

You should get the following output:

Loading Firmware in Linux

  1. Install dfu-programmer, which is part of the install procedure in SettingUpUbuntuLinux
  2. Open a terminal and change directory to the location of your .hex file.
  3. Run the following two commands:
sudo dfu-programmer at90usb162 erase
sudo dfu-programmer at90usb162 flash --debug 1 AVRopendousKeyboardTest.hex
  • The above commands need to be run as root unless you have user access to USB enabled.
Powered by Google Project Hosting