Hi Team,
We are facing an issue where vApplicationMallocFailedHook gets triggered when creating multiple tasks.
Context:
We are trying to develop a FreeRTOS application using the NXP-provided RTOS SDK for the iMX8 QuadMax board. We can create, build, and run sample hello world application. We are using the build_debug.sh script to build the application.
Issue:
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.
Additional Info:
We found a few threads regarding the same where the solution suggests increasing the heap size using some version of MCUXpresso IDE.
referred threads:
https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-bumping-into-vApplicationMallocFailed...
https://community.nxp.com/t5/MCUXpresso-IDE/How-to-configure-heap-and-stack-sizes-in-MCUXpresso/m-p/...
Questions:
Refering the link you provided, for freertos stack size modification on MPU SDK, please find below config in FreeRTOSConfig.h