<?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: vApplicationMallocFailedHook getting triggered when creating multiple tasks</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/vApplicationMallocFailedHook-getting-triggered-when-creating/m-p/1860041#M223359</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225191"&gt;@arpandutta0000&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refering the link you provided, for freertos stack size modification on MPU SDK, please find below config in&amp;nbsp;FreeRTOSConfig.h&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhiming_Liu_0-1715043661618.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/277329i688DD3F1EF118238/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhiming_Liu_0-1715043661618.png" alt="Zhiming_Liu_0-1715043661618.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2024 01:03:20 GMT</pubDate>
    <dc:creator>Zhiming_Liu</dc:creator>
    <dc:date>2024-05-07T01:03:20Z</dc:date>
    <item>
      <title>vApplicationMallocFailedHook getting triggered when creating multiple tasks</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/vApplicationMallocFailedHook-getting-triggered-when-creating/m-p/1857912#M223201</link>
      <description>&lt;P&gt;Hi Team,&lt;BR /&gt;We are facing an issue where vApplicationMallocFailedHook gets triggered when creating multiple tasks.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Context:&lt;BR /&gt;&lt;/STRONG&gt;We are trying to develop a FreeRTOS application using the &lt;A href="https://mcuxpresso.nxp.com/download/a4d96da91e3865cb14a0d34f1af479c9" target="_blank" rel="noopener"&gt;NXP-provided RTOS SDK for the iMX8 QuadMax board&lt;/A&gt;. We can create, build, and run sample hello world application. We are using the&amp;nbsp;build_debug.sh script to build the application.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue:&lt;BR /&gt;&lt;/STRONG&gt;When we create multiple tasks(around 4-5 tasks) with a stack depth of 0x800U with just some minimal logs, vApplicationMallocFailedHook function gets triggered and the application behaves unexpectedly afterward.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Additional Info:&lt;BR /&gt;&lt;/STRONG&gt;We found a few threads regarding the same where the solution suggests increasing the heap size using some version of MCUXpresso IDE.&lt;BR /&gt;&lt;BR /&gt;referred threads:&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-bumping-into-vApplicationMallocFailedHook/m-p/364988" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-bumping-into-vApplicationMallocFailedHook/m-p/364988&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/MCUXpresso-IDE/How-to-configure-heap-and-stack-sizes-in-MCUXpresso/m-p/982343" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/MCUXpresso-IDE/How-to-configure-heap-and-stack-sizes-in-MCUXpresso/m-p/982343&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is increasing heap size the proper way to resolve vApplicationMallocFailedHook issue or should we look into something else?&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;If we need to increase heap size, how to do it without using the MCUXpresso IDE? Which file(s) do we need to edit to increase the heap size?&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 01 May 2024 07:18:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/vApplicationMallocFailedHook-getting-triggered-when-creating/m-p/1857912#M223201</guid>
      <dc:creator>arpandutta0000</dc:creator>
      <dc:date>2024-05-01T07:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: vApplicationMallocFailedHook getting triggered when creating multiple tasks</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/vApplicationMallocFailedHook-getting-triggered-when-creating/m-p/1860041#M223359</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225191"&gt;@arpandutta0000&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refering the link you provided, for freertos stack size modification on MPU SDK, please find below config in&amp;nbsp;FreeRTOSConfig.h&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhiming_Liu_0-1715043661618.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/277329i688DD3F1EF118238/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhiming_Liu_0-1715043661618.png" alt="Zhiming_Liu_0-1715043661618.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 01:03:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/vApplicationMallocFailedHook-getting-triggered-when-creating/m-p/1860041#M223359</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2024-05-07T01:03:20Z</dc:date>
    </item>
  </channel>
</rss>

