Using latest ESP32 Arduino, but with own IDF configuration

PlatformIO is currently very much lagging behind the current versions. There is no official support for even the latest Arduino-ESP32 2.0 version (Support for the latest Arduino v2.0 · Issue #619 · platformio/platform-espressif32 · GitHub), and the latest support ESP-IDF version per releases is v4.3.2, whereas Arduino-ESP32 uses a v4.4 version.

The clostest someone seems to have gotten with native PlatformIO (framework = espidf, arduino as in espidf-arduino-blink) is using a custom-updated platform that has Arduino-ESP32 2.0 support, ~~but is apparently lacking the ESP-IDF v4.4 support, leading to errors shown in examples/espidf-arduino-blink build fails: unknown type name '_lock_t' · Issue #685 · platformio/platform-espressif32 · GitHub These errors were already resolved by the poster, and there seems to be an official ESP-IDF+Arduino example in the tasmato platform-espressif32 repo.

A way in the middle would be to use that custom-updated platform to get Arduino-ESP32 2.0.2, and then use the regular esp32-arduino-lib-builder tool to generate the precompiled .a libraries under a new sdkconfig and put those in the framework-arduinoespressif32 folder.

1 Like