--- In lpc2000@yahoogroups.com, "unity0724" <unity0724@y...> wrote: > > Hi, Experienced similar problem before. > Got it fixed with moving all local variables to global variables. > (I also kept every C statement in the ISR to be simple, such that > it does not create own local variables on stack) > I think ver GCC 3.4 and onwards has that bug fixed. That is right. GCC 3.3.x and older generated incorrect entry/exit code for IRQ and FIQ handlers. Use 3.4.x or newer. Karl Olsen
Message
Re: GCC compiler generates wrong code for interrupt handler routines
2006-01-31 by Karl Olsen