# Missing Interrupts on M4

**URL:** <https://forums.freertos.org/t/missing-interrupts-on-m4/6431>\
**Category:** Kernel\
**Created:** [February 24, 2017, 12:21pm UTC](https://forums.freertos.org/t/missing-interrupts-on-m4/6431 "2017-02-24T12:21:14Z")\
**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:** [February 24, 2017, 12:21pm UTC](https://forums.freertos.org/t/missing-interrupts-on-m4/6431/1 "2017-02-24T12:21:14Z")

</div>

**[rdhammond15](https://sourceforge.net/u/rdhammond15/)** wrote on [Friday, February 24, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/f387b47e/#6cb5):

I am running FreeRTOS on an Infineon XMC4500F100K1024. Every once in a while the system tick ISR never gets exectued. During those periods, it seems like no interrupts excute. The only interrupts that are enabled are: Systick, PendSV, and DMA block transfer.

I’ve managed to set a breakpoint during one of these periods of lack of interrupts. Here are some register values:  
BASEPRI: 0  
FAULTMASK: 0  
ICSR:  
ISRPENDING: 1  
PENDSTSET: 0  
VECTPENDING: 0  
VECTACTIVE: 0  
SYST\_CSR:  
ENABLE: 1  
TICKINT: 1

I have the kernel priority set to 63 (it then properly gets shifted over by 2). The syscall priority is set to 5. Any idea as to what is happening to the interrupts would be greatly appreciated. I’ve attached a picture of a GPIO going high upon entering the systick ISR and then low on exiting. It also shows a GPIO going high when taskENTER\_CRITICAL is called and low when taskEXIT\_CRITICAL is called. This is the only method to turn on/off interrupts. The missing ISRs usually have a period of ~100ms.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [February 24, 2017, 12:21pm UTC](https://forums.freertos.org/t/missing-interrupts-on-m4/6431/2 "2017-02-24T12:21:58Z")

</div>

**[rdhammond15](https://sourceforge.net/u/rdhammond15/)** wrote on [Friday, February 24, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/f387b47e/#88de):

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [February 24, 2017, 3:34pm UTC](https://forums.freertos.org/t/missing-interrupts-on-m4/6431/3 "2017-02-24T15:34:56Z")

</div>

**[rdhammond15](https://sourceforge.net/u/rdhammond15/)** wrote on [Friday, February 24, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/f387b47e/#7041):

Solved the issue. A stack that I integrated was calling gettimeofday. This caused the undefined behaviour I was seeing.
