FreeRTOS v10 - Malloc retruns 0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-05-03 9: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
- Labels:
-
FreeRTOS
-
STM32CubeMX
-
STM32F7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-05-04 5:47 AM
Duplicative thread https://community.st.com/s/question/0D50X0000AmhmVZSQY/malloc-returns-null-pointer-in-freertos-task
Up vote any posts that you find helpful, it shows what's working..
