Re: mbedtls and memory allocator

Tomasz Bursztyka

Hi Sergio,

now as a reference how to enable you can take a look to


in the file dtls_client.c look for

#include "mbedtls/memory_buffer_alloc.h"
static unsigned char heap[20480];

There a heap is statically created and eventually you have to assign the heap with the function

mbedtls_memory_buffer_alloc_init(heap, sizeof(heap));

For that point on mbedtls will use its own memory allocator

Let me know if this helps
Indeed, that I could not guess it from mbedtls includes.

That helps a lot! :)

Thank you


Join to automatically receive all group messages.