W6100 and ESP32(C3) with ESP-IDF

nogema
Posts: 8
Joined: Tue Jun 27, 2023 2:57 pm

W6100 and ESP32(C3) with ESP-IDF

Postby nogema » Tue Jul 18, 2023 4:04 pm

Hello,

After succeeding to send HTTPS request over WiFi, I am trying to do it over Ethernet. For this I am using the basic ethernet example from ESP-IDF. The problem is the only chip driver available for Wiznet is the W5500 but I am using the W6100. I searched if anyone has already written such a driver but I only found drivers for Arduino ESP32.
So currently I am writing the driver myself from the W5500 driver files (esp_eth_phy_w5500.c, esp_eth_mac_w5500.c, w5500.h) and the W6100 documentation, but no success so far : the RJ45 is well detected but the DHCP never succeeds (timeout endless).

I am using a custom board with the ESP32C3 chip.

Has anyone found or written these driver files ? Or have any ideas ?

Thanks for your help.

Best regards,


nogema
Posts: 8
Joined: Tue Jun 27, 2023 2:57 pm

Re: W6100 and ESP32(C3) with ESP-IDF

Postby nogema » Fri Jul 21, 2023 3:55 pm

Thank you very much ! After fixing a few bugs and updating the code to ESP-IDF V5.0, this works

Rnd1AtMypromosysMY
Posts: 5
Joined: Thu Jul 07, 2022 4:43 am

Re: W6100 and ESP32(C3) with ESP-IDF

Postby Rnd1AtMypromosysMY » Thu Aug 03, 2023 10:53 am

nogema wrote:
Fri Jul 21, 2023 3:55 pm
Thank you very much ! After fixing a few bugs and updating the code to ESP-IDF V5.0, this works
Hi, would it be possible for you to share your modified code with me, that will be greatly appreciated.

nogema
Posts: 8
Joined: Tue Jun 27, 2023 2:57 pm

Re: W6100 and ESP32(C3) with ESP-IDF

Postby nogema » Wed Oct 18, 2023 3:00 pm

Hello,

I hope these files help you.
Attachments
w6100.h
(6.42 KiB) Downloaded 689 times
esp_eth_phy_w6100.c
(16.12 KiB) Downloaded 705 times
esp_eth_mac_w6100.c
(30.72 KiB) Downloaded 691 times

Who is online

Users browsing this forum: Baidu [Spider] and 331 guests