Fix KIT-VE Ethernet: PHY address should be 1, not 0#5618
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis PR contains a single configuration change to the Ethernet board lookup table in ChangesEthernet Board Configuration
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai please find the original commit that added the ethernet configuration that is subject of this PR. Also check if there were any other tickets that either justify the previous PHY address, or state problems. Do we have evidence that suggests the previous configuration was needed for some users? If yes, it might be better to keep the old values and add a fresh one with the suggested PHY=1 ? |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chainI'll dig into the git history and related issues right away. 🏁 Script executed: Length of output: 1767 🏁 Script executed: Length of output: 2543 🏁 Script executed: Length of output: 579 Let me dig deeper into the commit history and issue comments. 🏁 Script executed: Length of output: 0 🏁 Script executed: Length of output: 7623 Let me check the current file content around the KIT-VE entry and find the original adding commit more carefully. 🏁 Script executed: Length of output: 2155
Original CommitThe entry was introduced in commit Evidence from Issue
|
softhack007
left a comment
There was a problem hiding this comment.
It seems to work for boards tested by the PR author, and the rabbit agrees the old config was "wrong from day 1". Agreed to merge, it should also be cherry-picked into 16_x and 0_15_x branches.
|
schematic has PHY address 0 set high for all versions. so this checks out. |
|
@Techman749 thanks for fixing and testing this many years old issue |
|
Had this been cherry picked @DedeHai ? |
|
forgot to cherry pick :) |
|
Thank you for including this fork! I've had this board running WLED since 2023 and thought I was just doing something wrong. Figured I'd actually take a stab at figuring out the root cause. Glad to have solved it and find it was something this simple. Thanks for everything you guys do for this project! |
Summary
The ESP32-ETHERNET-KIT-VE entry in
ethernetBoards[]haseth_addressset to0, but the IP101GRI PHY on the Espressif ESP32-Ethernet-Kit V1.x actually responds at address1. With address 0,ETH.begin()returns false immediately and silently — the precompiled arduino-esp32 v2.0.18 libraries have the IDF log level baked at info, sophy_802_3 power up timeouterrors from the lower driver layers never reach the serial console. Users see "link LED on, no DHCP, no errors anywhere" and have generally concluded WLED simply doesn't work on this board.This one-character change makes Ethernet work on the KIT-VE.
Verification
Tested on an ESP32-Ethernet-Kit V1.2 (A-board v1.2 + B-board v1.0) using a custom build of
mainat commit 186aafa with this fix applied.Before:
/json/infocontained noethblock, device only reachable on WiFi. Serial debug log showsinitE: Attempting ETH config: 7→ pin allocations → immediateinitE: ETH.begin() failedwith no further diagnostic output.After: device obtains a DHCP lease on the Ethernet interface using a separate MAC (WiFi MAC + 3), is reachable on both interfaces simultaneously, and
/json/infoshows the Ethernet IP.References
The correct PHY address for the IP101 on the KIT-VE is well documented:
CONFIG_EXAMPLE_ETH_PHY_ADDR=1PHY Address: 1Closes
This is the root cause of long-standing reports of "Ethernet doesn't work on KIT-VE" going back years:
Summary by CodeRabbit