Using ESP-IDF V5.X with Arduino on ESP32S3

Im working on a project using arduino framework and an esp32s3 board. BLE is incredibly important for this alongside the ability to wake up from light sleep using BT. This feature is introduced in ESP-IDF V5.X however PlatformIO’s arduino framework uses ESP-IDF V4.X.

In ini file:

platform = espressif32 @ 6.10.0
board = waveshare_esp32_s3_128_touch
framework = arduino, espidf
monitor_speed = 115200

Sketch:

#include <Arduino.h>

void setup() {
  Serial.begin(115200);
}

void loop() {
    Serial.println(esp_get_idf_version());
    delay(5000);
}

Ive tried numerous variations of specifying the esp-idf version using:

platform_packages = 
    framework-espidf @ 5.4.0

Including specifying github repos however I cannot get it to use an updated version of esp-idf.

Is there a way to use Arduino and esp-idf V5.X in platformio?
Thanks in advance.

#FirstPost #BeGentle

Thats the reason why pioarduino exists.

It support the latest Espressif arduino core (3.1.1) based on ESP-IDF 5.3.2

Give it a try.

This guy… Superstar!!! Exactly what I was looking for. Thank you!!
image