[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] atmega32 interrupt handler problem
From: |
Julius Luukko |
Subject: |
Re: [avr-gcc-list] atmega32 interrupt handler problem |
Date: |
Wed, 16 Jan 2008 08:30:53 +0200 |
User-agent: |
KMail/1.9.6 (enterprise 0.20071123.740460) |
On Wednesday 16 January 2008, Andrew S wrote:
> I was able to get the interrupt handler to run by adding the following
> code: ISR_ALIAS(__vector_default, TIMER2_COMP_vect);
>
> Confirming that the interrupt was being generated, but not being handled
> correctly.
>
> Investigating this further, I found that the following corresponded with
> the microcontroller running the correct interrupt handler for the interrupt
> in question:
> ISR(_VECTOR(8))
> { .. }
>
> Examining iom32.h, TIMER2_COMP_vect has been defined as _VECTOR(4). The
> difference (unconfirmed) being that $008 is the interrupt vector address
> and 4 is the index number? Can someone with more knowledge explain whats
> going on here?
>
Hi Andrew,
Have you checked that the -mmcu flag for gcc is correct (-mmcu=atmega32).
--
Julius