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!