Thank you, I'll upgrade as soon as is possible even I I'll have to renounce to the Keil uVision IDE. Someone told me that is compatible only with GCC 3.3.1 Carlo Barbaro --- In lpc2000@yahoogroups.com, "Karl Olsen" <kro@p...> wrote: > > --- 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 c.barbaro