I have tried to compile a program already tested before and I am not able, it always gives error. I’m not an expert on this and I don’t know how to continue, I don’t know if it has to do with a recent update of the espressif32 library, I would appreciate an idea to follow.
Executing task in folder Configura GPS T-Bean: C:\Users\mator.platformio\penv\Scripts\pio.exe run
Processing ttgo-t-beam (platform: espressif32; board: ttgo-t-beam; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: Redirecting...
PLATFORM: Espressif 32 (3.1.0) > TTGO T-Beam
HARDWARE: ESP32 240MHz, 1.25MB 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)
PACKAGES:- framework-arduinoespressif32 3.10005.210223 (1.0.5)- tool-esptoolpy 1.30000.201119 (3.0.0)- toolchain-xtensa32 2.50200.97 (5.2.0)
LDF: Library Dependency Finder → Library Dependency Finder (LDF) — PlatformIO latest documentation
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 31 compatible libraries
Scanning dependencies…
Dependency Graph
|-- <AXP202X_Library> 1.1.3
| |-- 1.0.1
|-- 1.0.1
Building in release mode
Compiling .pio\build\ttgo-t-beam\libb40\Wire\Wire.cpp.o
Archiving .pio\build\ttgo-t-beam\lib417\libAXP202X_Library.a
Compiling .pio\build\ttgo-t-beam\FrameworkArduino\HardwareSerial.cpp.o
C:\Users\mator.platformio\packages\framework-arduinoespressif32\cores\esp32\HardwareSerial.cpp:20:26: fatal error: pins_arduino.h: No such file or directory* Looking for pins_arduino.h dependency? Check our library registry!** CLI > platformio lib search “header:pins_arduino.h”* Web > PlatformIO Registry
compilation terminated.
Compiling .pio\build\ttgo-t-beam\FrameworkArduino\esp32-hal-matrix.c.o
Compiling .pio\build\ttgo-t-beam\FrameworkArduino\esp32-hal-misc.c.o
Compiling .pio\build\ttgo-t-beam\FrameworkArduino\esp32-hal-psram.c.o
Compiling .pio\build\ttgo-t-beam\FrameworkArduino\esp32-hal-rmt.c.o
Compiling .pio\build\ttgo-t-beam\FrameworkArduino\esp32-hal-sigmadelta.c.o
*** [.pio\build\ttgo-t-beam\FrameworkArduino\HardwareSerial.cpp.o] Error 1
C:\Users\mator.platformio\packages\framework-arduinoespressif32\libraries\Wire\src\Wire.cpp: In member function ‘bool TwoWire::begin(int, int, uint32_t)’:
C:\Users\mator.platformio\packages\framework-arduinoespressif32\libraries\Wire\src\Wire.cpp:77:26: error: ‘SDA’ was not declared in this scope
sdaPin = SDA; //use Default Pin
^
C:\Users\mator.platformio\packages\framework-arduinoespressif32\libraries\Wire\src\Wire.cpp:94:26: error: ‘SCL’ was not declared in this scope
sclPin = SCL; // use Default pin
^
*** [.pio\build\ttgo-t-beam\libb40\Wire\Wire.cpp.o] Error 1
============================================================================================= [FAILED] Took 5.49 seconds =============================================================================================
The terminal process “C:\Users\mator.platformio\penv\Scripts\pio.exe ‘run’” terminated with exit code: 1. <
Make sure you temporarily disable your antivirus so it can’t interfere, close VSCode, remove the whole C:\Users\mator\.platformio\ folder, then restart VSCode and wait for the reinstall to finish.
[1/3/2021 21:46:41] No se puede resolver la configuración con compilerPath: “C:/Users/mator/.platformio/packages/toolchain-xtensa32@2.50200.97/bin/xtensa-esp32-elf-gcc.exe”
[1/3/2021 21:46:41] No se puede resolver la configuración con compilerPath: “C:/Users/mator/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-gcc.exe”
Hello there,
topic is very old but seems latest update again broke pins_arduino.h
I can see it here
c:\Users\.platformio\packages\framework-arduinoespressif32@3.20004.220825\variants\d1_mini32
but there is no “variants” folder there
c:\Users\.platformio\packages\framework-arduinoespressif32\
Then your folder is corrupted, not PlatformIO’s registry version. Remove c:\Users\.platformio\packages\framework-arduinoespressif32\ fully and rebuild your project.
C:/Users/elior/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-gpio.h:29:10: fatal error: pins_arduino.h: No such file or directory
Looking for pins_arduino.h dependency? Check our library registry!
#include “pins_arduino.h”
^~~~~~~~~~~~~~~~
compilation terminated.
In file included from C:/Users/elior/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal.h:83,
from C:/Users/elior/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:36,
from .pio/libdeps/esp32doit-devkit-v1/AsyncTCP-esphome/src/AsyncTCP.cpp:22:
C:/Users/elior/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-gpio.h:29:10: fatal error: pins_arduino.h: No such file or directory
can someone help me fix this error?