<?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 S32K314 FreeRTSO Heap Usege question in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K314-FreeRTSO-Heap-Usege-question/m-p/2114095#M49771</link>
    <description>&lt;P&gt;I created 5 tasks and a timer task using FreeRTOS on the S32K314 MCU. When I checked the Heap Usage, I found that 75% of the heap had been used. I didn't use the pvPortMalloc() function to allocate space in my code. Is this normal? If not, how can I check where exactly the heap space is being used? The FreeRTOS SDK I'm using is SW32K3_FreeRTOS_10_4_6_UOS_2_0_0_DS_updatesite_D2204, and the RTD version is SW32K3_RTD_4.4_2.0.0_DS_updatesite_D2204. I'm looking forward to your reply. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wangfangyuanx_0-1749613465390.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/342359i1E6E8274C829ACE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wangfangyuanx_0-1749613465390.png" alt="Wangfangyuanx_0-1749613465390.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jun 2025 03:45:00 GMT</pubDate>
    <dc:creator>Wangfangyuanx</dc:creator>
    <dc:date>2025-06-11T03:45:00Z</dc:date>
    <item>
      <title>S32K314 FreeRTSO Heap Usege question</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-FreeRTSO-Heap-Usege-question/m-p/2114095#M49771</link>
      <description>&lt;P&gt;I created 5 tasks and a timer task using FreeRTOS on the S32K314 MCU. When I checked the Heap Usage, I found that 75% of the heap had been used. I didn't use the pvPortMalloc() function to allocate space in my code. Is this normal? If not, how can I check where exactly the heap space is being used? The FreeRTOS SDK I'm using is SW32K3_FreeRTOS_10_4_6_UOS_2_0_0_DS_updatesite_D2204, and the RTD version is SW32K3_RTD_4.4_2.0.0_DS_updatesite_D2204. I'm looking forward to your reply. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wangfangyuanx_0-1749613465390.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/342359i1E6E8274C829ACE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wangfangyuanx_0-1749613465390.png" alt="Wangfangyuanx_0-1749613465390.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 03:45:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-FreeRTSO-Heap-Usege-question/m-p/2114095#M49771</guid>
      <dc:creator>Wangfangyuanx</dc:creator>
      <dc:date>2025-06-11T03:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: S32K314 FreeRTSO Heap Usege question</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-FreeRTSO-Heap-Usege-question/m-p/2114423#M49801</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/242344"&gt;@Wangfangyuanx&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Which heap implementation do you use?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.freertos.org/Documentation/02-Kernel/02-Kernel-features/09-Memory-management/01-Memory-management" target="_blank"&gt;https://www.freertos.org/Documentation/02-Kernel/02-Kernel-features/09-Memory-management/01-Memory-management&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 10:44:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-FreeRTSO-Heap-Usege-question/m-p/2114423#M49801</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-06-11T10:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: S32K314 FreeRTSO Heap Usege question</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-FreeRTSO-Heap-Usege-question/m-p/2115053#M49829</link>
      <description>Hi, Daniel, the heap implementation that I used was heap_4&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jun 2025 06:35:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-FreeRTSO-Heap-Usege-question/m-p/2115053#M49829</guid>
      <dc:creator>Wangfangyuanx</dc:creator>
      <dc:date>2025-06-12T06:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: S32K314 FreeRTSO Heap Usege question</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-FreeRTSO-Heap-Usege-question/m-p/2116126#M49875</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/242344"&gt;@Wangfangyuanx&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;As you can see in the screenshot you posted, the tasks are allocated on the heap.&lt;/P&gt;
&lt;P&gt;pvPortMalloc() is called by&amp;nbsp;xTaskCreate();&lt;/P&gt;
&lt;P&gt;FreeRTOS has also this API:&amp;nbsp;xTaskCreateStatic() that can be use.&lt;/P&gt;
&lt;P&gt;You need to enable "support static allocation".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 12:50:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-FreeRTSO-Heap-Usege-question/m-p/2116126#M49875</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-06-13T12:50:22Z</dc:date>
    </item>
  </channel>
</rss>

