now as a reference how to enable you can take a look tosamples/net/mbedtls_dtlsclientin the file dtls_client.c look for#if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)#include "mbedtls/memory_buffer_alloc.h"static unsigned char heap[20480];#endifThere a heap is statically created and eventually you have to assign the heap with the function#if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C) mbedtls_memory_buffer_alloc_init(heap, sizeof(heap));#endifFor that point on mbedtls will use its own memory allocatorLet me know if this helps
© 2021 Groups.io