<?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: main_task never activated in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/main-task-never-activated/m-p/176789#M2395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;UB39,&lt;/P&gt;&lt;P&gt;check the value of&amp;nbsp;MAIN_TASK. It should be higher then 0 as 0 is reserved to end of task template list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Nov 2011 16:18:28 GMT</pubDate>
    <dc:creator>petr_uhlir</dc:creator>
    <dc:date>2011-11-03T16:18:28Z</dc:date>
    <item>
      <title>main_task never activated</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/main-task-never-activated/m-p/176788#M2394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to write my first MQX application and I started with the basic application CW10.1 offered to me.&amp;nbsp;But it seems that the main_task is never activated. &amp;nbsp;&lt;/P&gt;&lt;P&gt;I set a breakpoint in the main_task, but instead of stopping in my main_task the programm stopps at the&lt;/P&gt;&lt;P align="left"&gt;void&lt;FONT color="#000000" size="2"&gt;&lt;STRONG&gt;_bsp_exit_handler&lt;/STRONG&gt;(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#7F0055" size="2"&gt;&lt;FONT color="#7F0055" size="2"&gt;void&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt;&lt;FONT color="#000000"&gt;) {&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried everything but without success. I never reach my main task. If it is important: I use CW 10.1 and MQX 3.7 and a twrk60n512 Tower. I tried many of the MQX examples, but with the same unsuccess.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And thats the Code, CW10.1 creates automatically:&lt;/P&gt;&lt;P align="left"&gt;#include&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2A00FF" size="2"&gt;&lt;FONT color="#2A00FF" size="2"&gt;"main.h"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;　&lt;/P&gt;&lt;P align="left"&gt;TASK_TEMPLATE_STRUCT&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt;&lt;FONT color="#000000"&gt;MQX_template_list[] =&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;{&lt;/P&gt;&lt;P align="left"&gt;/* Task number, Entry point, Stack, &lt;U&gt;Pri&lt;/U&gt;, String, Auto? */&lt;/P&gt;&lt;P align="left"&gt;{MAIN_TASK, Main_task, 2000, 9,&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2A00FF" size="2"&gt;&lt;FONT color="#2A00FF" size="2"&gt;"main"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt;, MQX_AUTO_START_TASK},&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;{0, 0, 0, 0, 0, 0, }&lt;/P&gt;&lt;P align="left"&gt;};&lt;/P&gt;&lt;P align="left"&gt;/*TASK*-----------------------------------------------------------------&lt;/P&gt;&lt;P align="left"&gt;*&lt;/P&gt;&lt;P align="left"&gt;* Function Name : Main_task&lt;/P&gt;&lt;P align="left"&gt;* Comments :&lt;/P&gt;&lt;P align="left"&gt;* This task initializes MFS and starts SHELL.&lt;/P&gt;&lt;P align="left"&gt;*&lt;/P&gt;&lt;P align="left"&gt;*END------------------------------------------------------------------*/&lt;/P&gt;&lt;P align="left"&gt;void&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;STRONG&gt;Main_task&lt;/STRONG&gt;(&lt;/FONT&gt;&lt;FONT color="#005032" size="2"&gt;&lt;FONT color="#005032" size="2"&gt;uint_32&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt;&lt;FONT color="#000000"&gt;initial_data)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3F7F5F" size="2"&gt;&lt;FONT color="#3F7F5F" size="2"&gt;&lt;FONT color="#3F7F5F" size="2"&gt;/*******************************&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;*&lt;/P&gt;&lt;P align="left"&gt;* START YOUR CODING HERE&lt;/P&gt;&lt;P align="left"&gt;*&lt;/P&gt;&lt;P align="left"&gt;********************************/&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#7F0055" size="2"&gt;&lt;FONT color="#7F0055" size="2"&gt;for&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt;(;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;{&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;}&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 15:44:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/main-task-never-activated/m-p/176788#M2394</guid>
      <dc:creator>UB39</dc:creator>
      <dc:date>2011-10-25T15:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: main_task never activated</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/main-task-never-activated/m-p/176789#M2395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;UB39,&lt;/P&gt;&lt;P&gt;check the value of&amp;nbsp;MAIN_TASK. It should be higher then 0 as 0 is reserved to end of task template list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 16:18:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/main-task-never-activated/m-p/176789#M2395</guid>
      <dc:creator>petr_uhlir</dc:creator>
      <dc:date>2011-11-03T16:18:28Z</dc:date>
    </item>
  </channel>
</rss>

