Software Downloads
Download and save the following files on your computer:
- Folder Structure and ATmon — Provides:
- A common directory structure for the development tools with the ATmega32 microcontroller.
- The ATmon bootloader and monitor tool.
- AVR Studio 4.13 build 589 — The IDE we will use to develop our assembly programs.
- WinAVR — Provides a Gnu C compiler and AVRLibC that may be used later in the quarter.
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
- Double-click on the
aStudio4b589.exe
file to begin installation of the AVR Studio program. - Select
Next
from the InstallShield welcome screen. - Read and accept the license (if you agree) and then select
Next
. - Change the Destination Location to
D:\Atmel\AVRTools
(Note: no space in name) and selectNext
. - Leave the
Install/upgrade Jungo USB Driver
option selected and selectNext
. - Then select
Install
. - Verify that the installation was successful and select
Finish
. If the installation was unsuccessful, consider dropping the course1).
WinAVR Installation
- Double-click on the
WinAVR-20081205-install.exe
file to begin installation of the WinAVR program. - Select
OK
,Next
, andI Agree
(if you agree to the licensing information you just read). - Enter
D:\Atmel\WinAVR
for theDestination Folder
. - Select
Next
andInstall
(all items should be checked). - 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
.
- Copy the
RXTXcomm.jar
file toJRE\lib\ext
(whereJRE
is your default JRE directory). - Copy the
rxtxSerial.dll
file toJRE\bin
(whereJRE
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
.