Closed costa-victor closed 2 years ago
Thank you for the report and the suggested workaround!
Our preference is to correct this issue by bumping the supported ESP-IDF tag to v4.3.2. Doing so requires a small change to the Moddable SDK which will be included in an upcoming open source push. When that goes live, I'll link the relevant commit to this issue.
- Andy
Closing as Moddable SDK bumped to ESP-IDF v4.3.2 eliminating the need for this change.
Environment
Build environment: Linux Mint 20 x86_64 Target device: NodeMCU ESP32 Moddable version: public - commit e1043f5 ESPIDF version: v4.3.1
Description
Compilation of helloworld example and others projects failed due to mbedtls in ESPIDF tag v4.3.1.
I started to investigate and this is a known error by ESPIDF that affects all of their MCU's, it's was detected in september/october after the EC-ACC certificate expires. It can be checked in details on issue #7660 from ESPIDF.
Steps to Reproduce
The easiest way to check this out:
mcconfig -d -m -p esp32
As expected, but tested to confirm:
mcconfig -m -p esp32
mcconfig -d -m -p esp32/nodemcu
idf.py build
gives the same error.Expected behavior
Complete the compilation process.
More information
ESPIDF Solution
I check the fix for this issue and it's done by removing the EC-ACC certificate from esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem, this is already done for master, release/v4.2 and release/v4.3 as shown here.
However, this fix was applied after the tag v4.3.1, which is the ESPIDF version used as indicated on step 4.
Alternative solution
To avoid changing the currently tag used for moddable, it's possible bypass this certificate error as discussed in #7621. It's might be a more safety solution rather then update the moddable dependency of ESPIDF to a new tag or release branch.