Any way to override MBEDTLS_PLATFORM_MEMORY define?
Posted: Thu Jul 26, 2018 8:04 pm
Is there any way, or any planned way, to enable the MBEDTLS_PLATFORM_MEMORY option defined in $IDF_PATH/components/mbedtls/port/include/mbedtls/esp_config.h?
This define enables mbedtls_platform_set_calloc_free() which allows you to replace the default calloc/free calls with your own. In particular, this makes it possible to have mbedtls allocate from SPI RAM, instead of internal memory.
I'd like to be able to do this without hacking my IDF installation. So, can it be done?
For background on why this is important, see: https://github.com/espressif/esp-idf/issues/2184
Thanks,
Jason
This define enables mbedtls_platform_set_calloc_free() which allows you to replace the default calloc/free calls with your own. In particular, this makes it possible to have mbedtls allocate from SPI RAM, instead of internal memory.
I'd like to be able to do this without hacking my IDF installation. So, can it be done?
For background on why this is important, see: https://github.com/espressif/esp-idf/issues/2184
Thanks,
Jason