Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Re: Interrupt Question

2004-06-14 by Robert Adsett

At 07:20 PM 6/14/04 +0000, you wrote:
>of the OP. Did you find a solution meanwhile?
>I'm using gcc 3.2.1 under cygwin and tried to build the blinky_irq
>example for a LPC2106. Since it didn't work I stripped the program
>down to a bare endless loop in main() and a timer ISR that toggles a
>LED an GPIO24. After approx. 3min. the LED stops toggling and I get an
>Abort exception. A look at the disassembled code showed that gcc is
>messing up the stack pointer in IRQ mode, losing some words every time
>the ISR is invoked.

Well, there has been (is?) a problem with interrupts on the ARM using 
GCC.  There should be others lurking here with more information on that. 
BTW, I just checked I'm using 3.3.2 and it's not that new.  If you are just 
starting I'd really seriously consider a newer version.

I don't trust compilers for this sort of thing anyway.  More fodder for my 
paranoia :)

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

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.