-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ETH_W5500_IDF_SPI.ino // It can not get dhcp ip. #9645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have not tested with your particular pins, but this sketch works fine on our end. I use it almost daily. Can you verify the pins? Also maybe try removing the pull-ups and capacitor from the IRQ line? |
This sch, I copy from another product ( Deploy more 5,000pcs ) , But it using IDF. |
You are using IDF now too. Just abstracted to Arduino |
I not responsible about that project idf. |
What I am trying to say is that Arduino is also using IDF so the code should work and it does work for us. We have tested W5500 quite a bit. This is from the latest 3.0.0-RC3:
|
What is your hardware ? |
Hello @sirapol I tried your code verbatim and for me it works too - the W5500 gets an IP address just fine. I noticed that in your schematic TOCAP (W5500 pin 20) is connected to C13 which is a 10 nF. According to the specifications (see here) it should be a 4.7 uF capacitor. 20 TOCAP - AO External Reference Capacitor Thanks |
Wrong circuit design does not get corrected by amount of build pieces ;-) |
Also another design tip for future designs... It will most likely not cause these issues (wrong capacitor is more likely as pointed out by others), but it will make it more likely the CE testing will pass without issues. Also please look into how the metal shield of the RJ45 connector is connected to the rest of the nets. |
After i change C13 to 4.7uF. I error more.
|
Maybe a closer inspection of the W5500 chip to double check it isn't a W6100 or W5100 or some clone? |
Maybe using the 4 GPIO mode stabilizies your setup. |
I investigate with W5500 module it same problem. I think my hardware is fault. I will take time and report again. Can i still open this case ? |
Hello, Due to the overwhelming volume of issues currently being addressed, we have decided to close the previously received tickets. If you still require assistance or if the issue persists, please don't hesitate to reopen the ticket. Thanks. |
Board
ESP32 Dev module.
Device Description
Hardware Configuration
#define ETH_PHY_TYPE ETH_PHY_W5500
#define ETH_PHY_ADDR 1
#define ETH_PHY_CS 27
#define ETH_PHY_IRQ 35
#define ETH_PHY_RST 15
// SPI pins
#define ETH_SPI_SCK 18
#define ETH_SPI_MISO 19
#define ETH_SPI_MOSI 23
Version
latest development Release Candidate (RC-X)
IDE Name
Arduino 1.8.19
Operating System
Ubuntu
Flash frequency
40Mhz
PSRAM enabled
no
Upload speed
921600
Description
I using example.
It can not get dhcp ip from router.
I verify same cable to pc. It can get dhcp.
How to solve it ?
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: