<?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 component  problem</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Timer-component-problem/m-p/168020#M1718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cathy,&lt;/P&gt;&lt;P&gt;Did updating to MQX3.8.1 resolve your issue?&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>Thu, 15 Nov 2012 20:27:27 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2012-11-15T20:27:27Z</dc:date>
    <item>
      <title>Timer component  problem</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Timer-component-problem/m-p/168019#M1717</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;I'm a beginner for MQX ,i want to get your helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when &amp;nbsp;I used the function &lt;FONT color="#ff0000"&gt;ipcfg_init_device&lt;/FONT&gt; for ethernet&amp;nbsp;, then created timer component(_timer_create_component()),there is a problem about this timer component---Dont call the callback function&amp;nbsp;(&lt;FONT color="#ff0000"&gt;SendCommad&amp;nbsp;Function&lt;/FONT&gt;&amp;nbsp;or &lt;FONT color="#ff0000"&gt;RecCommand Function&lt;/FONT&gt;)&amp;nbsp; in&amp;nbsp; _timer_start_periodic_at_ticks().&lt;/P&gt;&lt;PRE&gt;  _timer_create_component(TIMER_TASK_PRIORITY, TIMER_STACK_SIZE);      _time_init_ticks(&amp;amp;dticks, 0);   _time_add_sec_to_ticks(&amp;amp;dticks, 2);   _time_get_elapsed_ticks(&amp;amp;ticks);   _time_add_sec_to_ticks(&amp;amp;ticks, 1);   on_timer = _timer_start_periodic_at_ticks(SendCommand, 0,TIMER_ELAPSED_TIME_MODE, &amp;amp;ticks, &amp;amp;dticks);   _time_add_sec_to_ticks(&amp;amp;ticks, 1);   off_timer = _timer_start_periodic_at_ticks(RecCommand, 0,TIMER_ELAPSED_TIME_MODE, &amp;amp;ticks, &amp;amp;dticks);   _time_delay(time * 1000); // wait 6 seconds   write(FileHandle_Uart0,"\nThe task is finished!",22);   _timer_cancel(on_timer);   _timer_cancel(off_timer);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In debug mode ,found that the below&amp;nbsp;condition (&lt;FONT color="#ff0000"&gt;timer_component_ptr-&amp;gt;VALID&lt;/FONT&gt; )is be meet,&amp;nbsp;it means the timer component is invalid.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333333"&gt;&amp;nbsp;&amp;nbsp; the below code is located in&lt;/FONT&gt; &lt;FONT color="#ff0000"&gt;_timer_start_periodic_at_internal&lt;/FONT&gt; &lt;FONT color="#333333"&gt;function (mqx\source\timer\Ti_spati.c)&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;#if MQX_CHECK_VALIDITY   if(timer_component_ptr-&amp;gt;VALID != TIMER_VALID) {      _task_set_error(MQX_INVALID_COMPONENT_BASE);      return TIMER_NULL_ID;   } /* Endif */#endif&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I dont know what caused the issue, what should i do for using timer component in my project ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Wait for your reply,Thanks!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PS:i used MQX3.8 for MCF5225xEvb board.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:15:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Timer-component-problem/m-p/168019#M1717</guid>
      <dc:creator>cathychang</dc:creator>
      <dc:date>2020-10-29T09:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Timer component  problem</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Timer-component-problem/m-p/168020#M1718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cathy,&lt;/P&gt;&lt;P&gt;Did updating to MQX3.8.1 resolve your issue?&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>Thu, 15 Nov 2012 20:27:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Timer-component-problem/m-p/168020#M1718</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2012-11-15T20:27:27Z</dc:date>
    </item>
  </channel>
</rss>

