# Spurious Interrupt Handler

**URL:** <https://forums.freertos.org/t/spurious-interrupt-handler/3719>\
**Category:** Kernel\
**Created:** [March 20, 2009, 7:12am UTC](https://forums.freertos.org/t/spurious-interrupt-handler/3719 "2009-03-20T07:12:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 20, 2009, 7:12am UTC](https://forums.freertos.org/t/spurious-interrupt-handler/3719/1 "2009-03-20T07:12:18Z")

</div>

**[meandmyself](https://sourceforge.net/u/meandmyself/)** wrote on [Friday, March 20, 2009](https://sourceforge.net/p/freertos/discussion/382005/thread/a31fb3aa/#de38):

I’m using FreeRTOS with IAR 5.20 on an AT91SAM7A3 processor.

I left my test program running through the night and by morning I’ve realised that it was stuck in the Spurious Interrupt Handler.

The code that I have as defined in Cstartup.s is as follows:

AT91F\_Spurious\_handler  
&nbsp;&nbsp;&nbsp; b&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AT91F\_Spurious\_handler

Could you state any reason for this behaviour?  
What would be the recommended handler? Just perform a EOI and return?

thanks

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 20, 2009, 8:02am UTC](https://forums.freertos.org/t/spurious-interrupt-handler/3719/2 "2009-03-20T08:02:22Z")

</div>

**[davedoors](https://sourceforge.net/u/davedoors/)** wrote on [Friday, March 20, 2009](https://sourceforge.net/p/freertos/discussion/382005/thread/a31fb3aa/#de38/a2c9):

Spurious interrupts are a feature of ARM7 devices with a separate interrupt controller. I normally just clear and return.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 20, 2009, 9:17am UTC](https://forums.freertos.org/t/spurious-interrupt-handler/3719/3 "2009-03-20T09:17:39Z")

</div>

**[meandmyself](https://sourceforge.net/u/meandmyself/)** wrote on [Friday, March 20, 2009](https://sourceforge.net/p/freertos/discussion/382005/thread/a31fb3aa/#de38/db70):

is there any defined code that I could use from FreeRTOS web site to deal with spurious interrupts in the ARM7?

thanks
