<?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>topic Using periodic timer in MQX in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160908#M1217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the periodic timer in MQX to call back to a function that sets an event every 100ms. I use _timer_start_periodic_every(callbackfunction, NULL, TIMER_KERNEL_TIME_MODE, 100).&amp;nbsp; It appears to work great for some indeterminate time frame.&amp;nbsp; At some point, it appears to start running the MQX timer task nonstop, never allowing lower priority tasks that are ready to run to do anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ultimately, I'll be setting the time interfval to 1 second, hence the name of the event bit.&amp;nbsp; I have gone through and disable all other tasks except the Idle task so as to make sure there was no interference from them.&amp;nbsp;&amp;nbsp;Has anyone seen a similar issue?&amp;nbsp; Am I doing something wrong in the setup?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code that sets up the timer, and handles it, as well as the call back function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; _timer_start_periodic_every(AnalysisPeriodicNotify, (pointer)NULL, TIMER_KERNEL_TIME_MODE, 100L);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; while (TRUE)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (_lwevent_wait_ticks(&amp;amp;analysisEvent, ANALYSIS_ONE_SECOND_BIT, FALSE, 0) == MQX_OK)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wakeEvents = _lwevent_get_signalled();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((wakeEvents &amp;amp; ANALYSIS_ONE_SECOND_BIT) != 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _lwevent_clear(&amp;amp;analysisEvent, ANALYSIS_ONE_SECOND_BIT);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AnalysisPeriodicHandler();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;static void AnalysisPeriodicNotify( _timer_id timer_id, pointer dummyPtr, uint_32 seconds, uint_32 milliseconds )&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; (void)dummyPtr;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; _lwevent_set(&amp;amp;analysisEvent, ANALYSIS_ONE_SECOND_BIT);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;RIchard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2012 22:37:04 GMT</pubDate>
    <dc:creator>RichardR</dc:creator>
    <dc:date>2012-05-08T22:37:04Z</dc:date>
    <item>
      <title>Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160908#M1217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the periodic timer in MQX to call back to a function that sets an event every 100ms. I use _timer_start_periodic_every(callbackfunction, NULL, TIMER_KERNEL_TIME_MODE, 100).&amp;nbsp; It appears to work great for some indeterminate time frame.&amp;nbsp; At some point, it appears to start running the MQX timer task nonstop, never allowing lower priority tasks that are ready to run to do anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ultimately, I'll be setting the time interfval to 1 second, hence the name of the event bit.&amp;nbsp; I have gone through and disable all other tasks except the Idle task so as to make sure there was no interference from them.&amp;nbsp;&amp;nbsp;Has anyone seen a similar issue?&amp;nbsp; Am I doing something wrong in the setup?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code that sets up the timer, and handles it, as well as the call back function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; _timer_start_periodic_every(AnalysisPeriodicNotify, (pointer)NULL, TIMER_KERNEL_TIME_MODE, 100L);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; while (TRUE)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (_lwevent_wait_ticks(&amp;amp;analysisEvent, ANALYSIS_ONE_SECOND_BIT, FALSE, 0) == MQX_OK)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wakeEvents = _lwevent_get_signalled();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((wakeEvents &amp;amp; ANALYSIS_ONE_SECOND_BIT) != 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _lwevent_clear(&amp;amp;analysisEvent, ANALYSIS_ONE_SECOND_BIT);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AnalysisPeriodicHandler();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;static void AnalysisPeriodicNotify( _timer_id timer_id, pointer dummyPtr, uint_32 seconds, uint_32 milliseconds )&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; (void)dummyPtr;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; _lwevent_set(&amp;amp;analysisEvent, ANALYSIS_ONE_SECOND_BIT);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;RIchard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 22:37:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160908#M1217</guid>
      <dc:creator>RichardR</dc:creator>
      <dc:date>2012-05-08T22:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160909#M1218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I left out the top of the man task that is being awakened every 100ms, here it is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;static LWEVENT_STRUCT analysisEvent;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void AnalysisTask( uint_32 parameter )&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; uint_32 wakeEvents;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; result = _lwevent_create(&amp;amp;analysisEvent, 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if (result != MQX_OK)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 22:39:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160909#M1218</guid>
      <dc:creator>RichardR</dc:creator>
      <dc:date>2012-05-08T22:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160910#M1219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Code seems to be OK.&lt;/P&gt;&lt;P&gt;At MQX3.7 timers were OK, haven't yet&amp;nbsp;tested&amp;nbsp;them at MQX3.8.&lt;/P&gt;&lt;P&gt;Have you tested the mode TIMER_ELAPSED_TIME_MODE?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Manual says:&lt;/P&gt;&lt;P&gt;"mode [IN] — Time to use when calculating the time to expire;&lt;/P&gt;&lt;P&gt;one of the following:&lt;/P&gt;&lt;P&gt;TIMER_ELAPSED_TIME_MODE (use _time_get_elapsed() or _time_get_elapsed_ticks(),&lt;/P&gt;&lt;P&gt;which are not affected by _time_set() or _time_set_ticks())&lt;/P&gt;&lt;P&gt;TIMER_KERNEL_TIME_MODE (use _time_get() or _time_get_ticks())"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 22:07:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160910#M1219</guid>
      <dc:creator>MarkP_</dc:creator>
      <dc:date>2012-05-09T22:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160911#M1220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll give that a try and see if it makes any difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 01:22:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160911#M1220</guid>
      <dc:creator>RichardR</dc:creator>
      <dc:date>2012-05-10T01:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160912#M1221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It behaves identically.&amp;nbsp; After some indeterminate time frame, in this case it was about 9000 times through the 100ms loop, the MQX timer task just starts running continuously, not yielding to any other tasks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 01:49:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160912#M1221</guid>
      <dc:creator>RichardR</dc:creator>
      <dc:date>2012-05-10T01:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160913#M1222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Further testing, if I modify the code as below, but leave in the peridic timer setup, which now calls a function that does nothing but return, it still hangs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; _timer_start_periodic_every(AnalysisPeriodicNotify, (pointer)NULL, TIMER_ELAPSED_TIME_MODE, 100L);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; while (TRUE)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (_lwevent_wait_ticks(&amp;amp;analysisEvent, eventBits, FALSE, 10) == MQX_OK)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I comment out the call to _timer_start_periodic_every(...), it runs without any issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No other task in the project uses any form of _timer_startxxxxx.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 03:31:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160913#M1222</guid>
      <dc:creator>RichardR</dc:creator>
      <dc:date>2012-05-10T03:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160914#M1223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ran it overnight without the _timer_start, no problems.&amp;nbsp; It does not do what I need it to do timing wise, but I think I can conclusively say that the issue is with the MQX timer task.&amp;nbsp; If it matters, K60 is the target processor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 20:26:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160914#M1223</guid>
      <dc:creator>RichardR</dc:creator>
      <dc:date>2012-05-10T20:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160915#M1224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I tested this back with MQX3.6 on ColdFire.&amp;nbsp; Here is the code snippet:&lt;/P&gt;&lt;P&gt;&amp;nbsp; _timer_id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PollTmr;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TIME_STRUCT mqx_time;&amp;nbsp;&amp;nbsp;//DES system time structure variable&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; _time_get(&amp;amp;mqx_time);&amp;nbsp;&amp;nbsp;//DES get current system time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; PollTmr = _timer_start_periodic_at(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PollTimerNotification,&amp;nbsp;//DES notification function to call when timer expires.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//DES no data pointer used&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIMER_ELAPSED_TIME_MODE,&amp;nbsp;//DES elapse mode&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;mqx_time,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//DES start time&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (uint_32)5000);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//DES elapes time in ms (5000ms = 5s)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(PollTmr)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;printf("\n_timer_start_periodic_at ERROR\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll put it back on the to-do list but if you get it going sooner please let us know.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 20:41:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160915#M1224</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2012-05-10T20:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160916#M1225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It behaves identically using what you posted.&amp;nbsp; I also added explicitly initializing the timer with a larger stack.&amp;nbsp; IAR claims that only 15% of the timer task stack is being used, but it is still hanging, in this case after about 12000 periodic notifications.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 01:30:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160916#M1225</guid>
      <dc:creator>RichardR</dc:creator>
      <dc:date>2012-05-11T01:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160917#M1226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used lwtimers in MQX3.7, they worked OK.&lt;/P&gt;&lt;P&gt;Functions to use: _lwtimer_create_periodic_queue and _lwtimer_add_timer_to_queue.&lt;/P&gt;&lt;P&gt;~Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 13:00:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160917#M1226</guid>
      <dc:creator>MarkP_</dc:creator>
      <dc:date>2012-05-11T13:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160918#M1227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tested&amp;nbsp;in Kwikstik with attached file. Works OK, no halt problem.&lt;/P&gt;&lt;P&gt;Tasks has 'jam'-loops, simulating excessive CPU load.&lt;/P&gt;&lt;P&gt;~Mark&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>Sun, 13 May 2012 20:31:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160918#M1227</guid>
      <dc:creator>MarkP_</dc:creator>
      <dc:date>2012-05-13T20:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160919#M1228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I remove most of my other tasks, I can get it to run without issue.&amp;nbsp; I am working on figuring out specifically which task(s) are causing the problem, although none of them use timers other than _time_delay(), and timeouts in system calls waiting on events and such.&amp;nbsp; CPU usage is low, my Idle task runs just fine right up until the problem occurs, at which point the very high priority MQX Timer task runs continuously.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 21:01:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160919#M1228</guid>
      <dc:creator>RichardR</dc:creator>
      <dc:date>2012-05-14T21:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160920#M1229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right now it's looking like an issue with the USB virtual comm device tasks and the MQX timer.&amp;nbsp; When I disable those tasks, leaving all other tasks running, the problem goes away.&amp;nbsp; We are using the MQX USB device library, and basing our virtual comm handling on the example code supplied with MQX.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 01:56:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160920#M1229</guid>
      <dc:creator>RichardR</dc:creator>
      <dc:date>2012-05-15T01:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160921#M1230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In particular, it appears to be an issue with the transmit task for the USB virtual com device.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 03:51:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160921#M1230</guid>
      <dc:creator>RichardR</dc:creator>
      <dc:date>2012-05-15T03:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160922#M1231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It also appears that I don't have to actually be transmitting anything, just have the TX task created seems to cause the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 20:07:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160922#M1231</guid>
      <dc:creator>RichardR</dc:creator>
      <dc:date>2012-05-15T20:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160923#M1232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears that it is not even the TX task, just having the task that calls USB_CDC_Periodic_Task periodically is enough to cause the problem, even with the USB TX and RX tasks not running.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 21:11:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160923#M1232</guid>
      <dc:creator>RichardR</dc:creator>
      <dc:date>2012-05-15T21:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160924#M1233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears that the issue only comes up when I have an active connection to the virtual com port.&amp;nbsp; No data being sent or received, just an open connection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 21:59:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160924#M1233</guid>
      <dc:creator>RichardR</dc:creator>
      <dc:date>2012-05-15T21:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160925#M1234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So to summarize...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using MQX periodic timer to generate an event on a periodic basis, with the USB_CDC_Periodic_Task call enning peridoically (using _time_delay between calls), and having an an open connection to the virtual com port with not data being transmitted or received is what appears to cause the MQX timer task to run continuously after a semi random period of time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I can tell, if I change any one of those conditions, the problem does not occur.&amp;nbsp; If I use _time_delay instead of the MQX periodic timer, my timing is wrong, but the problem goes away.&amp;nbsp; If I remove the task that calls USB_CDC_Periodic_Task, the problem goes away, or if I do not open a connection to the virtual com port, the problem goes away.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 22:02:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160925#M1234</guid>
      <dc:creator>RichardR</dc:creator>
      <dc:date>2012-05-15T22:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160926#M1235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;Are you using the TWRK60n512 hardware?&lt;/P&gt;&lt;P&gt;Which version of IAR? 6.10/6.20/6.30?&lt;/P&gt;&lt;P&gt;I believe thread said MQX3.7.&amp;nbsp; Correct?&lt;/P&gt;&lt;P&gt;Any other info I'm not asking please pass along :smileywink:&lt;/P&gt;&lt;P&gt;Can you post the project?&amp;nbsp; Or if need be we can take off line.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 20:32:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160926#M1235</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2012-05-16T20:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using periodic timer in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160927#M1236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a board of our own design with the K60 processor.&lt;/P&gt;&lt;P&gt;IAR 6.30.&lt;/P&gt;&lt;P&gt;MQX 3.7.&lt;/P&gt;&lt;P&gt;I cannot post the project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One more point of interest, changing the priority of the MQX timer task from the default 1 to 8 makes the problem go away.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 21:15:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-periodic-timer-in-MQX/m-p/160927#M1236</guid>
      <dc:creator>RichardR</dc:creator>
      <dc:date>2012-05-16T21:15:33Z</dc:date>
    </item>
  </channel>
</rss>

