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 _______________________________________________ AVR-GCC-list mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
