The situation is still unclear as there is no version specified.
platform = espressif32
in your platformio.ini will either
- install the latest available official espressif32 platform by PlatformIO if no espressif32 platform is installed to your system
- or use the espressif32 platform on your system wich has the highest version number
You have to check which versions are installed on your system or have a look at the output during a build.
Example for installed platforms:
Highest available version: 54.3.20 (pioarduino → Espressif Arduino 3.2.0)
Build-Output Example:
Processing esp32dev (platform: espressif32; board: esp32dev; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (54.3.20) > 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)
PACKAGES:
- framework-arduinoespressif32 @ 3.2.0
- framework-arduinoespressif32-libs @ 5.4.0+sha.2f7dcd862a
- tool-esptoolpy @ 4.8.9
- tool-mklittlefs @ 3.2.0
- tool-riscv32-esp-elf-gdb @ 14.2.0+20240403
- tool-xtensa-esp-elf-gdb @ 14.2.0+20240403
- toolchain-xtensa-esp-elf @ 14.2.0+20241119
Note these lines:
PLATFORM: Espressif 32 (54.3.20) > Espressif ESP32 Dev Module
...
- framework-arduinoespressif32 @ 3.2.0
The project is using Espressif Arduino 3.2.0.
If you want to stick your project to a specific version you have to specify the version of the platform to be used. Example: official espressif32 platform 6.11.0 by PlatformIO:
platform = espressif32 @ 6.11.0
Build-Ouput:
Processing esp32dev (platform: espressif32 @ 6.11.0; board: esp32dev; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (6.11.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)
PACKAGES:
- framework-arduinoespressif32 @ 3.20017.241212+sha.dcc1105b
- tool-esptoolpy @ 1.40501.0 (4.5.1)
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Note these lines:
PLATFORM: Espressif 32 (6.11.0) > Espressif ESP32 Dev Module
...
- framework-arduinoespressif32 @ 3.20017.241212+sha.dcc1105b
The project is using Espressif Aruduino version 2.0.17.
What’s the Espressif Arduino Version you’re using in your project?