Udayan Kumar


  ATmega32

  Assembly Programming

  Using OS

  Links

  Back

  Home




  


  
 


Using Atmega32 on stk 500 and beyond


   I am a beginner at using microcontrollers. During my btech project I am having an extensive opportunity to work on them. My project title is “Modular Sensor Network Testbed Development”, the idea is to make a sensor network testbed with capabilities which would allow changing of different modules independent of each other ( different modules are Power, processing, sensor and communication). I am working in a group of 4 students. I have processor and bus architecture part. In course of it i came across many microprocessors. Atmega32 is one of them. Nice processor with 32k flash. Compatible with STK-500, though my manual of STK-500 is not saying that. Figuring everything out was a very difficult process. Resources are there, but scattered all over the net. Even for figuring out which socket on STK-500 to use, it took me considerable time. So the idea here is to put everything required to use Atmega32 on STK-500, though i am in a process of moving out of the shackles of STK-500.

I am describing the process only for LINUX.


On STK-500

Use socket SCKT3100A3 and remove any other microcontroller from the board. While removing existing AT90S8515 i damaged its pins. pl be careful

Software Required for Programming AVR

Install the following software on your machine.

GNU Binutils All low level utilies for manipulation and building of Object files, also has avr assembler and linker
AVR-GCC Cross Compiler for AVR platform
AVR LIBC C function Library
UISP Programmer, for image transfer to AVR
AVRDUDE Programmer, for image transfer to AVR

 

Out of UISP and AVDUDE any one can be installed. I prefer using AVRDUDE. Down load the sources and extract the tarballs. The default location for installing these tools is in directory /usr/local.

Compile and install tools

You need to be root to do make install.

GNU binutils
Enter directory binutils-x.xx/, and do the following.

configure --target=avr
make
make install


AVR-GCC
Enter directory gcc-xxxxxxx/, and do the following.

configure --target=avr --disable-nls --enable-languages=c
make
make install


AVR-LIBC
Enter directory avr-libc-xxxxxx/, and do the following.

doconf
domake
domake install

UISP
Enter directory uisp-xxxxxx/, and do the following.

configure
make
make install

AVRDUDE
Enter directory avrdude-x.xx/, and do the following.

configure
make
make install

Some useful links

http://www.linuxfocus.org/English/March2002/article231.shtml





Udayan Kumar [udayan _ kumar at@ da-iict dot org]
 
eXTReMe Tracker