Loading Firmware in WindowsThe 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 DriversYou 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- 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.
- Under Device, click Select and then choose the AT90USB162 MCU.
- Under Communication, select USB.
- Now find the .hex file to load. Under File, click Load Hex File... and browse to the location of your .hex file.
- Select the Erase, Program, and Verify check boxes and click Run to program the board.
- If all was successful, the lights should be green.
- Press the RESET button on your AVRopendous board to start your custom firmware.
Loading Firmware using the Command Prompt- 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.
- If you do not have a shortcut to the Command Promt, you can access it by clicking Start, then Run, then running the cmd command.
- A Command Prompt should appear.
- Try running the batchisp command. You should get the following:
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
- To actually program your .hex file, change directory to where it is and run batchisp. Assuming you extracted the latest AVRopendous Release to C:\AVRopendous,
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- Install dfu-programmer, which is part of the install procedure in SettingUpUbuntuLinux
- Open a terminal and change directory to the location of your .hex file.
- 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.
|