espressif / esp-aws-iot

AWS IoT SDK for ESP32 based chipsets
Apache License 2.0
256 stars 154 forks source link

Compilation error of corePKCS11 when adding library to project (CA-274) #166

Closed khuangCTS closed 1 year ago

khuangCTS commented 1 year ago

Hello, I am having issues with the compilation of the corePKCS11 library within my project where I am adding OTA functionality. The issue is with the compilation of the core_pkcs11_mbedtls.c file within the source/portable folder. I have no issues compiling with the OTA example but when adding this specific package within my project the .c file is not able to find esp-idf's mbedtls specific struct's and functions. I am using esp-idf-v4.4.3-2. Here is an output from my build:

mbed_err

With the example I noted that that the 3rd party mbedtls folder is empty but the example does not use this folder. Is there something I am missing when adding this specific library?

khuangCTS commented 1 year ago

Forgive me, I realized I did not have the correct menuconfig settings to enable pthreads in mbedtls. For anyone who encounters this issue: Menuconfig-> Type in "thread" -> mbedtls -> "enable the threading abstraction layer" -> "enable threading pthread implementation"