SMILEY’S WORKSHOP ☺
In the Programmer Main tab, read the signature just
to verify that you really are communicating with an
ATmega644 (as shown in Figure 6).
In the Fuses tab (see Figure 7), set the BOOTSZ to
$7E00 and check the BOOTRST fuse.
Finally (as shown in Figure 8), open the Program tab
and make sure you are pointed to the hex file; then click
Program.
Using EduBootAVR
Great! Now we have our own bootloader that we can
use to upload programs. Let’s take the ATmega644 that
we just used the STK-500 to load the bootloader and put
it on a breadboard like the BeAVR shown in Figure 9
(discussed in detail in Smiley’s Workshop 22 – Busy as a
BeAVR). In earlier Workshops, we’ve seen how to use
bootloaders with various programs. This includes AVRProg
with the Butterfly; the Arduino IDE with the Arduino; and
avrdude with several things. We’ll finish off this month by
using avrdude in the Command Prompt. We’ll do this
cookbook style since we’ve seen the details before.
■ FIGURE 12. Bray’s Terminal.
• Make sure that you have the code from Workshop 25
located at: C:\pgmtest. We will upload this to our
application section using edubootavr.
• Make sure that you have compiled
pgmtest for the ATmega644
(BeAVR40).
• Find the Command Prompt
program (probably under Start\All
Programs\
Accessories\Command Prompt).
• Open Command Prompt and type
in: cd C:\pgmtest\default (if that is
where you’ve put that code) and
hit return to take you to the
pgmtest default directory where
pgmtest.hex resides.
• Find the COMx port your
BeAVR40 is talking to.
• Open NotePad and type in:
avrdude -p m644p -c avr109 -P
COM3 -b 57600 -v -F -D -U
flash:w:pgmtestBeAVR.hex.
• Copy that and paste it to the
Command Prompt as shown in
Figure 10.
• Hit enter and it should upload
pgmtest as shown in Figure 11.
• Open Bray’s Terminal and reset
the BeAVR40 which should show
the text in Figure 12.
the Nuts & Volts WEBSTORE section in the magazine or on
the Internet where you can get my books and project kits
to help you learn and have some fun doing it. NV
;;;;;;;;;;;;;;;
;;; ;;;
;;;;;;
Optional LCD Module: $17.95
;;; ;;;
;;;; ;;;;;;;; ;;;; ;;;;;; ;;;;;; ;;;;;;;;;;
ASSEMBLED
;;;;;;;;
;;;;;;;;;;;
;;; ;;;
ASSEMBLED
So, now you know all about
AVR memory. If you thought this was
edifying, then don’t forget to check
;;;;; ;;;; ;;;; ;;;;;;;;;;; ;;;;; ;;;; ;;;;;;
Assembled: $49.95
;;; ;;;;;;;;;;;;; ; ;;;;;;; ; ;;;;;; ;;;;;;;;;; ; ;;;;;; ;;;;;;;;;;;; ; ; ; ; ;; ;;;;;;; ;;;;;;;
;;; ;;;
;;;;;;
;;;;;;; ;;;; ;;;;;; ;;;;;;;;;;; ;;;;;
;;;;;;;;;; ;;;;;;;;;;;;;;; ;;;;;;;;;
;;;;;;
October 2010 65