Forum: Mikrocontroller und Digitale Elektronik LPC2378-STK interrupt problem in Eclipse


von Marcin W. (basterzysko)


Lesenswert?

Hello,

I am newbie in programming ARM7. I have a Olimex LPC2378-STK board and I 
would like to test IRQ interrupt from Timer1, but it doesn't working.
Timer1 and blink led working without interrupt.

I put the whole code on http://alife.ath.cx/arm/.

I have cleared I_BIT in CPSR, in crt.s I have Code:
1
ldr     PC, [PC,#-0x120]

(LPC23xx why it's -0x120 not -0xFF0) and I have set VIC Registers.

I think that enableIRQ() and VIClowlevel.h and .c in my code can be 
deleted because I have set IRQ bit 0 in crt.s

My software:
openocd v1.0 svn: 1135
new yagarto & toolchain from yagarto.de
gcc: 4.3.2
eclipse: 3.4.1

Could anybody look at my code? Plz help and sorry for my English.

Marcin

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.