<?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: activate RR in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159359#M1110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I meet the same question with you. Now I have addressed it. The step is:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; open&amp;nbsp;&amp;nbsp; &amp;lt;mqx_install_dir&amp;gt;/build/&amp;lt;board&amp;gt;/uv4/build_libs.uvmpw&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; add&amp;nbsp;&amp;nbsp;&amp;nbsp; #define MQX_HAS_TIME_SLICE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;in user_config.h&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="搜狗截图20141011153141.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46686iBA40E05AACE7DBA1/image-size/large?v=v2&amp;amp;px=999" role="button" title="搜狗截图20141011153141.png" alt="搜狗截图20141011153141.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; Bebuild the MQX libraries(Please note that: you should Batch build)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="搜狗截图20141011153332.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46687iD80F7BBED9CDE7AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="搜狗截图20141011153332.png" alt="搜狗截图20141011153332.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3) Rebuild your application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Oct 2014 07:34:26 GMT</pubDate>
    <dc:creator>wenxue</dc:creator>
    <dc:date>2014-10-11T07:34:26Z</dc:date>
    <item>
      <title>FIFO and Round Robin</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159350#M1101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a doubt about tasks in fifo and round robind mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The MQXUG says that FIFO and Round Robin mode can work together, so if you want to create a task in round robin mode, you need to set MQX_HAS_TIME_SLICE. Well, If I do it, how can I create a task to work in FIFO mode having MQX_HAS_TIME_SLICE setted?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a bit confused...&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, 30 Oct 2010 02:33:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159350#M1101</guid>
      <dc:creator>M_ttferrari</dc:creator>
      <dc:date>2010-10-30T02:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: FIFO and Round Robin</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159351#M1102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, FIFO and Round Robin can work together on one processor, they cannot both set for the one task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically those tasks which have TIME_SLICE&amp;nbsp; flag setted are time sliced with other task on given priority.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The priority based sheduling is still working for all tasks - that means the higher prio task will be executed if needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PetrL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 04:25:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159351#M1102</guid>
      <dc:creator>PetrL</dc:creator>
      <dc:date>2010-11-01T04:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: FIFO and Round Robin</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159352#M1103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PetrL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that, but I don't know how I tell to TASK_TEMPLATE that one task has time slice and another one has a FIFO schedule mode independly of priorities. Because when MQX_HAS_TIME_SLICE is setted, the last elements of TESK_TEMPLATE correspond to time slice of the task... then if you put 0 in this element, the scheduler will give a minimum task time when I want that this task work in FIFO mode not in Round Robin. Is this correct doesn't it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matt&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 21:11:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159352#M1103</guid>
      <dc:creator>M_ttferrari</dc:creator>
      <dc:date>2010-11-01T21:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: FIFO and Round Robin</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159353#M1104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Partially you are right. The scheduler works like this (steps):&lt;/P&gt;&lt;P&gt;1) Only ready queue with highest priority (queue of ready tasks with highest priorities) is considered to be run (ignore other= lower priority tasks)&lt;/P&gt;&lt;P&gt;2.1) Iif current task has time slice, then:&lt;/P&gt;&lt;P&gt;2.1.1) if current task's time slice has counted down, then reschedule to the next task - scheduling is DONE&lt;/P&gt;&lt;P&gt;2.2) Schedule the current task - scheduling is DONE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the kernel was not compiled with MQX_HAS_TIME_SLICE, then remove point 2.1 Note that setting time slice 0 for a task having time slice flag set has no meaning...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 22:03:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159353#M1104</guid>
      <dc:creator>JuroV</dc:creator>
      <dc:date>2010-11-01T22:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: FIFO and Round Robin</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159354#M1105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JuroV.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand about how the scheduler handles the ready task. My question is, how do I declare a task to work in FIFO mode having MQX_HAS_TIME_SLICE setted?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your anwers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Nov 2010 20:22:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159354#M1105</guid>
      <dc:creator>M_ttferrari</dc:creator>
      <dc:date>2010-11-02T20:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: FIFO and Round Robin</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159355#M1106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just do not insert flag MQX_TIME_SLICE_TASK to the task template.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 22:07:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159355#M1106</guid>
      <dc:creator>JuroV</dc:creator>
      <dc:date>2010-11-03T22:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: FIFO and Round Robin</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159356#M1107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you JuroV, Now the answer looks obvious but I didn't understand it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 22:24:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159356#M1107</guid>
      <dc:creator>M_ttferrari</dc:creator>
      <dc:date>2010-11-03T22:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: FIFO and Round Robin</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159357#M1108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FIFO: First task in, First task out... Means that as you insert task to the queue, they are in the order processed (the time a task will run is INFINITE, or the task itself can give up CPU time). Every task is defaultly inserted in FIFO queue.&lt;/P&gt;&lt;P&gt;Round-Robin: The same as FIFO, but the time is NOT INFINITE: the time is restricted by NUMBER OF TICKS dedicated for the task. The task running in Round-Robin has MQX_TIME_SLICE_TASK flag set and also, number of ticks).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 22:36:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159357#M1108</guid>
      <dc:creator>JuroV</dc:creator>
      <dc:date>2010-11-03T22:36:04Z</dc:date>
    </item>
    <item>
      <title>activate RR</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159358#M1109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JuroV&lt;/P&gt;&lt;P&gt;I understand your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question related with RR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using MQX 3.7&lt;/P&gt;&lt;P&gt;In my main.c have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TASK_TEMPLATE_STRUCT MQX_template_list[] =&lt;BR /&gt;{&lt;BR /&gt;/* Task number, Entry point, Stack, Pri, String, Auto? */&lt;BR /&gt;{MAIN_TASK, Main_task, 2000, 9, "main", MQX_AUTO_START_TASK | MQX_TIME_SLICE_TASK, 0L, 2 },&lt;BR /&gt;{SECOND_TASK, Second_task, 2000, 9, "second", MQX_AUTO_START_TASK | MQX_TIME_SLICE_TASK, 0l, 2},&lt;BR /&gt;{0, 0, 0, 0, 0, 0, }&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In mqx.h said:&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;** Tasks with this attribute will use the time slice&lt;BR /&gt;** scheduler within the kernel&lt;BR /&gt;*/&lt;BR /&gt;#if MQX_HAS_TIME_SLICE&lt;BR /&gt;#define MQX_TIME_SLICE_TASK (0x04)&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked the file&amp;nbsp;small_ram_config.h&lt;/P&gt;&lt;P&gt;And I saw:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#ifndef MQX_HAS_TIME_SLICE&lt;BR /&gt;#define MQX_HAS_TIME_SLICE 0&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed the value, for 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#ifndef MQX_HAS_TIME_SLICE&lt;BR /&gt;#define MQX_HAS_TIME_SLICE 1&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But In CodeWarrior when I saw this code&lt;/P&gt;&lt;P&gt;#if MQX_HAS_TIME_SLICE&lt;BR /&gt;#define MQX_TIME_SLICE_TASK (0x04)&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it looks like desactivated&lt;/P&gt;&lt;P&gt;&lt;IMG alt=":smileysad:" class="emoticon emoticon-smileysad" id="smileysad" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-sad.gif" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suppose that the flag:&amp;nbsp;&lt;SPAN&gt;MQX_HAS_TIME_SLICE doesn't udated by MQX,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;am I correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I execute this program ( that has the 2 task )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void Main_task(uint_32 initial_data)&lt;BR /&gt;{&lt;BR /&gt;int a;&lt;BR /&gt;for(a=0; a&amp;lt; 32000 ; a++)&lt;BR /&gt;{&lt;BR /&gt;printf("hola\t");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void Second_task(uint_32 initial_data)&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;int a;&lt;BR /&gt;for(a=0; a&amp;lt; 32000 ; a++)&lt;BR /&gt;{&lt;BR /&gt;printf("adios\t");&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Execute the program like a FIFO , it doesn't execute like Round Robin&lt;/P&gt;&lt;P&gt;&lt;IMG alt=":smileysad:" class="emoticon emoticon-smileysad" id="smileysad" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-sad.gif" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are the correct modifications in the config files for change to RR scheduling?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;jam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jul 2012 02:13:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159358#M1109</guid>
      <dc:creator>jambriz</dc:creator>
      <dc:date>2012-07-07T02:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: activate RR</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159359#M1110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I meet the same question with you. Now I have addressed it. The step is:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; open&amp;nbsp;&amp;nbsp; &amp;lt;mqx_install_dir&amp;gt;/build/&amp;lt;board&amp;gt;/uv4/build_libs.uvmpw&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; add&amp;nbsp;&amp;nbsp;&amp;nbsp; #define MQX_HAS_TIME_SLICE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;in user_config.h&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="搜狗截图20141011153141.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46686iBA40E05AACE7DBA1/image-size/large?v=v2&amp;amp;px=999" role="button" title="搜狗截图20141011153141.png" alt="搜狗截图20141011153141.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; Bebuild the MQX libraries(Please note that: you should Batch build)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="搜狗截图20141011153332.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46687iD80F7BBED9CDE7AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="搜狗截图20141011153332.png" alt="搜狗截图20141011153332.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3) Rebuild your application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Oct 2014 07:34:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/FIFO-and-Round-Robin/m-p/159359#M1110</guid>
      <dc:creator>wenxue</dc:creator>
      <dc:date>2014-10-11T07:34:26Z</dc:date>
    </item>
  </channel>
</rss>

