The Java-based Atmal bootloader software is JAvrProg, written by LadyAda. Once set up, it’s very slick. Unfortunately, Java doesn’t know how to work with serial ports out of the box, so you’ll need to set it up first...
This isn’t the easiest process in the world to do, but if you are careful, you can make it go
-
If you do not have a java runtime installed, download and install one from Sun:
http://java.sun.com/getjava/ - You must get Java 5.0 (also known as 1.5)
Get a Comm
API library for your
OS:
-
-
-
-
I couldn’t get javacomm to see any serial port but ttyS0, so I moved it temporarily and symlinked /dev/ttyUSB0 to /dev/ttyS0 - this will cause the
Verify button on
JAvrProg to fail, don’t worry.
Win32: Download Version 2.0 of the
CommAPI. Version 3.0 doesn’t have a windows port yet. You can download version 2.0 wiki here:
javacomm20-win32.zip
(WorkOnMe: need to finish off these instructions)
Assuming you’ve finally got Java IO working with your serial ports, you can finally run the bootloader.
Double click the file
JAvrProg.jar, or from the commandline run
java -jar JAvrProg.jar
Select the ATmega162 for Device type.
Browse to the location of your new firmware image, eg. x0xb0x-1_03.hex
Hit Program and hold your breath while the progress bar runs.
If you’re lucky enough to have firmware 1.03 installed already (Runs 2 and up), you can use c0ntr0l as a bootloader instead of JAvrProg. (FixMe is this still buggy and dangerous?)