Downloading Your Program
Links Mentioned
APP-IV resources

Online Library Reference
 

Links
Home
AWC

Atmel
 


Home
Introduction
Writing a Program
Building your Program
Downloading
Debugging
Modifications
Advanced


NOTICE: THIS IS AN ARCHIVAL COPY OF THIS COURSE. For the latest version, please visit our interactive classroom.

When the program is compiled correctly, you can use "make program" to send it to the APP-IV. If any files are out of date, the makefile will rebuild them, so you could have used it first, although no programming will occur if there were errors in the build process.

The makefile will prompt you to place the jumper cap on the APP-IV and press the reset button onboard. When you press Enter, the programming software will download your program to the board. Here's what the screen looks like:

Place jumper cap on and press Reset
NOTE: If you have a terminal program active, disconnect it
Then press enter

uisp -dprog=avr910 -dpart=auto -dserial=/dev/com1 --erase --upload if=tutor.hex --verify -v
Programmer Information:
Software Version: 2.3, Hardware Version: 1.0
Address Auto Increment Optimization Enabled

Trying with: ATmega8 BOOT
Atmel AVR ATmega8 is found.
Erasing device ...
Reinitializing device
Atmel AVR ATmega8 is found.
Uploading: flash
################################################################################
#######################################################
(total 4306 bytes transferred in 57.10 s (75 bytes/s)
Verifying: flash
################################################################################
#######################################################
(total 4306 bytes transferred in 25.25 s (171 bytes/s)

When the programming process is complete, you can remove the jumper. You'll want to start up a terminal program (for example, Hyperterminal) and set it up for 19200 baud, 8 bits, no parity, 1 stop bit, and no hardware handshaking. When the terminal program is connected, you can press the reset button on the APP-IV to see the results. If you don't have local echo turned on in your terminal program, you won't be able to see what you are typing (which is not a big deal). Be sure to close or disconnect the terminal program before trying to program again.

This program is fairly simple, but for a real program, you might want to debug the program or optimize it to some degree.

Back Home Next