[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Mega16 interrupt problem.

From: mark bauer
Subject: [avr-gcc-list] Mega16 interrupt problem.
Date: Wed, 11 Feb 2004 15:47:58 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113

Mega16 and Mega163 version do not work with interrupts (for me).
Looking at the *.lst file, the vectors are correct, but the process
is just resetting.  The program is simple with only timer interrupt

I also noticed that only vectors located at 0x0000 to 0x0018 are
included but the reset program (and vector pointer) start at
0x001a.  What happened to the other 5 interrupt vectors at
0x001a -> 0x0023.  The program should start at 0x0024.

I must have something incorrectly setup.

avr-gcc version 3.3.2 under linux

Does anyone have an interrupt example for Mega16 or Mega163 that
works ?????

The command line to compile is

avr-gcc -g -Os -mmcu=atmega16 -c main.c -Wall
avr-gcc -g -mmcu=atmega16 -wl,-Map,main.map -o main.elf main.o



reply via email to

[Prev in Thread] Current Thread [Next in Thread]