Yahoo Groups archive

Lpc2000

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

Message

Disabling/enabling interrupt causing a data abort

2004-04-20 by Curt Powell

All,

I have  a process receiving data from an rf modem (currently running at
4800 baud) using EXTINT2.  The data is clocked into a byte and complete
bytes are placed into a temporary holding buffer.  The main thread
periodically pulls the data from the holding buffer into a larger buffer
in order to perform operations on it (bit shifts, etc.).  I've been
receiving data abort exceptions periodically on this process.  Turns out
that I was disabling EXTINT2 prior to pulling data from the temp buffer
and reenabling EXTINT2 immediately afterwards.  This disabling/enabling
is what is causing the exception, i.e. if I remove the disable/reenable
the problem goes away as far as I can tell.  I am disabling by writing
0x10000 to VICIntEnClr (0xfffff014), enabling by writing 0x10000 to
VICIntEnable (0xfffff010).  

Two questions:

1.  Is this the correct approach for disabling/reenabling EXTINT2?
2.  Can anyone venture a guess why disabling/enabling EXTINT2 would
cause a data abort?

TIA to all responders...

Curt

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.