esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 34 forks source link

When using wt32-eth01 as board and esp-idf as framework type, ethernet is not working on a WT32-ETH01 #5644

Open KlausHans opened 4 months ago

KlausHans commented 4 months ago

The problem

If i use wt32-eth01 as board and esp-idf as framework type, ethernet is not working on a WT32-ETH01. The leds on the ethernet connector don't light up, nothing. If i use wt32-eth01 as board and arduino as framework type it works. If i use esp32dev as board and esp-idf as framework type it also works.

Which version of ESPHome has the issue?

2024.3.0

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2024.3.0

What platform are you using?

ESP32-IDF

Board

wt32-eth01

Component causing the issue

esp32

Example YAML snippet

substitutions:
  name: bluetooth-proxy-eg
  friendly_name: Bluetooth Proxy EG
  board: wt32-eth01 #wt32-eth01 not working together with esp-idf

esphome:
  name: ${name}
  friendly_name: ${friendly_name}

esp32:
  board: ${board}
  framework:
    type: esp-idf

logger:

api:
  encryption:
    key: "xxx"

ota:
  password: "xxx"

ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO0_IN
  phy_addr: 1
  power_pin: GPIO16

esp32_ble_tracker:
  scan_parameters:
    interval: 1100ms
    window: 1100ms

bluetooth_proxy:
  active: true

Anything in the logs that might be useful for us?

No response

Additional information

No response

KlausHans commented 4 months ago

Just found this https://github.com/esphome/esphome/discussions/4207#discussioncomment-7665609 So, someone else confirms the problem.

g-kiss commented 4 months ago

If you have ESP32-ETH01 (with 8MB flash), use this:

esphome:
  platformio_options:
    board_build.flash_mode: dio
    board_build.flash_size: keep
WalterDSU commented 3 months ago

If you have ESP32-ETH01 (with 8MB flash), use this:

esphome:
  platformio_options:
    board_build.flash_mode: dio
    board_build.flash_size: keep

wowwwww, it works now. very good to know this. thanks for sharing.

Chris112 commented 3 months ago

If you have ESP32-ETH01 (with 8MB flash), use this:

esphome:
  platformio_options:
    board_build.flash_mode: dio
    board_build.flash_size: keep

I have a wts-eth01 v1.4 (aliexpress claims 32mb flash) and I added this to my esphome config and it fixed the boot loop issue too, thanks xo

darkxst commented 3 months ago

If you have ESP32-ETH01 (with 8MB flash), use this:

ESP32-ETH01 has 4MB Flash

It would appear that some pins required for qio flash are muxed with ethernet MAC.

This probably needs to be fixed here: https://github.com/platformio/platform-espressif32/blob/022e6044b468d0db65d502f5a16a25f446e94f5e/boards/wt32-eth01.json#L12

https://github.com/platformio/platform-espressif32/pull/1377