<?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: Build Error: Please enable allocator or disable MQXCFG_ENABLE_FP in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Build-Error-Please-enable-allocator-or-disable-MQXCFG-ENABLE-FP/m-p/391459#M1160</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the following code, I know that in your system , MQXCFG_ALLOCATOR == MQX_ALLOCATOR_NONE. So I think your system is mqx_lite.&lt;/P&gt;&lt;P&gt;You can trace MQXCFG_ALLOCATOR, maybe somewhere, you see it as MQX_ALLOCATOR_NONE (0). Otherwise, this error message can not display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mqx_cnfg.h Line1328&lt;/P&gt;&lt;P&gt;#if (MQXCFG_ENABLE_FP == 1)&amp;amp;&amp;amp;(MQXCFG_ALLOCATOR == MQX_ALLOCATOR_NONE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #error FP tasks need enabled allocator. Please enable allocator or disable MQXCFG_ENABLE_FP.&lt;/P&gt;&lt;P&gt;#endif&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>Mon, 21 Sep 2015 22:39:26 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2015-09-21T22:39:26Z</dc:date>
    <item>
      <title>Build Error: Please enable allocator or disable MQXCFG_ENABLE_FP</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Build-Error-Please-enable-allocator-or-disable-MQXCFG-ENABLE-FP/m-p/391456#M1157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting a compile error when building a project for the K64F:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Users\raj\Development\lib\Freescale\KSDK_1.2.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx/mqx_cnfg.h:1328:6: error: #error FP tasks need enabled allocator. Please enable allocator or disable MQXCFG_ENABLE_FP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #error FP tasks need enabled allocator. Please enable allocator or disable MQXCFG_ENABLE_FP.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did find one instance in which MQXCFG_ENABLE_FP was set to 1. It was in KSDK_1.2.0/rtos/mqx/config/mcu/MK64F12/mqx_sdk_config.h (not sure why, as everywhere else I see it set to 0).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I set it to zero there as well as in my local project which appears to be a copy of it located in Config/mcu/MK64F12/mqx_sk_config.h&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I rebuilt the mqx_stdlib_frdm64f, and ksdk_mqx_lib_K64F12 but when I rebuild my local project I still get the error message. &lt;/P&gt;&lt;P&gt;It goes away, if I don't include MQX.h in one of my .c files. But I don't know what is triggering the error.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any tips appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Sep 2015 01:42:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Build-Error-Please-enable-allocator-or-disable-MQXCFG-ENABLE-FP/m-p/391456#M1157</guid>
      <dc:creator>rajbatra</dc:creator>
      <dc:date>2015-09-19T01:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Build Error: Please enable allocator or disable MQXCFG_ENABLE_FP</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Build-Error-Please-enable-allocator-or-disable-MQXCFG-ENABLE-FP/m-p/391457#M1158</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;I think maybe this is a configuration issue.&amp;nbsp; I guess you config your system as MQX_LITE_CONFIG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please see&amp;nbsp; mqx_config_config.h&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define MQX_COMMON_CONFIG&lt;/TD&gt;&lt;TD&gt;MQX_SMALL_RAM_CONFIG&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you define&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define MQX_COMMON_CONFIG&lt;/TD&gt;&lt;TD&gt;LITE_CONFIG&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;You need to&lt;/P&gt;&lt;P&gt;#define MQXCFG_ENABLE_FP&amp;nbsp; 0&lt;/P&gt;&lt;P&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>Mon, 21 Sep 2015 02:20:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Build-Error-Please-enable-allocator-or-disable-MQXCFG-ENABLE-FP/m-p/391457#M1158</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2015-09-21T02:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Build Error: Please enable allocator or disable MQXCFG_ENABLE_FP</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Build-Error-Please-enable-allocator-or-disable-MQXCFG-ENABLE-FP/m-p/391458#M1159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I shouldn't be using lite:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My mqx_sdk_config.h file (located in my project) has this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#ifndef __mqx_sdk_config_h__&lt;/P&gt;&lt;P&gt;#define __mqx_sdk_config_h__&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Select initial MQX configuration&lt;/P&gt;&lt;P&gt; * Set one of following configuration:&lt;/P&gt;&lt;P&gt; * MQX_LITE_CONFIG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - lower memory usage, less features&lt;/P&gt;&lt;P&gt; * MQX_SMALL_RAM_CONFIG&amp;nbsp; - higer memory usage, more features&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;#define MQX_COMMON_CONFIG&amp;nbsp;&amp;nbsp;&amp;nbsp; MQX_SMALL_RAM_CONFIG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define CMSIS_ENABLED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;#define MQX_USE_IDLE_TASK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;#define MQXCFG_ENABLE_FP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; // I TRIED CHANGING THIS TO 0 BUT DIDN"T HELP.&lt;/P&gt;&lt;P&gt;#define MQX_TASK_DESTRUCTION&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't see mqx_config.h, I do have mqx_cnfg.h which includes mqx_sdk_config.h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 18:32:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Build-Error-Please-enable-allocator-or-disable-MQXCFG-ENABLE-FP/m-p/391458#M1159</guid>
      <dc:creator>rajbatra</dc:creator>
      <dc:date>2015-09-21T18:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Build Error: Please enable allocator or disable MQXCFG_ENABLE_FP</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Build-Error-Please-enable-allocator-or-disable-MQXCFG-ENABLE-FP/m-p/391459#M1160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the following code, I know that in your system , MQXCFG_ALLOCATOR == MQX_ALLOCATOR_NONE. So I think your system is mqx_lite.&lt;/P&gt;&lt;P&gt;You can trace MQXCFG_ALLOCATOR, maybe somewhere, you see it as MQX_ALLOCATOR_NONE (0). Otherwise, this error message can not display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mqx_cnfg.h Line1328&lt;/P&gt;&lt;P&gt;#if (MQXCFG_ENABLE_FP == 1)&amp;amp;&amp;amp;(MQXCFG_ALLOCATOR == MQX_ALLOCATOR_NONE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #error FP tasks need enabled allocator. Please enable allocator or disable MQXCFG_ENABLE_FP.&lt;/P&gt;&lt;P&gt;#endif&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>Mon, 21 Sep 2015 22:39:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Build-Error-Please-enable-allocator-or-disable-MQXCFG-ENABLE-FP/m-p/391459#M1160</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2015-09-21T22:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Build Error: Please enable allocator or disable MQXCFG_ENABLE_FP</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Build-Error-Please-enable-allocator-or-disable-MQXCFG-ENABLE-FP/m-p/391460#M1161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see your point. Doing a search, MQXCFG_ALLOCATOR is defined as MQX_ALLOCATOR_NONE in lite_config.h and MQX_ALLOCATOR_LWMEM in small_ram_config.h.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll have to hunt down where it's including lite_config.h given my mqx_sdk_config.h says MQX_SMALL_RAM_CONFIG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find it confusing that when I created the project, KDS copied a bunch of header files from the ksdk_mqx_lib_k64F12 include folders to my local project. Seems there's a danger that I can get them out of sync (I.e. make a change to my local .h file and not rebuild the ksdk_mqx_lib with the change). Is there a point to doing that versus just referring to the headers that are associated with the .a file located in the ksdk_mqx_lib folder?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 23:49:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Build-Error-Please-enable-allocator-or-disable-MQXCFG-ENABLE-FP/m-p/391460#M1161</guid>
      <dc:creator>rajbatra</dc:creator>
      <dc:date>2015-09-21T23:49:33Z</dc:date>
    </item>
  </channel>
</rss>

