AnsweredAssumed Answered

FreeRTOS allocation problem

Question asked by Evgeny Erenburg on Jul 25, 2018
Latest reply on Jul 30, 2018 by Evgeny Erenburg

I use MK10FN1M0xxx12.

I create two tasks

 

FRTOS1_xTaskCreate((TaskFunction_t)operation_task, (signed char*) "tx", 1024, NULL, 1, NULL); FRTOS1_xTaskCreate((TaskFunction_t)log_managment_task, (signed char*) "rx", 512, NULL, 1, NULL);

 

It runs OK.

But if I increase the stack size

 

FRTOS1_xTaskCreate((TaskFunction_t)operation_task, (signed char*) "tx", 1024, NULL, 1, NULL); FRTOS1_xTaskCreate((TaskFunction_t)log_managment_task, (signed char*) "rx", 1024, NULL, 1, NULL);

 

I fall into FRTOS1_vApplicationMallocFailedHook

And I have  #define configTOTAL_HEAP_SIZE (24576) /* size of heap in bytes */

 

How to fix the problem?

Outcomes