cancel
Showing results for 
Search instead for 
Did you mean: 

FreeRTOS v10 - Malloc retruns 0.

FedeRico1
Associate II

Hello community,

I'm working with a NUCLEO Board F767ZI and I use cubeMX to generate the project.

My project is created with cubeMX 5.2.0 and I use FreeRTOS v10.0.1

Now I have a problem with malloc function, inparticular, with this new FreeRTOS version (v10.0.1) if I call malloc function inside a task, the function returns a null pointer. If I call the malloc function in the main.c the function retrun a non null pointer.

I tested the same project with FreeRTOS v9 and the malloc function works also inside a task.

What can I do to solve this problem?

Thanks for the help!

Federico

1 REPLY 1

Duplicative thread https://community.st.com/s/question/0D50X0000AmhmVZSQY/malloc-returns-null-pointer-in-freertos-task

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..