<?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: Two heaps, MCUXPresso IDE 11.5.0 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Two-heaps-MCUXPresso-IDE-11-5-0/m-p/1533987#M64128</link>
    <description>&lt;P&gt;HI Erich,&lt;/P&gt;&lt;P&gt;Thank you. And I have the following questions:&lt;/P&gt;&lt;P&gt;1) I am using heap_3.c for now. I have to get heap_5.c. What is the major difference between hap_3 and heap_5? will it cause any problem on existing project? Where can I get heap_5.c?&lt;/P&gt;&lt;P&gt;2) I want to use the different heap for the different task. Can you tell me if it is possible and how to do it?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2022 15:42:30 GMT</pubDate>
    <dc:creator>a8Chcx</dc:creator>
    <dc:date>2022-10-07T15:42:30Z</dc:date>
    <item>
      <title>Two heaps, MCUXPresso IDE 11.5.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Two-heaps-MCUXPresso-IDE-11-5-0/m-p/1533875#M64126</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using the sample project "frdmk66f_lwip_httpsrv_mbedTLS_httpsrv" to build my application.&lt;/P&gt;&lt;P&gt;It works fine. In my application, there is other task that is using lot of memory from heap. So, when they are together, it stop working after certain time...&lt;/P&gt;&lt;P&gt;It is possible to set up two heaps in different memory section because I have SDRAM, one for http server, other is for other task?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 12:01:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Two-heaps-MCUXPresso-IDE-11-5-0/m-p/1533875#M64126</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2022-10-07T12:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Two heaps, MCUXPresso IDE 11.5.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Two-heaps-MCUXPresso-IDE-11-5-0/m-p/1533962#M64127</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/14098"&gt;@a8Chcx&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;maybe this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2017/09/18/using-multiple-memory-regions-with-the-freertos-heap/" target="_blank"&gt;https://mcuoneclipse.com/2017/09/18/using-multiple-memory-regions-with-the-freertos-heap/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 14:57:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Two-heaps-MCUXPresso-IDE-11-5-0/m-p/1533962#M64127</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2022-10-07T14:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Two heaps, MCUXPresso IDE 11.5.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Two-heaps-MCUXPresso-IDE-11-5-0/m-p/1533987#M64128</link>
      <description>&lt;P&gt;HI Erich,&lt;/P&gt;&lt;P&gt;Thank you. And I have the following questions:&lt;/P&gt;&lt;P&gt;1) I am using heap_3.c for now. I have to get heap_5.c. What is the major difference between hap_3 and heap_5? will it cause any problem on existing project? Where can I get heap_5.c?&lt;/P&gt;&lt;P&gt;2) I want to use the different heap for the different task. Can you tell me if it is possible and how to do it?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 15:42:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Two-heaps-MCUXPresso-IDE-11-5-0/m-p/1533987#M64128</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2022-10-07T15:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Two heaps, MCUXPresso IDE 11.5.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Two-heaps-MCUXPresso-IDE-11-5-0/m-p/1534017#M64130</link>
      <description>&lt;P&gt;Hi Christie,&lt;/P&gt;&lt;P&gt;1) see &lt;A href="https://www.freertos.org/a00111.html" target="_blank" rel="noopener"&gt;https://www.freertos.org/a00111.html&lt;/A&gt;. Heap_3 is basically a wrapper around malloc()/free() with thread safety. But I would not recommend using Heap_3 if you are using malloc()/free() from your application in other places. Use Heap_6 for this, see &lt;A href="https://mcuoneclipse.com/2017/07/02/using-freertos-with-newlib-and-newlib-nano/" target="_blank" rel="noopener"&gt;https://mcuoneclipse.com/2017/07/02/using-freertos-with-newlib-and-newlib-nano/&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Heap_4 is usually what I would recommend, and Heap_5 is simply the same but with multiple regions.&lt;/P&gt;&lt;P&gt;2) No, you cannot use different heaps for different tasks. I would suggest that you consider using static memory for tasks instead which has been introduced with FreeRTOS v9.0.0, see &lt;A href="https://mcuoneclipse.com/2016/05/29/freertos-v9-0-0-with-static-memory-allocation/" target="_blank" rel="noopener"&gt;https://mcuoneclipse.com/2016/05/29/freertos-v9-0-0-with-static-memory-allocation/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 16:48:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Two-heaps-MCUXPresso-IDE-11-5-0/m-p/1534017#M64130</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2022-10-07T16:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Two heaps, MCUXPresso IDE 11.5.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Two-heaps-MCUXPresso-IDE-11-5-0/m-p/1534022#M64131</link>
      <description>&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;I am using IDE 11.5.0. What is RTOS version included?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where can I select memory allocation? It has to use heap_6.c?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 17:05:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Two-heaps-MCUXPresso-IDE-11-5-0/m-p/1534022#M64131</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2022-10-07T17:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Two heaps, MCUXPresso IDE 11.5.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Two-heaps-MCUXPresso-IDE-11-5-0/m-p/1534256#M64135</link>
      <description>&lt;P&gt;NXP had that heap_6 as part of their SDK FreeRTOS, but somehow it is not present any more in the latest SDK (not sure why).&lt;/P&gt;&lt;P&gt;Anyway, I'm using the FreeRTOS from the McuLib (&lt;A href="https://github.com/ErichStyger/McuOnEclipseLibrary" target="_blank"&gt;https://github.com/ErichStyger/McuOnEclipseLibrary&lt;/A&gt;), see &lt;A href="https://github.com/ErichStyger/McuOnEclipseLibrary/tree/master/lib/FreeRTOS/Source/portable/MemMang" target="_blank"&gt;https://github.com/ErichStyger/McuOnEclipseLibrary/tree/master/lib/FreeRTOS/Source/portable/MemMang&lt;/A&gt; where you can find heap_useNewlib.c.&lt;/P&gt;&lt;P&gt;You can copy it from there, or use that FreeRTOS port (this is what I do).&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2022 14:34:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Two-heaps-MCUXPresso-IDE-11-5-0/m-p/1534256#M64135</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2022-10-08T14:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Two heaps, MCUXPresso IDE 11.5.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Two-heaps-MCUXPresso-IDE-11-5-0/m-p/1536246#M64160</link>
      <description>&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;I am trying to change to heap_4.c for "frdmk66f_lwip_httpsrv_mbedTLS" sample project(Use heap_3.c) and it stop working.&lt;/P&gt;&lt;P&gt;Can you help me to see why it cannot switch to heap_4.c?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 12:17:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Two-heaps-MCUXPresso-IDE-11-5-0/m-p/1536246#M64160</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2022-10-12T12:17:16Z</dc:date>
    </item>
  </channel>
</rss>

