■ FIGURE 15. AVRUP VI.
■ FIGURE 16. Hello test.
something (an uploader) is on the port and knows how to
speak bootloader talk, then the bootloader and the
uploader collude to take the application program from the
PC and put it in the AVR application memory (overwriting
the previous application). The bootloader’s final act is to
set the AVR to run the application.
Uploading With AVRUP V1
are going to build all this and have it go as smoothly as
indicated by this Workshop? Remember what I said about
failing your way to success? Well, all I can say is that I
messed up multiple times at every step, but did eventually
get it all working. You have all the source materials and
should be able to duplicate my success. Next month, we
are going to take all we’ve learned of late and build an
even more capable system to support our future learning
about the AVR architecture and C programming. NV
Open AVRUP V1, click on the
‘File to upload’ menu item, and select
the Hello_World.hex file from
whereever you stored it. Next, click
the ‘Select Port’ item and select the
COM port your Breadboarduino is
using (this item should be familiar
from the last three Workshops). Next,
click on the ‘Select Board’ item and
select the ‘ATmega168.xml’ file. The
‘AVRDude Script’ window should
look like the one in Figure 15
(except for the m328p which should
be m168p). Now, click ‘Upload to
Board’ and watch your
Breadboarduino LED flash indicating
reset, and note that the red and
green LEDs on the SparkFun board
twiddle around as avrdude
communicates with the bootloader.
The ‘AVRDUDE Response’ textbox
fills with lots of information and is
followed by ‘avrdude.exe done.
Thank you.’
Finally, fire up Simple Terminal
and test the board as shown in
Figure 16.
No Seriously ...
What are the chances that you
April 2010 57