<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>MQX Software SolutionsのトピックRe: _timer_start_oneshot_after  kills my application</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/timer-start-oneshot-after-kills-my-application/m-p/217089#M5579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I though I could call that function since it is not specifically mentioned in the list of&lt;/P&gt;&lt;P&gt;"3.10.3.2 Functions That ISRs Should Not Call "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Oct 2009 05:28:38 GMT</pubDate>
    <dc:creator>MQXuser</dc:creator>
    <dc:date>2009-10-10T05:28:38Z</dc:date>
    <item>
      <title>_timer_start_oneshot_after  kills my application</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/timer-start-oneshot-after-kills-my-application/m-p/217085#M5575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to know the reason the following code results in INTERRUPT STACK OVERFLOW.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The function is an Edge Triggered Interrupt and problem comes when I try to start a one shot timer.&lt;/P&gt;&lt;P&gt;Timer component is created before with priority 3 and 2000 stack. I have a periodic timer running and 4 interrupts (Edge Triggered Interrupts) can start another timer each. Therefore, I can have 5 timers running at the same time. Problem comes when trying to create the first timer within an interrupt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;
static void CleanWiegandDoor1(_timer_id timer_id,pointer event_ptr,uint_32 seconds,uint_32 milliseconds){
     Door1Counter = 0;
}

void DMA_T0_ISR(pointer dummy_param){   if(!Door2Counter){
    _timer_start_oneshot_after( CleanWiegandDoor2, 0 , TIMER_KERNEL_TIME_MODE, 50 );   }   Door2Counter++;   if(Door2Counter &amp;gt;= WiegandBitQty){       Door2Counter = 0;      FifoInsertDataID(codeReadD2, 2); //Codigo y La Puerta      codeReadD2 = 0;   }   DTIM_clr_flag(0);   return;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&amp;nbsp;Regards&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Sep 2009 07:39:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/timer-start-oneshot-after-kills-my-application/m-p/217085#M5575</guid>
      <dc:creator>MQXuser</dc:creator>
      <dc:date>2009-09-19T07:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: _timer_start_oneshot_after  kills my application</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/timer-start-oneshot-after-kills-my-application/m-p/217086#M5576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I will reorder my question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I start a timer from an interrupt?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 21:14:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/timer-start-oneshot-after-kills-my-application/m-p/217086#M5576</guid>
      <dc:creator>MQXuser</dc:creator>
      <dc:date>2009-09-22T21:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: _timer_start_oneshot_after  kills my application</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/timer-start-oneshot-after-kills-my-application/m-p/217087#M5577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I am at the point where I need to solve this problem. How to start a timer from an interrupt?. Are there logical reasons that prevent my application to use the instruction mentioned into a ISR that I have created?&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Oct 2009 01:25:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/timer-start-oneshot-after-kills-my-application/m-p/217087#M5577</guid>
      <dc:creator>MQXuser</dc:creator>
      <dc:date>2009-10-10T01:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: _timer_start_oneshot_after  kills my application</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/timer-start-oneshot-after-kills-my-application/m-p/217088#M5578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't start a timer from an ISR. The timer component uses a semaphore internally -&amp;nbsp; _time_start waits on the semaphore. You can't wait on a&amp;nbsp;semaphore from an ISR, so therefore you can't call _timer_start from an ISR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Oct 2009 02:54:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/timer-start-oneshot-after-kills-my-application/m-p/217088#M5578</guid>
      <dc:creator>EAI</dc:creator>
      <dc:date>2009-10-10T02:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: _timer_start_oneshot_after  kills my application</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/timer-start-oneshot-after-kills-my-application/m-p/217089#M5579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I though I could call that function since it is not specifically mentioned in the list of&lt;/P&gt;&lt;P&gt;"3.10.3.2 Functions That ISRs Should Not Call "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Oct 2009 05:28:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/timer-start-oneshot-after-kills-my-application/m-p/217089#M5579</guid>
      <dc:creator>MQXuser</dc:creator>
      <dc:date>2009-10-10T05:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: _timer_start_oneshot_after  kills my application</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/timer-start-oneshot-after-kills-my-application/m-p/217090#M5580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it should also be documented under traits, but is not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has been reported to the development team.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by EAI on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-09&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;11:58 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Oct 2009 05:58:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/timer-start-oneshot-after-kills-my-application/m-p/217090#M5580</guid>
      <dc:creator>EAI</dc:creator>
      <dc:date>2009-10-10T05:58:28Z</dc:date>
    </item>
  </channel>
</rss>

