<?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 Malloc size change frdm-64 using Mcuxpresso in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Malloc-size-change-frdm-64-using-Mcuxpresso/m-p/977815#M55412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;I am using an FRDM-K64F board with the MCUXPRESSO IDE.&lt;BR /&gt;My application uses a lot of memory by malloc, so I need +-128K Ram size using malloc. When using the standard settings (see below for more details), there is no way to go above 64K that I can ask, using malloc.&lt;BR /&gt;Question : how do I instruct the compiler/system to give me more memory from malloc (physically there should be plenty). My application uses some 16K of ram by declaration in the main, and works fine, the problem comes from the limit on malloc&amp;nbsp; during run time, which limits to 64K.&lt;BR /&gt;Some useful tips or solution would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here some information:&lt;/P&gt;&lt;P&gt;Product: MCUXpresso IDE&lt;BR /&gt;Version: MCUXpresso IDE v11.0.0 [Build 2516] [2019-06-05]&lt;BR /&gt;Operating system: Windows 7&lt;BR /&gt;VM: Java HotSpot(TM) 64-Bit Server VM (64 bit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/98170i049CD7FD17BA57C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/97585i1BC66F87E80318FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/98069i55D1E48301549525/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;wbr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2020 14:53:39 GMT</pubDate>
    <dc:creator>josrennies</dc:creator>
    <dc:date>2020-03-17T14:53:39Z</dc:date>
    <item>
      <title>Malloc size change frdm-64 using Mcuxpresso</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Malloc-size-change-frdm-64-using-Mcuxpresso/m-p/977815#M55412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;I am using an FRDM-K64F board with the MCUXPRESSO IDE.&lt;BR /&gt;My application uses a lot of memory by malloc, so I need +-128K Ram size using malloc. When using the standard settings (see below for more details), there is no way to go above 64K that I can ask, using malloc.&lt;BR /&gt;Question : how do I instruct the compiler/system to give me more memory from malloc (physically there should be plenty). My application uses some 16K of ram by declaration in the main, and works fine, the problem comes from the limit on malloc&amp;nbsp; during run time, which limits to 64K.&lt;BR /&gt;Some useful tips or solution would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here some information:&lt;/P&gt;&lt;P&gt;Product: MCUXpresso IDE&lt;BR /&gt;Version: MCUXpresso IDE v11.0.0 [Build 2516] [2019-06-05]&lt;BR /&gt;Operating system: Windows 7&lt;BR /&gt;VM: Java HotSpot(TM) 64-Bit Server VM (64 bit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/98170i049CD7FD17BA57C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/97585i1BC66F87E80318FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/98069i55D1E48301549525/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;wbr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2020 14:53:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Malloc-size-change-frdm-64-using-Mcuxpresso/m-p/977815#M55412</guid>
      <dc:creator>josrennies</dc:creator>
      <dc:date>2020-03-17T14:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Malloc size change frdm-64 using Mcuxpresso</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Malloc-size-change-frdm-64-using-Mcuxpresso/m-p/977816#M55413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using FreeRTOS which has a memory manager which allows to allocate in multiple memory regions (see &lt;A class="link-titled" href="https://mcuoneclipse.com/2017/09/18/using-multiple-memory-regions-with-the-freertos-heap/" title="https://mcuoneclipse.com/2017/09/18/using-multiple-memory-regions-with-the-freertos-heap/"&gt;Using Multiple Memory Regions with the FreeRTOS Heap | MCU on Eclipse&lt;/A&gt;). You actually could use this without running the RTOS, because the memory allocation works without the scheduler started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2020 16:32:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Malloc-size-change-frdm-64-using-Mcuxpresso/m-p/977816#M55413</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-03-17T16:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Malloc size change frdm-64 using Mcuxpresso</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Malloc-size-change-frdm-64-using-Mcuxpresso/m-p/977817#M55414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Erich,&lt;/P&gt;&lt;P&gt;Thanks for your prompt response!Let me first inform you what I need to&lt;/P&gt;&lt;P&gt;develop : I am doing a thermal object detection software, which is almost&lt;/P&gt;&lt;P&gt;done and which was running fine when the declaration of arrays and other&lt;/P&gt;&lt;P&gt;variables was done in the main program and was using the extern reference&lt;/P&gt;&lt;P&gt;from module to module. Because we have customers that want to use very&lt;/P&gt;&lt;P&gt;cheap microcontrollers (as less as possible ram and flash and as cheap as&lt;/P&gt;&lt;P&gt;possible!), they want to have the application running (=read lib, or source&lt;/P&gt;&lt;P&gt;code) that is easy and fast portable! I only need a chunk  of ram that is&lt;/P&gt;&lt;P&gt;let's say has the biggest size (the 192K one will do).&lt;/P&gt;&lt;P&gt;I figured out, just by changing the heap size (that is the region where&lt;/P&gt;&lt;P&gt;malloc acts), my problem was solved.&lt;/P&gt;&lt;P&gt;Anyway, many thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wbr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jos Rennies&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2020 08:01:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Malloc-size-change-frdm-64-using-Mcuxpresso/m-p/977817#M55414</guid>
      <dc:creator>josrennies</dc:creator>
      <dc:date>2020-03-18T08:01:49Z</dc:date>
    </item>
  </channel>
</rss>

