Which is more safe to use in an application developed using FREERTOS? pvPortMalloc() or malloc()?
I used dynamic allocation (malloc()) to allocate memory and the code execution gone to hard fault handler. Instead, when I used pvPortMalloc() of heap2, it worked well even without increasing its task’s stack memory. Also malloc() is well defined in my code(I have used it before).
Thanks in Advance