W5500 polling logic, No IP

mouelle
Posts: 2
Joined: Wed Sep 08, 2021 8:42 pm

W5500 polling logic, No IP

Postby mouelle » Wed Sep 08, 2021 9:05 pm

Hi,

I recently switched framework from Arduino to ESP IDF. I've been strugling to implement my w5500 SPI_ETH dev board for the simple fact that the featured example (https://github.com/espressif/esp-idf/bl ... ple_main.c) uses an interrupt pin that is not mapped on my board.

The PHY does seem to work because I get a serial print of a Link Up/Link Down when I plug/unplug the Ethernet cable. For an unknown reason, the esp cannot get an IP address from my router.

I tried changing the function

Code: Select all

static void emac_w5500_task(void *arg)
to a polling logic in the esp_eth_mac_w5500.c file but still can't get an IP address.

I found this thread (viewtopic.php?t=19018) on the same problem that was solved by connecting the interrupt pin. Is the hardware interrupt pin mandatory considering my code was working on the Arduino framework? What I'm I missing?

Thanks
Attachments
esp_eth_mac_w5500_II.c
(27.19 KiB) Downloaded 197 times

mouelle
Posts: 2
Joined: Wed Sep 08, 2021 8:42 pm

Re: W5500 polling logic, No IP

Postby mouelle » Tue Sep 14, 2021 3:35 pm

You can find the issue here on Stack Overflow [https://stackoverflow.com/questions/691 ... 1#69180551].

MasterExploder
Posts: 24
Joined: Wed Feb 08, 2023 6:17 pm

Re: W5500 polling logic, No IP

Postby MasterExploder » Fri Mar 31, 2023 7:55 am

Did you find any solution to this? the given link is not working, i am trying to to the same thing you did.

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

Re: W5500 polling logic, No IP

Postby username » Fri Mar 31, 2023 3:46 pm

I recently switched framework from Arduino to ESP IDF. I've been strugling to implement my w5500 SPI_ETH dev board for the simple fact that the featured example (https://github.com/espressif/esp-idf/bl ... ple_main.c) uses an interrupt pin that is not mapped on my board.
Did you run menuconfig to change the pin number to one you have ?

Who is online

Users browsing this forum: No registered users and 127 guests