<?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: Problem with create a task</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Problem-with-create-a-task/m-p/421153#M13996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Soledad&lt;/P&gt;&lt;P&gt;You could find my source file here : &lt;A href="https://www.dropbox.com/s/odmz5urfyqdwq4g/wmiconfig_qapi.c?dl=0" title="https://www.dropbox.com/s/odmz5urfyqdwq4g/wmiconfig_qapi.c?dl=0"&gt;Dropbox - wmiconfig_qapi.c&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Nov 2015 21:46:49 GMT</pubDate>
    <dc:creator>hosseinmoghadda</dc:creator>
    <dc:date>2015-11-18T21:46:49Z</dc:date>
    <item>
      <title>Problem with create a task</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Problem-with-create-a-task/m-p/421151#M13994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody&lt;/P&gt;&lt;P&gt;I tried to built my custom app by combining GPIO example and throughput demo provided by qualcomm using IAR embedded workbench . You could find second here :&amp;nbsp;&amp;nbsp; &lt;A href="http://www.freescale.com/webapp/connect/displayPartnerProfile.sp?partnerId=5640" style="text-decoration: underline;"&gt;http://www.freescale.com/webapp/connect/displayPartnerProfile.sp?partnerId=5640&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;What I changed : 1- clear MQX_AUTO_START_TASK for "WMICONFIG_TASK1" and "WMICONFIG_TASK2" and "SHELL_TASK" in the tasks.c of throughput demo and I add my main task as MQX_AUTO_START_TASK .&lt;/P&gt;&lt;P&gt;Here is my main_task code :&lt;/P&gt;&lt;P&gt;void main_task(uint32_t initial_data){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Structures holding information about specific pin */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LWGPIO_STRUCT&amp;nbsp; btn1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _task_id wmiconfig1_task_id , wmiconfig2_task_id , shell_task_id ; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!lwgpio_init(&amp;amp;btn1, BSP_BUTTON1, LWGPIO_DIR_INPUT, LWGPIO_VALUE_NOCHANGE))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("Initializing button GPIO as input failed.\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _task_block();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; lwgpio_set_functionality(&amp;amp;btn1, BSP_BUTTON1_MUX_GPIO);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; lwgpio_set_attribute(&amp;amp;btn1, LWGPIO_ATTR_PULL_UP, LWGPIO_AVAL_ENABLE);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; while (TRUE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if (LWGPIO_VALUE_LOW == lwgpio_get_value(&amp;amp;btn1)){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; _task_create(0,WMICONFIG_TASK1,0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; _task_create(0,WMICONFIG_TASK2,0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; _task_create(0,SHELL_TASK,0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if (wmiconfig1_task_id == MQX_NULL_TASK_ID){printf("wmiconfig_task1 can't be created\n");}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if (wmiconfig2_task_id == MQX_NULL_TASK_ID){printf("wmiconfig_task2 can't be created\n");}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if (shell_task_id == MQX_NULL_TASK_ID){printf("shell_task can't be created\n");}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;when I load my application to my FRDM_K22F and run it it tells me in the tera term console :&lt;/P&gt;&lt;P&gt;wmiconfig_task1 can't be created&lt;/P&gt;&lt;P&gt;wmiconfig_task2 can't be created&lt;/P&gt;&lt;P&gt;shell_task can't be created&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 11:48:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Problem-with-create-a-task/m-p/421151#M13994</guid>
      <dc:creator>hosseinmoghadda</dc:creator>
      <dc:date>2015-11-18T11:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with create a task</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Problem-with-create-a-task/m-p/421152#M13995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Hossein, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please add the complete project?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Soledad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 18:41:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Problem-with-create-a-task/m-p/421152#M13995</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-11-18T18:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with create a task</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Problem-with-create-a-task/m-p/421153#M13996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Soledad&lt;/P&gt;&lt;P&gt;You could find my source file here : &lt;A href="https://www.dropbox.com/s/odmz5urfyqdwq4g/wmiconfig_qapi.c?dl=0" title="https://www.dropbox.com/s/odmz5urfyqdwq4g/wmiconfig_qapi.c?dl=0"&gt;Dropbox - wmiconfig_qapi.c&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 21:46:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Problem-with-create-a-task/m-p/421153#M13996</guid>
      <dc:creator>hosseinmoghadda</dc:creator>
      <dc:date>2015-11-18T21:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with create a task</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Problem-with-create-a-task/m-p/421154#M13997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Sorry but I can't&amp;nbsp; see the &lt;CODE&gt;TASK_TEMPLATE_STRUCT neither the &lt;/CODE&gt;&lt;CODE&gt;WMICONFIG_TASK1,&lt;/CODE&gt;&lt;CODE&gt;WMICONFIG_TASK2&lt;/CODE&gt;&lt;/SPAN&gt;&lt;CODE&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;,SHELL_TASK functions&lt;/SPAN&gt; &lt;/CODE&gt;&lt;CODE class="c comments"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 22:24:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Problem-with-create-a-task/m-p/421154#M13997</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-11-18T22:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with create a task</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Problem-with-create-a-task/m-p/421155#M13998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;You could find TASK_TEMPLATE_STRUCT here : &lt;SPAN style="color: #51626f; font-family: monospace;"&gt; &lt;A href="https://www.dropbox.com/s/2bpnohq4hdgpfzv/Tasks.c?dl=0" title="https://www.dropbox.com/s/2bpnohq4hdgpfzv/Tasks.c?dl=0"&gt;Dropbox - Tasks.c&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;WMICONFIG_TASK1 and WMICONFIG_TASK2 here : &lt;A href="https://www.dropbox.com/s/w4ik9fs2z6jxtw4/task_manager.c?dl=0" title="https://www.dropbox.com/s/w4ik9fs2z6jxtw4/task_manager.c?dl=0"&gt;Dropbox - task_manager.c&lt;/A&gt; &lt;/P&gt;&lt;P&gt;and SHELL_TASK here : &lt;A href="https://www.dropbox.com/s/80zyrt974dbcypr/Shell_Task.c?dl=0" title="https://www.dropbox.com/s/80zyrt974dbcypr/Shell_Task.c?dl=0"&gt;Dropbox - Shell_Task.c&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 23:50:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Problem-with-create-a-task/m-p/421155#M13998</guid>
      <dc:creator>hosseinmoghadda</dc:creator>
      <dc:date>2015-11-18T23:50:02Z</dc:date>
    </item>
  </channel>
</rss>

