Skip to main content
FedeRico1
Associate II
May 3, 2019
Question

FreeRTOS v10 - Malloc retruns 0.

  • May 3, 2019
  • 1 reply
  • 597 views

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

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
May 4, 2019
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..