USING
THE BOOTLOADER
Using
the LUB is fairly easy. The PC software has
been tested on Linux and Windows, and it might
work on other platforms too. It’s loosely based
on the AVRDUDE open-source programming utility.
The
PC software is a command-line-based software
called lubloader. The options you can pass to
it are shown in Table 1.
When the software is running, it will ask you
to power cycle the attached device. This forces
a reset of the ATmega88, which will make it
execute the tinyloader. An example of the FPGA
update process is shown in Figure 4.
|

(Click
here to enlarge)
|
Figure
4—This example sends a new FPGA file to
the AT45DB041 and forces its load. The number
of pound signs slowly increases and the
time counts up during programming. |
One
of the most useful options is the –v, or verbose,
option to tell you what it is doing. Keep adding
vs until you see what you want. For example,
–v adds some debugging information such as file
names. –vv adds information about each packet
sent. –vvvv prints each byte sent and received.