This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARM LPC2378: data/prefetch abort after interrupt

I have a problem with ARM LPC2378 revision B, configured with CPU clock frequency at 72 MHZ.
I have the following configuration:
- an IRQ interrupt function linked to CPU timer 0 (vectored interrupt). It is invoked with a period of 1 ms
- an FIQ interrupt function linked to the half-empty flag of RX queue of MCI bus controller (the bus used to communicate with SD-MMC cards).

During the reading of a file from an SD card CPU switches to "Data Abort" or "Prefetch Abort". While CPU is in this error condition I very often see that IRQ stack pointer is corrupted, i.e. it points to an invalid address. However this doesn't happens every time, but only very often.

I've controlled that stack dimension of each mode is well sized.

Inside the IRQ function some other functions are invoked. If I rewrite the code of these inner functions as "inline code" inside the IRQ function the system doesn't crash!
It seems the problem to be the call of a function inside the IRQ function but I'm not sure of this conclusion.

The problem happens both with MAM fully enabled and MAM partially enabled.

Any suggestions?

Thanks and have a nice day!

Demis

0