<?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: how to use mutex on mqxlite? in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-use-mutex-on-mqxlite/m-p/424557#M14150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did that and it threw me error when I run the program. It said &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Description&lt;/TD&gt;&lt;TD&gt;Resource&lt;/TD&gt;&lt;TD&gt;Path&lt;/TD&gt;&lt;TD&gt;Location&lt;/TD&gt;&lt;TD&gt;Type&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#error MUTEX component is currently disabled in MQX kernel. Please set MQX_USE_MUTEXES to 1 in mqx_sdk_config.h and recompile kernel.&lt;/TD&gt;&lt;TD&gt;mutex.h&lt;/TD&gt;&lt;TD&gt;/shiny_v3/SDK/rtos/mqx/mqx/source/include&lt;/TD&gt;&lt;TD&gt;line 36&lt;/TD&gt;&lt;TD&gt;C/C++ Problem&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how would i be able to recompile the kernel from KDS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Oct 2015 19:06:00 GMT</pubDate>
    <dc:creator>yarannan</dc:creator>
    <dc:date>2015-10-26T19:06:00Z</dc:date>
    <item>
      <title>how to use mutex on mqxlite?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-use-mutex-on-mqxlite/m-p/424555#M14148</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 am building a project that is based on platform KDS3.0 +KSDK1.2+PEx.&lt;/P&gt;&lt;P&gt;I am using MQXLite OS. It is not allow me to enable mutex. It said it doesnt &lt;/P&gt;&lt;P&gt;support. I have to run multi threads with some shared variables. Is there&lt;/P&gt;&lt;P&gt;any way that I can get around this issue? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 19:34:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-use-mutex-on-mqxlite/m-p/424555#M14148</guid>
      <dc:creator>yarannan</dc:creator>
      <dc:date>2015-10-22T19:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to use mutex on mqxlite?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-use-mutex-on-mqxlite/m-p/424556#M14149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yaran:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MQX Lite supports lightweight subset of the MQX componets: LW semaphore, LW evet, Mutex, LW message.&lt;/P&gt;&lt;P&gt;There is an example using mutex&lt;/P&gt;&lt;P&gt;C:\Freescale\CW MCU v10.6\MCU\CodeWarrior_Examples\Processor_Expert\MQXLite\Kinetis\FRDM_KL25Z\MUTEX_KL25Z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mutex is an optional component, the default state is disable.&lt;/P&gt;&lt;P&gt;I think if you add the below line into user_config.h, and recompile all. it should able to support mutex.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define MQX_USE_MUTEXES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching the mqxlite user manual here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 11:37:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-use-mutex-on-mqxlite/m-p/424556#M14149</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2015-10-26T11:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to use mutex on mqxlite?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-use-mutex-on-mqxlite/m-p/424557#M14150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did that and it threw me error when I run the program. It said &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Description&lt;/TD&gt;&lt;TD&gt;Resource&lt;/TD&gt;&lt;TD&gt;Path&lt;/TD&gt;&lt;TD&gt;Location&lt;/TD&gt;&lt;TD&gt;Type&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#error MUTEX component is currently disabled in MQX kernel. Please set MQX_USE_MUTEXES to 1 in mqx_sdk_config.h and recompile kernel.&lt;/TD&gt;&lt;TD&gt;mutex.h&lt;/TD&gt;&lt;TD&gt;/shiny_v3/SDK/rtos/mqx/mqx/source/include&lt;/TD&gt;&lt;TD&gt;line 36&lt;/TD&gt;&lt;TD&gt;C/C++ Problem&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how would i be able to recompile the kernel from KDS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 19:06:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-use-mutex-on-mqxlite/m-p/424557#M14150</guid>
      <dc:creator>yarannan</dc:creator>
      <dc:date>2015-10-26T19:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to use mutex on mqxlite?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-use-mutex-on-mqxlite/m-p/424558#M14151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yaran:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a document to enable MQX Lite in KSDK1.1 , you can choose "mutexes"&amp;nbsp;&amp;nbsp; component to enable mutex, and rebuild all.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-103429"&gt;How To: Create an MQX RTOS for KSDK project with Processor Expert in Kinetis Design Studio IDE&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it with KSDK1.3 , it seems mutex is hidden in this version, it only suuport lightweight events and lightweight message queues in this version&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31087iD12D448C81FC0082/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 05:43:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-use-mutex-on-mqxlite/m-p/424558#M14151</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2015-11-10T05:43:31Z</dc:date>
    </item>
  </channel>
</rss>

