CubeMx, FreeRTOS, LwIP and MBEDTLS - mbedtls_calloc fails to allocate - what to check?
Hello,
I've generated simple SSL Client example from CubeMX using FreeRTOS, MBED TLS and LwIP components. I'd like to connect to SSL server (test server present in CubeF4 package).
I have pretty similar default settings for these components from CubeMX. Obviously I don't have memory available, or maybe something is wrong with settings and dynamic allocation is not possible.
This part of code fails (it tries to allocate 935 bytes for certificate parsing :
if( ( buf = mbedtls_calloc( 1, len ) ) == NULL )
return( MBEDTLS_ERR_PEM_ALLOC_FAILED );Can anyone please help, what settings to check or how to analyze this problem correctly to get to the solution ?
Thanks in advance,
regards,
Bully.