Ethernet Basic Example - W5500

earp123
Posts: 3
Joined: Tue Nov 05, 2024 8:46 pm

Ethernet Basic Example - W5500

Postby earp123 » Mon Nov 11, 2024 4:44 pm

ESP-IDF v5.3.1

I have a board with ESP32S3 that I am trying to test with the Ethernet Basic example using the W5500 over SPI. I have triple checked the SPI pins and interrupt pin with the schematic and confirmed they are configured correctly along with the SPI Ethernet selection and the correct SPI chip via the config menu. I am really trying to test the example straight out of the box with the exception of the W5500 version check function that I commented out (it's still returning 0x0 despite the most recent bug fix).

I get as far as "Ethernet Started" in the logs with no IP address being assigned, nor a link up link down message but I can observe the link LEDs on the RJ45 port are lit, indicating the connection is good. I've tested this example on multiple boards with multiple routers that I've confirmed have DHCP server enabled. My inclination is that the firmware doesn't seem to be sending a DCHP request?

I've searched a lot of forum entries with this same problem but all of them seem to have been resolved with trivial solutions but I still cannot get an IP address assigned after trying everything.

Any help would be appreciated,
Thanks

username
Posts: 538
Joined: Thu May 03, 2018 1:18 pm

Re: Ethernet Basic Example - W5500

Postby username » Tue Nov 12, 2024 3:23 am

What S3 board are you using. does it have the W5500 on it or is it external to the S3 board ?
What pins are you using to connect to the W5500 ?

earp123
Posts: 3
Joined: Tue Nov 05, 2024 8:46 pm

Re: Ethernet Basic Example - W5500

Postby earp123 » Tue Nov 12, 2024 5:08 pm

INT >GPIO39
SCLK>GPIO36
MOSI>GPIO35
MISO>GPIO37
CSn >GPIO39

I've tried several different CLK speeds with no success. 18MHz all the way up to 36MHz

The W5500 is on-board, not external.

I am testing on an ESP32 stick from this project.

nopnop2002
Posts: 112
Joined: Thu Oct 03, 2019 10:52 pm
Contact:

Re: Ethernet Basic Example - W5500

Postby nopnop2002 » Wed Nov 13, 2024 3:32 am

I saw Schematic_esp32-S3-ETH-CAM_2023-10-23.pdf

it will look like this:


INTn IO38
MOSI IO35
MISO IO37
SCLK IO36
SCSn IO39

earp123
Posts: 3
Joined: Tue Nov 05, 2024 8:46 pm

Re: Ethernet Basic Example - W5500

Postby earp123 » Wed Nov 13, 2024 9:03 pm

So this is also the wrong schematic but it forced me to go back and confirm the board version I have upon which I discovered I was ALSO following the wrong schematic with incorrect SPI pins. So, once again this issue was resolved with a trivial solution. Example is working now.
Thank you for the assistance.

Who is online

Users browsing this forum: No registered users and 234 guests