Yahoo Groups archive

Lpc2000

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

Message

Re: Interrupt Question

2004-05-06 by digtalfreak

I can't see the reason in my code...
I nearly exactly copied the Keil example and adapted it for my module
and as long as no interrupt is generated everything works fine.

I am using cygwin3.3, gcc3.3.3 and insight6.0 from www.gnuarm.com.

I wrote my own startupcode and linkerscript, maybe the mistake is
there would be nice if someone can send me another working example for
gcc using timerinterrupts and simple led blinking.


--- In lpc2000@yahoogroups.com, "jim_e_dallas" <jim_e_dallas@y...> wrote:
> The address you referenced (0x7fffe2ae) is in the boot loader area. 
> Somehow your program must have jumped there or ran up to there. The 
> boot loader is in Thumb code, so if the rest of your code was ARM, 
> you might have generated a Data Abort or Invalid Instruction 
> exception when you ran into the thumb code.
> 
> Jim
> 
> --- In lpc2000@yahoogroups.com, "digtalfreak" <digitalfreak@n...> 
> wrote:
> > I solved the Problem, it was a wrong startupcode that blocked the
> > modus change.
> > 
> > But now I have the problem that the interrupt causes an exaption, I
> > think. The ISR is never reached and if I stop the programm the pc is
> > pointing to 0x7fffe2ae, this must be somewhere in the RAM-mapped
> > bootloader, how could this happen and how could I fix this?
> > 
> > --- In lpc2000@yahoogroups.com, "digtalfreak" <digitalfreak@n...> 
> wrote:
> > > I am using gcc and insignt and have problems using Interrupts.
> > > I'm trying to use Timer0 to generate a Interrupt, similar to the 
> Keil
> > > example "blinky", but the interupt is never generatet because the 
> cpsr
> > > register seems to be allways switched back to 0xd0. Looks like 
> my "msr
> > > cpsr_c, #0x10" is ingored or overwriten.
> > > btw... the precompiled keil example works with insight, timer is
> > > running and genarating interrupts.
> > > 
> > > please help...

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.