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:
Any help would be greatly appreciated, thanks!
ESP-IDF Ethernet Basic Example not working with ESP32S3 and W5500-EVB
-
- Posts: 210
- Joined: Fri May 07, 2021 10:35 am
Re: ESP-IDF Ethernet Basic Example not working with ESP32S3 and W5500-EVB
Please make sure you also connected the W5500 interrupt output to your ESP32.
Re: ESP-IDF Ethernet Basic Example not working with ESP32S3 and W5500-EVB
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:
Please let me know if there are any other potential causes of this error and/or fixes, thanks.
Here is a screenshot of my sdkconfig file > Example Configuration:
Please let me know if there are any other potential causes of this error and/or fixes, thanks.
-
- Posts: 210
- Joined: Fri May 07, 2021 10:35 am
Re: ESP-IDF Ethernet Basic Example not working with ESP32S3 and W5500-EVB
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.
Re: ESP-IDF Ethernet Basic Example not working with ESP32S3 and W5500-EVB
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
-
- Posts: 210
- Joined: Fri May 07, 2021 10:35 am
Re: ESP-IDF Ethernet Basic Example not working with ESP32S3 and W5500-EVB
Try to reduce SPI frequency and use wires as short as possible with matching length.
Re: ESP-IDF Ethernet Basic Example not working with ESP32S3 and W5500-EVB
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?
-
- Posts: 210
- Joined: Fri May 07, 2021 10:35 am
Re: ESP-IDF Ethernet Basic Example not working with ESP32S3 and W5500-EVB
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...
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 115 guests