Fail to update platform/framework

It seems like I’m doing something wrong, on platformio.ini I have:

platform  = espressif32@3.5.0 # IDF 4.3.2
board     = pico32
framework = arduino

Confirmed when building:

Processing esp32 (platform: espressif32@3.5.0; board: pico32; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
PLATFORM: Espressif 32 (3.5.0) > ESP32 Pico Kit
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (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.10006.210326 (1.0.6)
 - tool-esptoolpy 1.30100.210531 (3.1.0)
 - tool-openocd-esp32 2.1000.20210721 (10.0)
 - toolchain-xtensa32 2.50200.97 (5.2.0)
LDF: Library Dependency Finder ->
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 32 compatible libraries

When I call for esp_get_idf_version() the result is v3.3.5-1-g85c43024c and I would expect v4.3.2

I have tried:

  1. Delete .pio directory;
  2. Delete .vscode directory;
  3. Delete .platformio/framework-arduinoespressif32 directory;
  4. Delete .platformio/platforms/espressif32 directory;
  5. Using a different version platform = espressif32@3.4.0
  6. Remove Platform from PlatformIO Home;

The result is always the same esp_get_idf_version() = v3.3.5-1-g85c43024c… I’m afraid it is cached somewhere, where? :slight_smile:

No. The “ESP-IDF v4.3.2” tag in Releases · platformio/platform-espressif32 · GitHub is for framework = espidf projects. For Arduino projects, PlatformIO still uses the Arduino-ESP32 1.0.6 core, just as

says, which has a precompiled v.3.3 ESP-IDF version.

See Support for the latest Arduino v2.0 · Issue #619 · platformio/platform-espressif32 · GitHub for upgrading to Tasmota’s version that gives you the 2.0.2 core with a more recent ESP-IDF version in the Arduino core.

1 Like