ATmega32 Software Tools Installation Instructions

A Dr. Taylor Tutorial

Software Downloads

Download and save the following files on your computer:

Subdirectory Creation

Extract the Atmel.zip file onto your D: drive creating a subdirectory: D:\Atmel. The directory should contain the following:

11/23/2007  05:19 AM    <DIR>          ATmon
11/23/2007  05:13 AM    <DIR>          AVRTools
11/23/2007  05:14 AM    <DIR>          Documents
11/23/2007  05:13 AM    <DIR>          Projects
11/23/2007  05:13 AM    <DIR>          WinAVR

AVR Studio Installation

  1. Double-click on the aStudio4b589.exe file to begin installation of the AVR Studio program.
  2. Select Next from the InstallShield welcome screen.
  3. Read and accept the license (if you agree) and then select Next.
  4. Change the Destination Location to D:\Atmel\AVRTools (Note: no space in name) and select Next.
  5. Leave the Install/upgrade Jungo USB Driver option selected and select Next.
  6. Then select Install.
  7. Verify that the installation was successful and select Finish. If the installation was unsuccessful, consider dropping the course1).

WinAVR Installation

  1. Double-click on the WinAVR-20081205-install.exe file to begin installation of the WinAVR program.
  2. Select OK, Next, and I Agree (if you agree to the licensing information you just read).
  3. Enter D:\Atmel\WinAVR for the Destination Folder.
  4. Select Next and Install (all items should be checked).
  5. Verify that the installation was successful and select Finish. If the installation was unsuccessful, consider dropping the course2).

ATmon Installation

ATmon is a bootloader/monitor program devloped by an MSOE student under the direction of Professor Barnekow. ATmon can download programs to the ATmega32 development board. In addition, ATmon can read/write to internal registers, memory locations and I/O ports. It is extremely useful for debugging since it allows you to read/write to registers, memory and I/O while your program is running.

ATmon consists of two pieces of software. The bootloader is a small program that resides on the ATmega32 microcontroller. The monitor is a Java program that runs on a PC. The two programs communicate via a serial cable connection from the PC to the SunRom development board. All of the files needed to run ATmon are included in the ATmon folder of the Atmel.zip file:

09/11/2007  03:25 PM             9,330 ATmon installation.pdf
06/27/2006  02:32 PM            90,142 Atmon.jar
11/23/2007  05:19 AM               641 ATmonCfg.xml
09/12/2007  09:26 AM             5,170 BootLoader16.hex
09/11/2007  01:12 PM             5,170 BootLoader8.hex
06/27/2006  02:31 PM            28,937 m32def.inc
11/23/2007  05:17 AM                47 runjar.bat
01/30/2006  01:23 AM            59,464 RXTXcomm.jar
03/01/2006  01:01 PM            77,759 rxtxSerial.dll

It is likely that your instructor will install the bootloader on your development board for you; however, there are Bootloader Installation Instructions.

In order to run the ATmon monitor program, you will need to copy two files into the default Java JRE directory. Your PC may have more than one JRE directory. Typically the default directory is the most recent version of the JRE. Your default JRE directory may be something like: C:\Program Files\Java\jre1.6.0_07.

  1. Copy the RXTXcomm.jar file to JRE\lib\ext (where JRE is your default JRE directory).
  2. Copy the rxtxSerial.dll file to JRE\bin (where JRE is your default JRE directory).

Note: When the version of Java on your PC is updated, the default JRE directory will likely change. As a result, you will need to recopy these files to the new JRE directory in order for ATmon to work.

You should now be able to run ATmon by either double-clicking on the ATmon.jar or runjar.bat.

1), 2) or figuring out what went wrong and correcting it

Tutorials for Other Courses

Additional Links

Site Mirror

This is a mirror to be used when http://myweb.msoe.edu/taylor/, (EDU instead of US) is not available.