<?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: Round Robin working wrong?</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Round-Robin-working-wrong/m-p/152907#M552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JuroV&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It have set MQX_HAS_TIME_SLICE in my user_config.h then I rebuild BSP and PSP then my project, but anything has been happened.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I suppose to do for rebuild BSP and PSP? Because my way to rebuild these kernels are, modify user_config.h of TWR-51CN, then open bsp_twrmcf51cn&amp;nbsp;(inside of ...\Freescale MQX 3.6\mqx\build\cwmcu63) =&amp;gt; rebuild it, then open psp_twrmcf51cn and rebuild again... But in this way I didn't have changes on the results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know, I reintalled MQX3.6 too... It is simple, it should work as you said me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Oct 2010 02:49:08 GMT</pubDate>
    <dc:creator>M_ttferrari</dc:creator>
    <dc:date>2010-10-06T02:49:08Z</dc:date>
    <item>
      <title>Round Robin working wrong?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Round-Robin-working-wrong/m-p/152901#M546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, I'm doing my first steps with MQX 3.6.1 and I have problems when I want to configurate my tasks in round robin schedule.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;I've read examples, manual raference and user's guide and I could see that if I want to configurate the task schedule in round robin mode, I need to put the macro MQX_TIME_SLICE_TASK in task template. I created two task, both have the same priority in task template, but the first task created never gives the procesor to the second one when the time slice expires.&lt;/DIV&gt;&lt;DIV&gt;Tasks are very simple, led1_task, switches on and off a LED1 of my TWR-MCF51CN. By other hand, botones_task detects if SW2 and or SW3 are pressed, then if they were pressed switches on LED2 (SW2) and LED3 (SW3), else, switches off the leds. Both tasks work fine when I put a _time_delay(100) inside (I think that there aren't working in round robin mode).&lt;/DIV&gt;&lt;DIV&gt;There is any other parameters or macros to keep in mind at the moment to configurate my tasks in round robin mode?&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My code was attached, please I don't know how I can continue with this...&lt;/DIV&gt;&lt;DIV&gt;Thank you in advance.&lt;/DIV&gt;&lt;DIV&gt;Matt&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 20:50:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Round-Robin-working-wrong/m-p/152901#M546</guid>
      <dc:creator>M_ttferrari</dc:creator>
      <dc:date>2010-10-04T20:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Round Robin working wrong?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Round-Robin-working-wrong/m-p/152902#M547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use (MQX_AUTO_START_TASK | MQX_TIME_SLICE_TASK) instead of just MQX_AUTO_START_TASK as parameter in the first task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 02:57:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Round-Robin-working-wrong/m-p/152902#M547</guid>
      <dc:creator>FredericoPrado</dc:creator>
      <dc:date>2010-10-05T02:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Round Robin working wrong?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Round-Robin-working-wrong/m-p/152903#M548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frederico, thank you for your answer. I tryed with the line that you recommended me, but nothing different has occured...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you fix the problem with&amp;nbsp;&lt;SPAN style="font-family: arial, sans-serif; line-height: 14px;"&gt;(MQX_AUTO_START_TASK | MQX_TIME_SLICE_TASK) &amp;nbsp;in the first task??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like MQX doesn't know the MACRO&amp;nbsp;&amp;nbsp;MQX_TIME_SLICE_TASK (I belive that) but in user_config.h I have the macro MQX_HAS_TIME_SLICE &lt;SPAN style="white-space: pre;"&gt;&lt;/SPAN&gt;1, then in mqx.h appears these lines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;#if MQX_HAS_TIME_SLICE&lt;/DIV&gt;&lt;DIV&gt;#define MQX_TIME_SLICE_TASK &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(0x04)&lt;/DIV&gt;&lt;DIV&gt;#endif&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, there aren't any problem when I compile the project...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 03:39:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Round-Robin-working-wrong/m-p/152903#M548</guid>
      <dc:creator>M_ttferrari</dc:creator>
      <dc:date>2010-10-05T03:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Round Robin working wrong?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Round-Robin-working-wrong/m-p/152904#M549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change the last item of task template for time slice to 10 for both tasks (you have set only one task's time slice value).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 15:16:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Round-Robin-working-wrong/m-p/152904#M549</guid>
      <dc:creator>JuroV</dc:creator>
      <dc:date>2010-10-05T15:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Round Robin working wrong?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Round-Robin-working-wrong/m-p/152905#M550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;JuroV, Sorry I've made a big mistake, because I had attached a different file that I was working on. This is the correct file... please, forget the previous one. Thank you Matt&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 19:29:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Round-Robin-working-wrong/m-p/152905#M550</guid>
      <dc:creator>M_ttferrari</dc:creator>
      <dc:date>2010-10-05T19:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Round Robin working wrong?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Round-Robin-working-wrong/m-p/152906#M551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have set MQX_HAS_TIME_SLICE in your user_config.h, then rebuilt BSP and PSP and then built your application, it should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 22:48:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Round-Robin-working-wrong/m-p/152906#M551</guid>
      <dc:creator>JuroV</dc:creator>
      <dc:date>2010-10-05T22:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Round Robin working wrong?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Round-Robin-working-wrong/m-p/152907#M552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JuroV&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It have set MQX_HAS_TIME_SLICE in my user_config.h then I rebuild BSP and PSP then my project, but anything has been happened.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I suppose to do for rebuild BSP and PSP? Because my way to rebuild these kernels are, modify user_config.h of TWR-51CN, then open bsp_twrmcf51cn&amp;nbsp;(inside of ...\Freescale MQX 3.6\mqx\build\cwmcu63) =&amp;gt; rebuild it, then open psp_twrmcf51cn and rebuild again... But in this way I didn't have changes on the results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know, I reintalled MQX3.6 too... It is simple, it should work as you said me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 02:49:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Round-Robin-working-wrong/m-p/152907#M552</guid>
      <dc:creator>M_ttferrari</dc:creator>
      <dc:date>2010-10-06T02:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Round Robin working wrong?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Round-Robin-working-wrong/m-p/152908#M553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course you have to rebuild BSP and PSP, when your changes have impact to the kernel. The result from BSP and PSP is after build-phase copied to the lib/&amp;lt;your_board&amp;gt;.cw/mqx&lt;/P&gt;&lt;P&gt;You should find there user_config.h with modified value of MQX_HAS_TIME_SLICE (your copied user_config.h). If not, you did not properly build your BSP and PSP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 16:43:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Round-Robin-working-wrong/m-p/152908#M553</guid>
      <dc:creator>JuroV</dc:creator>
      <dc:date>2010-10-06T16:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Round Robin working wrong?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Round-Robin-working-wrong/m-p/152909#M554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JuroV, Thank you for your anwer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Technically, the problem was solved yesterday. I don't know why, but I've uninstalled&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;and then reinstalled all codewarrior and mqx again, finally mqx recognizes the&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;time_slice and the project works perfect now.&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 23:27:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Round-Robin-working-wrong/m-p/152909#M554</guid>
      <dc:creator>M_ttferrari</dc:creator>
      <dc:date>2010-10-07T23:27:19Z</dc:date>
    </item>
  </channel>
</rss>

