Skip to content

Fix Ethernet builds with V4 #4502

Closed
Closed

Description

@netmindz

What happened?

No target

To Reproduce Bug

Add env

Expected Behavior

Working ethernet

Install Method

Self-Compiled

What version of WLED?

0.16.0.dev

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added this to the 0.16.0 candidate milestone on Jan 18, 2025
  2. netmindz commented on Jan 18, 2025

    @netmindz
    MemberAuthor
  3. kilrah commented on Jan 27, 2025

    @kilrah
    Contributor

    I tried uncommenting the DISABLE_ESPNOW, doesn't help

    env:

    [env:esp32_eth_V4]
    board = esp32-poe
    platform = ${esp32_idf_V4.platform}
    build_unflags = ${common.build_unflags}
    build_flags = ${common.build_flags} ${esp32_idf_V4.build_flags} -D WLED_RELEASE_NAME=\"ESP32_Ethernet\" -D RLYPIN=-1 -D WLED_USE_ETHERNET -D BTNPIN=-1
      -D WLED_DISABLE_ESPNOW ;; ESP-NOW requires wifi, may crash with ethernet only
      ${esp32.AR_build_flags}
    lib_deps = ${esp32_idf_V4.lib_deps}
      ${esp32.AR_lib_deps}
    board_build.partitions = ${esp32.default_partitions}
    board_build.flash_mode = dio
    upload_speed = 921600
    

    Everything's fine until the ethernet type is selected, WT32-ETH01 in my case. Once done it'll hang whether a cable is connected or not and I have to wipe config to get it back.

  4. troyhacks commented on Jan 28, 2025

    @troyhacks
    Contributor

    @netmindz IDF v4.0.0 and up uses ARDUINO_EVENT_ instead of SYSTEM_EVENT_

    This PR should fix it up...

    #4526

    Some crazy issues getting this to work which seem to be down to an older Tasmota version.

    Use this Tasmota build which is based on IDF 4.4.6:

    ✅ https://github.com/tasmota/platform-espressif32/releases/download/2023.10.04/platform-espressif32.zip

    Do not use this build, which is based on IDF 4.4.4:

    ❌ https://github.com/tasmota/platform-espressif32/releases/download/2023.06.02/platform-espressif32.zip

    Tested with connecting and disconnecting Ethernet, boots correctly with Ethernet, fails back and forth successfully.

    I had to add a secondary WiFi.disconnect(true); as it seems the WiFi events aren't reliable on bootup or something else is overriding connectivity things.

  5. netmindz commented on Feb 7, 2026

    @netmindz
    MemberAuthor

    Is this still an issue or have we resolved now @softhack007 ?

  6. softhack007 commented on Feb 7, 2026

    @softhack007
    Member

    @netmindz i'm not 100% xsure.
    We have merged the changes proposed by @troyhacks, and there were also some other V4 specific fixes for ethernet.

    Use this Tasmota build which is based on IDF 4.4.6:
    ✅ https://github.com/tasmota/platform-espressif32/releases/download/2023.10.04/platform-espressif32.zip

    This recommendation is still pending - I can add the platform version as an option in platdormio.ini, and only use it on the _eth build.

  7. softhack007 commented on Feb 7, 2026

    @softhack007
    Member

    This PR should fix it up...

    #4526

    Correction 😅 this PR is not merged yet

  8. netmindz commented on Feb 7, 2026

    @netmindz
    MemberAuthor

    @netmindz i'm not 100% xsure. We have merged the changes proposed by @troyhacks, and there were also some other V4 specific fixes for ethernet.

    Use this Tasmota build which is based on IDF 4.4.6:
    ✅ https://github.com/tasmota/platform-espressif32/releases/download/2023.10.04/platform-espressif32.zip

    This recommendation is still pending - I can add the platform version as an option in platdormio.ini, and only use it on the _eth build.

    I'd rather not have different versions of the platform for different builds. Do you know of any reason why we should not update to the latest 4.4.x release which appears to be 4.4.8 https://github.com/tasmota/platform-espressif32/releases/tag/2024.06.00 @softhack007 @willmmiles @DedeHai ?

  9. DedeHai commented on Feb 7, 2026

    @DedeHai
    Collaborator

    are we sure this is not a "fix some, break some" deal?

  10. netmindz commented on Feb 7, 2026

    @netmindz
    MemberAuthor

    are we sure this is not a "fix some, break some" deal?

    Quite possibly, that's the same for any update to the platform. We need working Ethernet support for the release, so it's either change the version just for the Ethernet builds and they possibly have random other bugs or we upgrade all to the latest stable release and have consistency and fix anything that breaks

  11. willmmiles commented on Feb 13, 2026

    @willmmiles
    Member

    I'd rather not have different versions of the platform for different builds. Do you know of any reason why we should not update to the latest 4.4.x release which appears to be 4.4.8 https://github.com/tasmota/platform-espressif32/releases/tag/2024.06.00 @softhack007 @willmmiles @DedeHai ?

    I think we should update in 0.16, yes. I've tried it a few times whenever I'm faced with platform weirdness, like those DNS hangups. It's yet to fix anything for me, but it also hasn't seemed to cause any new issues either. If we're going to stabilize on something, it's probably best to use the final version of v4 instead of some older one.

  12. willmmiles commented on Apr 30, 2026

    @willmmiles
    Member

    I can confirm that Ethernet support is working in the main branch, and that the fixes proposed in #4526 were essentially adopted by #4429. There might be some other concerns cf. #4703 and general multi-network behaviour but I think we can close this and #4526.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions