<?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>i.MX ProcessorsのトピックRe: How to release heap size on IMXRT1062 platform?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-release-heap-size-on-IMXRT1062-platform/m-p/1669147#M207587</link>
    <description>I understand, thank you Jing.</description>
    <pubDate>Wed, 14 Jun 2023 09:20:44 GMT</pubDate>
    <dc:creator>Edward-Liao33</dc:creator>
    <dc:date>2023-06-14T09:20:44Z</dc:date>
    <item>
      <title>How to release heap size on IMXRT1062 platform?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-release-heap-size-on-IMXRT1062-platform/m-p/1668331#M207502</link>
      <description>&lt;P&gt;Hi Sir:&lt;/P&gt;&lt;P&gt;Below is my platform information&lt;/P&gt;&lt;P&gt;Chipset:&amp;nbsp;i.MX RT1060X Processor&lt;/P&gt;&lt;P&gt;OS: FreeRTOS , version V10.3.0&lt;/P&gt;&lt;P&gt;Memory management by file heap_3.c (&amp;nbsp;&lt;SPAN&gt;pvPortMalloc and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;vPortFree&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I call function&amp;nbsp;"vPortFree" at the end of my execution, I do not see the MCU heap being properly released. I think the function is releasing the heap of the RTOS rather than the on the MCU, right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If yes, how can I release the heap on the MCU?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwardLiao33_0-1686652297784.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227400i5CB8C41489B5CA81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EdwardLiao33_0-1686652297784.png" alt="EdwardLiao33_0-1686652297784.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 10:35:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-release-heap-size-on-IMXRT1062-platform/m-p/1668331#M207502</guid>
      <dc:creator>Edward-Liao33</dc:creator>
      <dc:date>2023-06-13T10:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to release heap size on IMXRT1062 platform?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-release-heap-size-on-IMXRT1062-platform/m-p/1669101#M207582</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218756"&gt;@Edward-Liao33&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Yes, heap3.c use system malloc/free function. It seems IDE can't detect new heap usage data after free().&lt;/P&gt;
&lt;P&gt;You can test by below code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    pt=pvPortMalloc(0x200);
    *pt=1;
    vPortFree(pt);
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The heap usage will increase when malloc, but will not decrease after free().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 08:38:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-release-heap-size-on-IMXRT1062-platform/m-p/1669101#M207582</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2023-06-14T08:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to release heap size on IMXRT1062 platform?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-release-heap-size-on-IMXRT1062-platform/m-p/1669147#M207587</link>
      <description>I understand, thank you Jing.</description>
      <pubDate>Wed, 14 Jun 2023 09:20:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-release-heap-size-on-IMXRT1062-platform/m-p/1669147#M207587</guid>
      <dc:creator>Edward-Liao33</dc:creator>
      <dc:date>2023-06-14T09:20:44Z</dc:date>
    </item>
  </channel>
</rss>

