ESP32-C3 and W5500 Link Up Issue

dmitttri
Posts: 1
Joined: Wed Jun 12, 2024 2:58 pm

ESP32-C3 and W5500 Link Up Issue

Postby dmitttri » Wed Jun 12, 2024 3:21 pm

Hi everyone!
I am using ESP32-C3 DevKitM-1 with esp-idf-v5.2 I am having trouble with running basic Ethernet example, with W5500 external module. I have connected ESP32-C3 board and W5500 module: SPI, Interrupt, Reset and Power (3V3). Of course, I made appropriate changes in the sdkconfig (via menuconfig), regarding all pin assigments, to match my setup. W5500 module is connected to my local Ethernet switch, with a standard Ethernet cable.

I can compile and run my code, it starts, I get the "Ethernet Started" event but I can't get the "Link Up" event, and also LED's on W5500 RJ45 connector are all off. This is the shortened output from my ESP terminal:
I (305) main_task: Calling app_main()
I (325) esp_eth.netif.netif_glue: c2:4e:30:f0:ef:b4
I (325) esp_eth.netif.netif_glue: ethernet attached to netif
I (335) eth_example: Ethernet Started

My source code is just the basic Ethernet example, where I had to edit only GPIO assignments, to match my connection setup. From the terminal output, it seems that my code is communicating with W5500, and SPI connection is fine.
I can confirm that Ethernet cable is fine, that my switch (on the other side of W5500) fully supports auto negotiation and 10/100 operation.

Did anyone else has similar issues while trying to make W5500 module work with ESP devices?
Thanks in advance!

Linetkux Wang
Posts: 9
Joined: Sun Jun 16, 2024 2:25 pm

Re: ESP32-C3 and W5500 Link Up Issue

Postby Linetkux Wang » Tue Jun 18, 2024 2:01 pm

Maybe you should share your ethernet PI configuration, like this I used for my ESP32-S3 + W5500
Espressif IoT Development Framework Configuration
[*] SPI Ethernet
(1) Number of SPI Ethernet modules to use at a time
Ethernet SPI (W5500 Module) --->
(1) SPI Host Number
(12) SPI SCLK GPIO number
(11) SPI MOSI GPIO number
(13) SPI MISO GPIO number
(36) SPI clock speed (MHz)
(10) SPI CS0 GPIO number for SPI Ethernet module #1
(14) Interrupt GPIO number SPI Ethernet module #1
(15) PHY Reset GPIO number of SPI Ethernet Module #1
(1) PHY Address of SPI Ethernet Module #1

fanmen1
Posts: 27
Joined: Thu Mar 21, 2024 1:30 pm

Re: ESP32-C3 and W5500 Link Up Issue

Postby fanmen1 » Wed Jun 19, 2024 7:38 am

Have you checked this?
Attachments
Screenshot 2024-06-19 083636.png
Screenshot 2024-06-19 083636.png (12.3 KiB) Viewed 1184 times

Who is online

Users browsing this forum: Bing [Bot] and 116 guests