This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Help with memory manager library

Hi there,

In my application I need to send varying amounts of data (1~8KB) and store it in RAM. I trying to use memory manager library to replace the malloc() and free() functions that I was using before. Because I have a high suspicion of memory fragmentation and hope this can help to fix.

I can initialize the library without problems. In the sdk_config.h it comes with MEMORY_MANAGER_SMALL_BLOCK_COUNT = 1 and MEMORY_MANAGER_SMALL_BLOCK_SIZE = 32 by default. Obviously this does not allow me to create larger amounts of memory to store my data. So I have tried to enable MEMORY_MANAGER_XXLARGE_BLOCK_SIZE, but I get the following error:

error: section .heap overlaps absolute placed section .stack

Sorry, but I don't understand the error as I know I have enough space in the heap to create that memory block.

Best regards,

Jhon

=======

Details:

- MCU: nRF52832

- SDK: v15.30

Memory usage:

Parents Reply Children
Related