ESP-IDF Ethernet Basic Example not working with ESP32S3 and W5500-EVB

hd4009
Posts: 4
Joined: Fri Jul 07, 2023 10:13 pm

ESP-IDF Ethernet Basic Example not working with ESP32S3 and W5500-EVB

Postby hd4009 » Mon Jul 10, 2023 10:50 pm

Hi, I have been trying to run the Ethernet Basic example (https://github.com/espressif/esp-idf/tr ... rnet/basic) on my ESP32S3-WROOM-1 devkit connected through SPI to a W5500-EVB board (https://www.digikey.com/en/products/det ... VB/8789607) and have been unable to have the example successfully work. The program begins infinitely looping once the "Ethernet Started" message is outputted to the terminal. Then at seemingly random intervals, error messages are outputted to the terminal before once more looping.

Here are some more specific hardware details:

Pin Layouts

ESP32S3-WROOM-1 Devkit
MOSI - GPIO11 (FSPID)
MISO - GPIO13 (FSPIQ)
CLK - GPIO12 (FSPICLK)
CS - not connected since the W5500-EVB dev board has CS tied low
RESET - RST

W5500-EVB
MOSI - D11
MISO - D12
CLK - D13
CS - tied low
RESET - RST

Other connection notes:
- Ethernet port on W5500-EVB connected directly to back of router
- USB port on ESP32S3 connected to laptop
- Jumper cables to supply power to the connected boards through 3V3 and GND ports also added

Terminal output:
Screenshot 2023-07-07 163202 1.png
Screenshot 2023-07-07 163202 1.png (172.8 KiB) Viewed 3358 times

Any help would be greatly appreciated, thanks!

ESP_ondrej
Posts: 210
Joined: Fri May 07, 2021 10:35 am

Re: ESP-IDF Ethernet Basic Example not working with ESP32S3 and W5500-EVB

Postby ESP_ondrej » Wed Jul 12, 2023 8:44 am

Please make sure you also connected the W5500 interrupt output to your ESP32.

hd4009
Posts: 4
Joined: Fri Jul 07, 2023 10:13 pm

Re: ESP-IDF Ethernet Basic Example not working with ESP32S3 and W5500-EVB

Postby hd4009 » Thu Jul 13, 2023 9:14 pm

Thanks for the reply. I've connected the INTn pin on the W5500 to GPIO4 (as specified by the sdkconfig file) on the ESP32S3 devkit and the error has persisted.

Here is a screenshot of my sdkconfig file > Example Configuration:
Screenshot 2023-07-13 135027.png
Screenshot 2023-07-13 135027.png (57.86 KiB) Viewed 3098 times

Please let me know if there are any other potential causes of this error and/or fixes, thanks.

ESP_ondrej
Posts: 210
Joined: Fri May 07, 2021 10:35 am

Re: ESP-IDF Ethernet Basic Example not working with ESP32S3 and W5500-EVB

Postby ESP_ondrej » Fri Jul 14, 2023 8:01 am

I see that you've mentioned the CS is pulled low on the board. However, would it be possible to connect CS to the GPIO? I have this type https://www.amazon.de/-/en/TECNOIOT-USR ... B07RGLN436 of W5500 module and when I connect the CS to GND it does not work.... It theoretically should but it doesn't and I haven't had time to investigate why.

hd4009
Posts: 4
Joined: Fri Jul 07, 2023 10:13 pm

Re: ESP-IDF Ethernet Basic Example not working with ESP32S3 and W5500-EVB

Postby hd4009 » Tue Jul 18, 2023 4:16 pm

Thanks again for your response. Even after connecting the CS0 pin, the error still persists. I've also tried configuring the PHY reset pin on the ESP32S3 and connect it to the W5500-EVB with no success. The W5500 board I have is a development board compared to your board which seems much more compact. Do you have any other leads or ideas I could explore to find a solution? Thanks

ESP_ondrej
Posts: 210
Joined: Fri May 07, 2021 10:35 am

Re: ESP-IDF Ethernet Basic Example not working with ESP32S3 and W5500-EVB

Postby ESP_ondrej » Wed Jul 19, 2023 6:14 am

Try to reduce SPI frequency and use wires as short as possible with matching length.

hd4009
Posts: 4
Joined: Fri Jul 07, 2023 10:13 pm

Re: ESP-IDF Ethernet Basic Example not working with ESP32S3 and W5500-EVB

Postby hd4009 » Tue Jul 25, 2023 4:22 pm

Thanks for getting back to me, I've tried going as low as 5MHz with no success, and all wires are identical lengths. Could this be an issue on the W5500-EVB side caused by varying firmware as my W5500 board is a development board?

ESP_ondrej
Posts: 210
Joined: Fri May 07, 2021 10:35 am

Re: ESP-IDF Ethernet Basic Example not working with ESP32S3 and W5500-EVB

Postby ESP_ondrej » Wed Jul 26, 2023 6:44 am

So I dived bit deeper and checked W5500-EVB schematics. This is not just a module with the W5500 but it has its own MCU (https://docs.wiznet.io/Product/iEtherne ... /W5500-EVB)! There is default demo firmware flashed in it and it certainly interacts with the W5500. Now, you connected the second MCU, no wonder it does not work.

You need to investigate further steps by yourself. If it worth to modify the EVB and disconnect its MCU or to buy a simple module I've already provided reference to...

Who is online

Users browsing this forum: No registered users and 112 guests