<?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 Re: _task_ready() doesn't working on MQX Lite in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/task-ready-doesn-t-working-on-MQX-Lite/m-p/322171#M10280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The prototype is&lt;/P&gt;&lt;P&gt;void _task_ready (pointer td);&lt;/P&gt;&lt;P&gt;td is pointer to the task descriptor of the task to be made ready.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use&lt;/P&gt;&lt;P&gt;TD_STRUCT_PTR td_ptr = _task_get_id(tid);&lt;/P&gt;&lt;P&gt;_task_ready(td_ptr);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check the Freescale MQX Lite RTOS reference manual and user guide for more details.&lt;/P&gt;&lt;P&gt;C:\Freescale\CW MCU v10.6\MCU\Help\PDF\&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jul 2014 03:36:39 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2014-07-22T03:36:39Z</dc:date>
    <item>
      <title>_task_ready() doesn't working on MQX Lite</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/task-ready-doesn-t-working-on-MQX-Lite/m-p/322170#M10279</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;&lt;/P&gt;&lt;P&gt;I'm learning about MQX Lite, but it's really hard due to lack of documentation about that.&lt;/P&gt;&lt;P&gt;Recently, I had a problem with "task switch". Basicly, I'm running into a task_1 and this call a _task_block(); .Right after that, my task_2 (with same priority) becomes active and runs a _task_ready function to make task_1 be ready again.&lt;/P&gt;&lt;P&gt;But, when I call _task_ready, my microcontroller seems like have lost itself, and what I see in debug window is the firmware paused on&amp;nbsp; PE_DEBUGHALT();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is the code of two tasks:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc;"&gt;&lt;SPAN style="color: #3366ff;"&gt;void read_task(uint32_t task_init_data)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc;"&gt;&lt;SPAN style="color: #3366ff;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&amp;nbsp; for(;;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&amp;nbsp; _task_block();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc;"&gt;&lt;SPAN style="color: #3366ff;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc;"&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc;"&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc;"&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc;"&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc;"&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc;"&gt;&lt;SPAN style="color: #3366ff;"&gt;void write_task(uint32_t task_init_data)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc;"&gt;&lt;SPAN style="color: #3366ff;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&amp;nbsp; for(;;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _task_ready(read_task); //Try to make "read_task" ready&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc;"&gt;&lt;SPAN style="color: #3366ff;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I'm running this on FRDM - KL25Z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 18:03:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/task-ready-doesn-t-working-on-MQX-Lite/m-p/322170#M10279</guid>
      <dc:creator>wendersonolivei</dc:creator>
      <dc:date>2014-07-18T18:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: _task_ready() doesn't working on MQX Lite</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/task-ready-doesn-t-working-on-MQX-Lite/m-p/322171#M10280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The prototype is&lt;/P&gt;&lt;P&gt;void _task_ready (pointer td);&lt;/P&gt;&lt;P&gt;td is pointer to the task descriptor of the task to be made ready.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use&lt;/P&gt;&lt;P&gt;TD_STRUCT_PTR td_ptr = _task_get_id(tid);&lt;/P&gt;&lt;P&gt;_task_ready(td_ptr);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check the Freescale MQX Lite RTOS reference manual and user guide for more details.&lt;/P&gt;&lt;P&gt;C:\Freescale\CW MCU v10.6\MCU\Help\PDF\&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 03:36:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/task-ready-doesn-t-working-on-MQX-Lite/m-p/322171#M10280</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2014-07-22T03:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: _task_ready() doesn't working on MQX Lite</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/task-ready-doesn-t-working-on-MQX-Lite/m-p/322172#M10281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 11:45:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/task-ready-doesn-t-working-on-MQX-Lite/m-p/322172#M10281</guid>
      <dc:creator>wendersonolivei</dc:creator>
      <dc:date>2014-07-22T11:45:15Z</dc:date>
    </item>
  </channel>
</rss>

