ESP32 memory fragmentation
Posted: Thu Oct 28, 2021 6:03 am
I am using ESP32 mini 1.
I am trying for memory allocation for one of the feature,
before that I am allocating and deallocating memory using malloc and free for some other required purpose.
Due to this, I am facing a problem.
In system when I am trying to allocate some big chunk of memory at that time it is not able to allocate due to non availability of required chunk.
Though in system it is having enough memory. However due to fragments I am not able to use it for required chunk of memory.
So, any input on this issue and/or suggestion on memory management ?
I am trying for memory allocation for one of the feature,
before that I am allocating and deallocating memory using malloc and free for some other required purpose.
Due to this, I am facing a problem.
In system when I am trying to allocate some big chunk of memory at that time it is not able to allocate due to non availability of required chunk.
Though in system it is having enough memory. However due to fragments I am not able to use it for required chunk of memory.
So, any input on this issue and/or suggestion on memory management ?