<?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 MQX-based code does not execute if task is in a different source file in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-based-code-does-not-execute-if-task-is-in-a-different-source/m-p/385444#M12841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a feeling this is going to be an embarrassing post for me and my question has a really obvious answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the httpserv demo debugging just fine.&amp;nbsp; I added a task to app_mqx and was still able to run it in the debugger.&amp;nbsp; However, if I move this task to another source file (e.g. task.c), the code builds, but it doesn't run.&amp;nbsp; When the code is working and I debug, I'll see the Segger window with the four progress bars appear while the code is downloading.&amp;nbsp; After the function is moved to test.c, the window never pops up and therefore nothing executes.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm totally confused as to why this would happen.&amp;nbsp; Can anyone shed some light on this for me?&amp;nbsp; I'm pretty sure it's not a build problem, as the command line args to gcc look totally correct to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Mar 2015 20:09:36 GMT</pubDate>
    <dc:creator>dave408</dc:creator>
    <dc:date>2015-03-13T20:09:36Z</dc:date>
    <item>
      <title>MQX-based code does not execute if task is in a different source file</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-based-code-does-not-execute-if-task-is-in-a-different-source/m-p/385444#M12841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a feeling this is going to be an embarrassing post for me and my question has a really obvious answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the httpserv demo debugging just fine.&amp;nbsp; I added a task to app_mqx and was still able to run it in the debugger.&amp;nbsp; However, if I move this task to another source file (e.g. task.c), the code builds, but it doesn't run.&amp;nbsp; When the code is working and I debug, I'll see the Segger window with the four progress bars appear while the code is downloading.&amp;nbsp; After the function is moved to test.c, the window never pops up and therefore nothing executes.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm totally confused as to why this would happen.&amp;nbsp; Can anyone shed some light on this for me?&amp;nbsp; I'm pretty sure it's not a build problem, as the command line args to gcc look totally correct to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 20:09:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-based-code-does-not-execute-if-task-is-in-a-different-source/m-p/385444#M12841</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-03-13T20:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: MQX-based code does not execute if task is in a different source file</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-based-code-does-not-execute-if-task-is-in-a-different-source/m-p/385445#M12842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turned out that the solution was to make all of the function definitions extern.&amp;nbsp; I do not understand how the code could compile and link just fine without extern, yet not run.&amp;nbsp; I have other MQX projects with tasks in different .c files, but they aren't marked extern either *and* they work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 20:43:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-based-code-does-not-execute-if-task-is-in-a-different-source/m-p/385445#M12842</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-03-13T20:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: MQX-based code does not execute if task is in a different source file</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-based-code-does-not-execute-if-task-is-in-a-different-source/m-p/385446#M12843</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;Thanks for sharing your solution!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sol &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 20:45:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-based-code-does-not-execute-if-task-is-in-a-different-source/m-p/385446#M12843</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-03-13T20:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: MQX-based code does not execute if task is in a different source file</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-based-code-does-not-execute-if-task-is-in-a-different-source/m-p/385447#M12844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide an explanation as to why some projects need it, and some don't?&amp;nbsp; It's very strange.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2015 03:52:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-based-code-does-not-execute-if-task-is-in-a-different-source/m-p/385447#M12844</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-03-14T03:52:03Z</dc:date>
    </item>
  </channel>
</rss>

