Page 1 of 1

W5500 polling logic, No IP

Posted: Wed Sep 08, 2021 9:05 pm
by mouelle
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

Re: W5500 polling logic, No IP

Posted: Tue Sep 14, 2021 3:35 pm
by mouelle
You can find the issue here on Stack Overflow [https://stackoverflow.com/questions/691 ... 1#69180551].

Re: W5500 polling logic, No IP

Posted: Fri Mar 31, 2023 7:55 am
by MasterExploder
Did you find any solution to this? the given link is not working, i am trying to to the same thing you did.

Re: W5500 polling logic, No IP

Posted: Fri Mar 31, 2023 3:46 pm
by username
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 ?