2019-05-03 09:11 AM
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
2019-05-04 05:47 AM
Duplicative thread https://community.st.com/s/question/0D50X0000AmhmVZSQY/malloc-returns-null-pointer-in-freertos-task