Hi,
Is it possible to set CONFIG_HEAP_MEM_POOL_SIZE to be more than 16384?
I try to configure CONFIG_HEAP_MEM_POOL_SIZE = 94208 and when the heap allocated until 36830 bytes the k_malloc() returns NULL when I try to allocate 528 bytes.
I added some codes on k_malloc() and k_free() to keep track of the memory allocation as shown below:
/***************************************************************/
[k_mem_pool_alloc] z_sys_mem_pool_block_alloc() return -12
p->base.max_sz=94208, size=528
[k_mem_pool_malloc] k_mem_pool_alloc() fail
[k_malloc] alloc fail (528 byte), total_alloc=36830
/***************************************************************/
"total_alloc" store the current total heap memory allocated to the app.