Yahoo Groups archive

Lpc2000

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

Message

Re: GCC compiler generates wrong code for interrupt handler routines

2006-01-31 by c.barbaro

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
>

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.