PLATFORM Compiled version error NEED HELP

ESP32 in PlatformIO: Arduino framework version shows 4.4.7 in serial output, but platform package version is 6.13.0

Describe the bug
I created a new ESP32 project in PlatformIO using the Arduino framework.
The platform package version in platformio.ini is set to 6.1.3 ,

[env:esp32dev]
platform = espressif32@^6.13.0
board = esp32dev
framework = arduino

Serial.printf(“ESP-IDF Version: %d.%d.%d\n”,
ESP_IDF_VERSION_MAJOR,
ESP_IDF_VERSION_MINOR,
ESP_IDF_VERSION_PATCH);

but when I upload the firmware and print the ESP32 Arduino core version via serial, it shows 4.4.7.

Expected behavior
Serial output should show version matching the platform package 6.13 idf 5

Actual behavior
Serial output shows idf version: 4.4.7

Environment

  • PlatformIO Core: latest

  • ESP32 platform: 6.1.3

  • Framework: Arduino

Wrong. When you chose framework = arduino, you get the ESP-IDF version that that Arduino core is built with. As the release notes say, that’s

Which perfectly matches your output.

It would be using ESP-IDF v5.5.3 if you created a framework = espidf project.

Note that you can use a more recent Arduino-ESP32 version (and thus also a higher ESP-IDF version) when you chose to work with https://github.com/pioarduino/platform-espressif32.