This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3220SF: malloc overflow due to the sl_Task

Part Number: CC3220SF

Hello , 

In one of our projects we are using freeRTOS and assuming:

- configTOTAL_HEAP_SIZE = 34Kbytes

- configPOSIX_STACK_SIZE = 2Kbytes

Furthermore, for the different tasks that we are creating (unis sysCreateTask) we are assuming a total of 16.284Kbytes.

During our tests, we notice that if we increase the tasks stack size to 16.640Kbytes we start getting a malloc overflow due to the sl_Task. Is there any minimal free space that we need to ensure for sl functions from TI libraries? 

Thank you. 

  • Hey Nelson,

    I've looped in one of our software experts to assist here. Please allow them a day to ramp up on the issue and provide feedback.

  • Hi,

    If I am not mistaken the stack size we define for sl_task on out host driver is 2048 bytes and this should be enough for our purposes.

    Other tasks really depends on the needs and implementation. I think the highest we use is 3072 bytes so 16.284KB seems very high.

    Do you really need that high value?

    Again, for your question, TI sl_task doesn't need more than 2048 bytes.