Using ESP IDF > 4.4 and ESP32 Arduino Core in mixed project

Hey everyone, I tried to build a esp-idf and arduino mixed project for the ESP32 on PlatformIO and I found out that the default ESP IDF version that is used to build it is the ESP IDF 3.4. Is there a way that I can build my project the with ESP-IDF version 4.3 and above? Thanks for the help.


Completely outdated. Don’t trust old posts and always check the current state.

If you just build the built-in example project, you will see for yourself that you get

>pio run
Processing esp32dev (board: esp32dev; platform: espressif32; framework: arduino, espidf)
Verbose mode can be enabled via `-v, --verbose` option
PLATFORM: Espressif 32 (5.2.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
 - framework-arduinoespressif32 @ 3.20005.220925 (2.0.5)
 - framework-espidf @ 3.40402.0 (4.4.2)
 - tool-cmake @ 3.16.4

ESP-IDF 4.4.2 and Arduino-ESP32 2.0.5 in the latest stable platform-espressif32 version, no modifications needed.