-
Hello, In our project, we use malloc (/calloc) to allocate memory. We have 16MB available memory, which should be plenty enough for what we do. However, some time ago we started using hostap (
mostly in the If I understand correctly, So I am not sure what to set for And if I do set
So I am a bit confused how this works and what values I should use for the heap sizes. Maybe I am missing some config values? I tried setting I think nicest would be to set And is there a way in the API to find out how much heap is used? I found sys_heap_runtime_stats_get but it is only having a total value of just above 97000. So my questions are:
I hope someone can explain a bit more and help out. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
As far as I can see, that will depend on the C library you are using. Could you please check with In particular, PICOLIBC will be setting CONFIG_COMMON_LIBC_MALLOC, which relies on the kernel heap. And therefore CONFIG_HEAP_MEMPOOL_SIZE is the arena size to use for the alloc functions. Not sure if that helps... I'm also somewhat confused by the documentation. |
Beta Was this translation helpful? Give feedback.
-
It turned out that |
Beta Was this translation helpful? Give feedback.
It turned out that
COMMON_LIBC_MALLOC
, that was automatically enabled by hostap, did not work together with newlib (which was already enabled in our project).