How to update the software

The devices use the dfu programmer. You will need either:

  1. Open source dfu-programmer
  2. Flip programmer from atmel. Only works on windows and is not open source.

The above programmers communicate with the bootloader program on the device. The bootloader is a small program located at the end of flash which has the sole purpose of loading a new program. To tell the device to go to the bootloader, hold button 1 down at powerup. Alternately, if the device is configured for usb-cdc mode, or uart mode, then send the escape character '\033' to the device. In rare circumstances (if you load bad code AND the device has the default bootloader) you will need to open up the device; to force the bootloader in hardware: power it on, then short the two bootloader pins (force bootloader at reset), then short pins 1 and 5 of CONN2 (reset the device) Now the device should be in the bootloader.

There are two files, one ending in .hex, the other .eeprom.hex. The .hex file is the main software program and resides in flash. The .eeprom.hex file goes in eeprom (memory on the device which is easier than flash to read and write, and isn't erased at loss of power) which mainly stores settings and default parameters. You must program both files for the device to work correctly.

If you are using the dfu-programmer, you can program the device with:

dfu-programmer at90usb1287 erase
dfu-programmer at90usb1287 flash-eeprom surveydevice.eeprom.hex
dfu-programmer at90usb1287 flash surveydevice.hex
dfu-programmer at90usb1287 start
Replace surveydevice with the correct filename.

If you are using the atmel flip programmer, here are the steps needed:
  1. Install Flip software
  2. Connect DUSI with USB cable to computer
  3. Computer will find the new hardware
  4. Install USB driver located at: C:\Program Files\Atmel\Flip 3.3.2\usb
  5. Start Flip program
  6. Device | Select choose AT90USB1287
  7. If DUSI is on, turn off, then Hold button #1 down and turn on DUSI
  8. DUSI screen may be faint
  9. Settings | Communication | USB Click on Open button
  10. Flip display should fill in information
  11. Click on green Select EEPROM button (this button toggles between EEPROM & Flash)
  12. File | Load Hex File
  13. Go to directory with the downloaded files and select survey.eeprom.hex
  14. Click on Run button, wait for operation to finish
  15. Click on yellow Select Flash button
  16. File | Load Hex File
  17. Go to directory with the downloaded files and select survey.hex
  18. Click on Run button, wait for operation to finish
  19. Click on orange Start Application button
  20. DUSI screen will return to normal.