Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Having trouble getting interrupts to work on GNUARM + LPC2106

2005-06-28 by chabely_k99

Does anyone have a simple example including a startup.s file that I 
can compile in GCC that demonstrates how to use interrupts? I've 
looked at and have tried many examples. I can get the interrupt to 
fire once but never again. I think the interrupt isn't being reset 
correctly within the ISR. I'm usings the following ISR function. I 
can get the ISR to work correctly using the Imagecraft ARM compiler. 
Same LED.c file but different startup.s file. The Imagecraft compiler 
is doing something behind the scenes that allow the interrupts to 
work that I don't understand.

void TimerMatch( void ) __attribute__ ((interrupt ("IRQ")));
void TimerMatch( void )
    {
	p+=1;
	LED_OFF ;
	
    TIMER0_IR = 0x1;   // clr Timer interrupt
    VICVectAddr = 0xFF;

    }

Thanks!

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.