# Interrupt handler is not Notifying after 98 times in Zynq702 

**URL:** <https://forums.freertos.org/t/interrupt-handler-is-not-notifying-after-98-times-in-zynq702/6427>\
**Category:** Kernel\
**Created:** [March 3, 2017, 6:43pm UTC](https://forums.freertos.org/t/interrupt-handler-is-not-notifying-after-98-times-in-zynq702/6427 "2017-03-03T18:43:10Z")\
**Posts on this page:** 5\
**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 3, 2017, 6:43pm UTC](https://forums.freertos.org/t/interrupt-handler-is-not-notifying-after-98-times-in-zynq702/6427/1 "2017-03-03T18:43:10Z")

</div>

**[krishnam1](https://sourceforge.net/u/krishnam1/)** wrote on [Friday, March 03, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/84edbfb1/#2363):

Hi,

Iam using Zynq702, in this we have an hardware that can communicate with the Processing System (PS) using AXI bus.PS is AXI Master.

Data Flow and Hardware Details as mentioned below:

Data From Wire–\> Programmable Logic (FPGA) – \> BRAM --\> AXI Interconnect --\> PS  
After the above sequence the data is made available to the PS(ARM Core).  
Interrupt is sent to PS to start fetching using SCUGuic using GPIO from PL to PS.

In FreeRTOS (8.2.3) created 1 interrupt and 1 task.  
Priority of this interrupt task is greater than RTOS timer interrupt.  
In this Interrupt routing FromISR function only used to notify the Task.

Below are the obervation.

1.Works fine for 98 times, interrupt able to notify the task  
2.On 98th time interrupt occurs and NotifyFromIsr also called but the break point is not hitting the task.

As a RTOS it should not fail to start any task from the interrupt.

I don’t know why it failing in the FreeRTOS.  
Tried to debugging using StateViewer but not able to see for FreeRTOS.  
Is there any way to fix this issue.

Regards,  
KrishnaM

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [March 5, 2017, 4:38am UTC](https://forums.freertos.org/t/interrupt-handler-is-not-notifying-after-98-times-in-zynq702/6427/2 "2017-03-05T04:38:50Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Sunday, March 05, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/84edbfb1/#d41c):

Is it always on the 98th interrupt?

Can you show the task code, where the notification is received, and the interrupt code, where the notification is sent.

Do you have [configASSERT](http://www.freertos.org/a00110.html#configASSERT)() defined and[stack overflow checking](http://www.freertos.org/Stacks-and-stack-overflow-checking.html) switched on?

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 6, 2017, 11:59am UTC](https://forums.freertos.org/t/interrupt-handler-is-not-notifying-after-98-times-in-zynq702/6427/3 "2017-03-06T11:59:47Z")

</div>

**[krishnam1](https://sourceforge.net/u/krishnam1/)** wrote on [Monday, March 06, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/84edbfb1/#d41c/d2ef):

Hi,

Thanks for the quick response.

Yes, it is 98th time.

Observed that frequency of this interrupt is \<400uS.  
Also interrupt to task swtiching time for the working case is 2.6uS

Yes, configASSERT() and stack overflow checking switched on.

configTotal\_HEAP\_SIZE set to 4MB in FreeRtosConfig.h.

This particular task stak size is configured to 12KB.

It would be great help if you can give any hints for debugging this behavior.

Regards,  
KrishnaM

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [March 8, 2017, 6:36pm UTC](https://forums.freertos.org/t/interrupt-handler-is-not-notifying-after-98-times-in-zynq702/6427/4 "2017-03-08T18:36:31Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Wednesday, March 08, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/84edbfb1/#d41c/d2ef/898e):

Apologies for the delay in your post appearing. For some reason it went  
into a moderation queue, even though its not supposed to.

As its so consistent can you add a counter into your code to enable you  
to put a break point no the 98th occurrence, and then step into the code  
from there to try and determine the route cause?

Something like:

++counter;  
if( counter == 98 )  
{  
\_\_asm volatile( “NOP” ); // Place breakpoint here.  
}

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 9, 2017, 2:00am UTC](https://forums.freertos.org/t/interrupt-handler-is-not-notifying-after-98-times-in-zynq702/6427/5 "2017-03-09T02:00:40Z")

</div>

**[krishnam1](https://sourceforge.net/u/krishnam1/)** wrote on [Thursday, March 09, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/84edbfb1/#d41c/d2ef/898e/b1d5):

Hi,

sure, i will try & let you know.  
Observed that it is entering to abort handle when we are trying to access the same memory at 98th time…  
If i comment axi bram buffer accessing inside task then i wont see the data abort,

To ensure it is not an freertos isuue is there any way I can check tcb or task information when reaches 98th count.

Does freertos capable to handle frequent context switching at every 400us?

Regards,  
KrishnaM
