I am using FreeRTOS on ARMCortex microcontroller. Everything is working fine.
But the issue is when i try to do malloc and free multiple times it will be in while loop it never comes out of it.
Same is the case with Realloc, if the same variable I try to increase the size with Realloc, it will never work, it will be in while loop it never comes out of it.
But ample memory space is there to allocate, but still it fails and gets struck in while loop.
I am using heap_4.c file for memory. void *pvPortMalloc( size_t xWantedSize ) and void vPortFree( void pv ) void pvPortReAlloc( void *pv, size_t xWantedSize ) these are the functions used.
Is there any limit on number of memory allocations allowed? I dont think that should create any problem.
Please help me in solving this issue.
Please provide me your kind assitance in solving this issue.