<?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: _mem_alloc_system_align in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/mem-alloc-system-align/m-p/185795#M3197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to get a solution to this problem via a service request.&amp;nbsp; This is the response from Freescale regarding the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;We made a quick analysis and there seem to be two problems:

- The funtion _mem_alloc_system_align seems not to be present in latest MQX.
So as the customer correctly observed, it's necessary to use _mem_alloc_align instead.

- The _mem_alloc_align is available only if the BSP and PSP is recompiled with the option MQX_USE_LWMEM_ALLOCATOR set to 0.
It should help adding #define MQX_USE_LWMEM_ALLOCATOR 0 to for example small_ram_config.h file, before this symbol is used."

For a current workaround you can use "_mem_alloc_align", enable the allocator macro and recompile the BSP/PSP.

Processor Expert team is getting more details on the best solution for these problems so that they get fixed for further releases of PExpert.&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2020 09:36:31 GMT</pubDate>
    <dc:creator>FredF</dc:creator>
    <dc:date>2020-10-29T09:36:31Z</dc:date>
    <item>
      <title>_mem_alloc_system_align</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/mem-alloc-system-align/m-p/185791#M3193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I added a USB LDD device to the pe_demo_twrk40x256 MQX sample project, it generated an error indicating that "_mem_alloc_system_align" is not defined.&amp;nbsp; I have not found any reference to this function in the MQX documentation.&amp;nbsp; This code is generated by Processor expert, and I do not know how to resolve the erorr.&amp;nbsp; I am using CW10.1 and MQX 3.7.&amp;nbsp; Any suggestions are greatly appreicated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 06:04:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/mem-alloc-system-align/m-p/185791#M3193</guid>
      <dc:creator>FredF</dc:creator>
      <dc:date>2011-11-24T06:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: _mem_alloc_system_align</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/mem-alloc-system-align/m-p/185792#M3194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The integration of Processor Expert is done at the BSP level. You should add USB LDD to&amp;nbsp;\src\mqx\build\cw10\bsp_twrk40x256_pe BSP. Then regenerate code, recompile BSP and then you can call USB LDD components from your application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 20:44:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/mem-alloc-system-align/m-p/185792#M3194</guid>
      <dc:creator>petr_uhlir</dc:creator>
      <dc:date>2011-11-24T20:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: _mem_alloc_system_align</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/mem-alloc-system-align/m-p/185793#M3195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies for the erroneous information. The USB LDD was added to the BSP, but the error does not occur until the pe_demo project is built.&amp;nbsp; Thanks for the quick reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 23:08:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/mem-alloc-system-align/m-p/185793#M3195</guid>
      <dc:creator>FredF</dc:creator>
      <dc:date>2011-11-28T23:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: _mem_alloc_system_align</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/mem-alloc-system-align/m-p/185794#M3196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got exacly the same error;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added USB_LLD PE Component in BSB, compiled without problems.&lt;/P&gt;&lt;P&gt;But in the MQX Application I got the Error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(D:\Freescale\Freescale MQX 3.7\mqx\build\cw10\bsp_twrk60n512_pe\Generated_Code\USB0.c|707|0|0|0|0)&lt;BR /&gt;=Referenced from "USB0_Init" in bsp_twrk60n512_d.a&lt;BR /&gt;&amp;gt;Undefined : "_mem_alloc_system_align"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The USB device lib is linked to the application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 22:02:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/mem-alloc-system-align/m-p/185794#M3196</guid>
      <dc:creator>hard_ware</dc:creator>
      <dc:date>2011-12-14T22:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: _mem_alloc_system_align</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/mem-alloc-system-align/m-p/185795#M3197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to get a solution to this problem via a service request.&amp;nbsp; This is the response from Freescale regarding the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;We made a quick analysis and there seem to be two problems:

- The funtion _mem_alloc_system_align seems not to be present in latest MQX.
So as the customer correctly observed, it's necessary to use _mem_alloc_align instead.

- The _mem_alloc_align is available only if the BSP and PSP is recompiled with the option MQX_USE_LWMEM_ALLOCATOR set to 0.
It should help adding #define MQX_USE_LWMEM_ALLOCATOR 0 to for example small_ram_config.h file, before this symbol is used."

For a current workaround you can use "_mem_alloc_align", enable the allocator macro and recompile the BSP/PSP.

Processor Expert team is getting more details on the best solution for these problems so that they get fixed for further releases of PExpert.&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:36:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/mem-alloc-system-align/m-p/185795#M3197</guid>
      <dc:creator>FredF</dc:creator>
      <dc:date>2020-10-29T09:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: _mem_alloc_system_align</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/mem-alloc-system-align/m-p/185796#M3198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is the updated MQX RTOS adapter in the zip file. Copy the zipped _MQX_RTOSAdaptor.prg file into MCU 10.1 installation directory {CW MCU v10.1}\MCU\ProcessorExpert\Drivers\sw\RTOSAdaptor\_MQX_RTOSAdaptor.prg. I recommend to backup the existing&amp;nbsp;_MQX_RTOSAdaptor.prg file first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: Workaround mentioned above (MQX_USE_LWMEM_ALLOCATOR) have to be used for MQX 3.7 henceforth.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Marek V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 22:47:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/mem-alloc-system-align/m-p/185796#M3198</guid>
      <dc:creator>marek_vinkler</dc:creator>
      <dc:date>2011-12-15T22:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: _mem_alloc_system_align</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/mem-alloc-system-align/m-p/185797#M3199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When setting "#define MQX_USE_LWMEM_ALLOCATOR&amp;nbsp; 0" I get a bunch of new errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;D:/Freescale/CW MCU v10.1/MCU/ARM_Tools/Command_Line_Tools/mwldarm|Linker|Error&lt;BR /&gt;(D:\Freescale\Freescale MQX 3.7\mqx\source\io\adc\adc.c|65|0|0|0|0)&lt;BR /&gt;=Referenced from "_io_adc_install" in bsp_twrk60n512_d.a&lt;BR /&gt;&amp;gt;Undefined : "_mem_alloc"&lt;BR /&gt;D:/Freescale/CW MCU v10.1/MCU/ARM_Tools/Command_Line_Tools/mwldarm|Linker|Error&lt;BR /&gt;(D:\Freescale\Freescale MQX 3.7\mqx\source\bsp\twrk60n512\init_bsp.c|83|0|0|0|0)&lt;BR /&gt;=Referenced from "_bsp_enable_card" in bsp_twrk60n512_d.a&lt;BR /&gt;&amp;gt;Undefined : "_mem_alloc_at"&lt;BR /&gt;D:/Freescale/CW MCU v10.1/MCU/ARM_Tools/Command_Line_Tools/mwldarm|Linker|Error&lt;BR /&gt;(D:\Freescale\Freescale MQX 3.7\mqx\build\cw10\bsp_twrk60n512_pe\Generated_Code\ADC_1.c|142|0|0|0|0)&lt;BR /&gt;=Referenced from "ADC_1_Init" in bsp_twrk60n512_d.a&lt;BR /&gt;&amp;gt;Undefined : "_mem_alloc_system"&lt;BR /&gt;D:/Freescale/CW MCU v10.1/MCU/ARM_Tools/Command_Line_Tools/mwldarm|Linker|Error&lt;BR /&gt;(D:\Freescale\Freescale MQX 3.7\mqx\build\cw10\bsp_twrk60n512_pe\Generated_Code\CAN.c|144|0|0|0|0)&lt;BR /&gt;=Referenced from "CAN_Init" in bsp_twrk60n512_d.a&lt;BR /&gt;&amp;gt;Undefined : "_mem_alloc_system"&lt;BR /&gt;D:/Freescale/CW MCU v10.1/MCU/ARM_Tools/Command_Line_Tools/mwldarm|Linker|Error&lt;BR /&gt;(D:\Freescale\Freescale MQX 3.7\mqx\build\cw10\bsp_twrk60n512_pe\Generated_Code\GPIO_ACC1_INT.c|94|0|0|0|0)&lt;BR /&gt;=Referenced from "GPIO_ACC1_INT_Init" in bsp_twrk60n512_d.a&lt;BR /&gt;&amp;gt;Undefined : "_mem_alloc_system"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 18:11:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/mem-alloc-system-align/m-p/185797#M3199</guid>
      <dc:creator>hard_ware</dc:creator>
      <dc:date>2011-12-19T18:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: _mem_alloc_system_align</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/mem-alloc-system-align/m-p/185798#M3200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have your recompiled all : BSP, PSP and the application ? I recommend to clean all these project, recompile with the given option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;BR /&gt;Petr Hradsky&lt;BR /&gt;Processor Expert Support Team&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 21:16:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/mem-alloc-system-align/m-p/185798#M3200</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2011-12-19T21:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: _mem_alloc_system_align</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/mem-alloc-system-align/m-p/185799#M3201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks, now it works, I have not recompiled the PSP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 22:52:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/mem-alloc-system-align/m-p/185799#M3201</guid>
      <dc:creator>hard_ware</dc:creator>
      <dc:date>2011-12-20T22:52:55Z</dc:date>
    </item>
  </channel>
</rss>

