Framework-arduinoespressif32 V3.2 not updating

Hello,

I am facing an issue where the framework-arduinoespressif32 V3.2 is supposed to be the one installed - but the files actually installed are an older version (2.x afaik? the file esp32-hal-ledc.c still has the deprecated ledcAttachPin method)

Here is the log from building where it suggest to use the older method (which is indeed the one in the current file).

CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/upesy_wroom.html
PLATFORM: Espressif 32 (6.11.0) > uPesy ESP32 Wroom DevKit
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
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 33 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\upesy_wroom\src\main.cpp.o
src/main.cpp: In function 'void setup()':
src/main.cpp:34:3: error: 'ledcAttach' was not declared in this scope
   ledcAttach(LED_PIN, LEDC_BASE_FREQ, LEDC_TIMER_12_BIT);
   ^~~~~~~~~~
src/main.cpp:34:3: note: suggested alternative: 'ledcAttachPin'
   ledcAttach(LED_PIN, LEDC_BASE_FREQ, LEDC_TIMER_12_BIT);

Let me know if you need more information to pinpoint the issue!

What is your platformio.ini?

If you don’t specify your platform as pioarduino’s espressif32 version (https://github.com/pioarduino/platform-espressif32), then you will likely be using the offiical espressif32 platform, which indeed has Arduino-ESP32 2.0.17 (https://github.com/platformio/platform-espressif32/releases).

[env:upesy_wroom]
platform = espressif32
board = upesy_wroom
framework = arduino
monitor_baud = 115200

That’s what it looks like at the moment, do you know how I can specify it?

I think there is a misunderstanding.

This is Espressif Arduino 2.0.17.

platform = https://github.com/pioarduino/platform-espressif32/releases/download/54.03.20/platform-espressif32.zip