Page 1 of 1

MBEDTLS cannot change config with esp_config.h

Posted: Tue Apr 02, 2019 3:02 pm
by HilcoHippie
Hello all,

I have a problem changing the config of mbed-tls in Espressif 32 version 1.7.0
the framework contains a pre-build library from MBEDtls version 2.13.1

I tried to enable a configuration of MBEDtls namely the #define MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
I did this inside the config-file inside the installation folder
C:\Users\HPL\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\mbedtls\mbedtls\esp_config.h

But a change in this file does not affect the mbed-tls library which in fact is not so weird because it is a precompiled library.

The question is now, is there any easy way to change the configuration of MBEDtls inside the arduino-framework ?

Kind regards,
Hilco

Re: MBEDTLS cannot change config with esp_config.h

Posted: Thu Apr 11, 2019 10:59 am
by HilcoHippie
I have found a solution by using the ESP-IDF framework.
There the MBEDTLS is not precompiled, so I changed the configuration I wanted to change.
Then I compiled it and used the lib.a file and replaced the one in the arduino framework.