espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
12.99k stars 7.29k forks source link

fatal error: esp_eth_driver.h: No such file or directory #9396

Open woshe13 opened 3 months ago

woshe13 commented 3 months ago

Board

ESP32 s3

Device Description

eya EA5013-v2 base on esp32s3

Hardware Configuration

e

Version

latest master (checkout manually)

IDE Name

vscode

Operating System

window11

Flash frequency

40

PSRAM enabled

yes

Upload speed

115200

Description

e

Sketch

e

Debug Message

E:/ESP-IDF/eya_arduino/components/arduino/libraries/WiFi/src/WiFiGeneric.h:33:10: fatal error: esp_eth_driver.h: No such file or directory
   33 | #include "esp_eth_driver.h"
      |          ^~~~~~~~~~~~~~~~~~

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

me-no-dev commented 3 months ago

Something you have missed while installing from github? File comes from the SDK. Did you miss to run tools/get.exe?

PureTek-Innovations commented 3 months ago

I have the same problem. This may be specific to ESP-IDF on PlatformIO. My install can't find the file either. It could be because PlatformIO has picked up both the Arduino framework as well as the ESP-IDF framework. I often use the Arduino framework, but it is not referred to anywhere in this project.

PACKAGES:

PureTek-Innovations commented 3 months ago

I realised that this is in arduino-esp32 rather than ESP_IDF But I have managed to fix it. In my case, to use the W5500 SPI ethernet module, you need V3.0.0 This can either be added to the Arduino IDE with the correct link or add it to platformio like this:

[env:esp32-s3-devkitc-1]
platform = https://github.com/tasmota/platform-espressif32/releases/download/2024.02.10/platform-espressif32.zip
framework = arduino
board = esp32-s3-devkitc-1

monitor_speed = 115200
monitor_filters = esp32_exception_decoder

The W5500 example compiles and works with both IDEs as long as I use V3.0.0

woshe13 commented 2 months ago

Something you have missed while installing from github? File comes from the SDK. Did you miss to run tools/get.exe?

I run 'tools/get.exe', but cannot fix it