Page 1 of 1

compilation failure in ESP-IDF 4.4.2 - code for ESP32

Posted: Thu Oct 20, 2022 1:09 pm
by sergiomarina
this error occurs after downloading ESP-IDF 4.4.2:
------------------------------------
C:/esp/esp-idf-442/components/esp-tls/esp_tls_mbedtls.c:27:10: fatal error: mbedtls/atca_mbedtls_wrap.h: No such file or directory
#include "mbedtls/atca_mbedtls_wrap.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
------------------------------------

For the ESP-IDF version update I followed this document:
https://github.com/espressif/vscode-esp ... install.md
I've downloaded the ESP-IDF 4.4.2 (and updated accordingly c_cpp_properties.json / settings.json) and I'm having errors in the compilation of a project that was fine in 4.4.

According to the error message I found that the version 4.4 includes the directory "esp-cryptoauthlib" that is missing in the version 4.4.2.
I tried to re-create the environment by copying it by hands:
"C:\esp\esp-idf-442\components\esp-cryptoauthlib"
It did not work, and I copied just the " mbedtls" directory in the "C:/esp/esp-idf-442/components/esp-tls/" directory. It worked, but more errors occur, and the compilation fails.

Is this a problem already known?
In case, does it exist a solution?
If it is not a known problem, why am I facing it? What's wrong with the updating procedure I followed?
Thank you

Re: compilation failure in ESP-IDF 4.4.2 - code for ESP32

Posted: Thu Oct 27, 2022 3:30 am
by ESP_YJM
Hi sergiomarina,
I can find "esp-cryptoauthlib" in https://github.com/espressif/esp-idf/tr ... components. You can execute "git submodule update --init --recursive" to download submodule.

Re: compilation failure in ESP-IDF 4.4.2 - code for ESP32

Posted: Sat Nov 19, 2022 7:00 am
by sergiomarina
Hi ESP-YJM,
understand the API functions are not stored in a unique central folder, but they can be everywhere in the package and "git" works in order to find related submodules and compare them for proper updating.
Is that correct?

After that I need a manual to run the "git" command suggested in your POST, since I do not know-how
Is a manual available?
Please, help me in this delicate though fundamental job.
Thank you.