lmarzen / esp32-weather-epd

A low-power E-Paper weather display powered by an ESP32 microcontroller. Utilizes the OpenWeatherMap API.
GNU General Public License v3.0
2.44k stars 193 forks source link

Compile error " no such file pins_arduino.h" #26

Closed coldfire100 closed 1 year ago

coldfire100 commented 1 year ago

Hi Luke First off, great project nice work! One problem I can't seem to get around is the error "fatal error: pins_arduino.h: No such file or director" I cloned the project from Github and have the latest files and platformio.ini. Any suggestions on where to look for this.

I can post the full output from the build if needed.

I'm pretty new at VsCode and PlatformIO so any help would be much appreciated.

Thanks

Mark

lmarzen commented 1 year ago

Hi Mark,

Yeah go ahead and share your full output. Additionally, can you confirm what esp32 board you are using?

-Luke

coldfire100 commented 1 year ago

Hi Luke Sorry for the late response. The board the is DF Robot Firebeetle2. I have 2 on order. This is a clone of your project. I didn't change anything in the settings. Below is the output from the build.

Executing task: C:\Users\ZZZ.platformio\penv\Scripts\platformio.exe run

Processing dfrobot_firebeetle2_esp32e (board: dfrobot_firebeetle2_esp32e; platform: espressif32 @ 6.1.0; framework: arduino) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/dfrobot_firebeetle2_esp32e.html PLATFORM: Espressif 32 (6.1.0) > DFRobot Firebeetle 2 ESP32-E HARDWARE: ESP32 80MHz, 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:







Environment Status Duration


dfrobot_firebeetle2_esp32e FAILED 00:04:20.669 ===================================================================== 1 failed, 0 succeeded in 00:04:20.669 =====================================================================

I have your latest platformio.ini file. Not sure if anything else needs to be updated. If you could take a look at this.

Thanks

Mark

lmarzen commented 1 year ago

hmmm.. can you see if there are any updates for arduino core or espressif, etc?

Navigate to PlatformIO Home > Platforms > Updates.

coldfire100 commented 1 year ago

Hi Luke I did a bit of research and found a reference to the "arduino.pins.h" error. The suggestions was to delete the folders in the user/.platformio/packages that referenced the esp32.

I wound up deleting the folders:

framework-arduinoespressif32@3.10004.210126 tool-esptoolpy framework-arduinoespressif32 toolchain-xtensa-esp32@8.4.0+2021r2-patch5

I did a clean and rebuild. Lo and behold it compiled without the errors. Any idea why this would have worked?

Anyway, I don't have the boards in yet to test it. They should be here in a couple of weeks. Hopefully all will work.

Thanks for looking into this.

Mark

lmarzen commented 1 year ago

No idea. Sounds like platformio being buggy, smh. Glad to hear you were able to resolve your issue.