User mini profile

- Sun Aug 06, 2017 11:55 pm#68901
Hello,I've been trying to get a NodeMCU version of the ESP8266 to work with this W5500 ethernet module on the Arduino IDE, but I haven't had much luck. The W5500 ethernet module works fine on regular Arduino Uno, I'm able to get this Ethernet2 library example to connect to my router and display IP address in serial monitor. But when I try the same example on the ESP8266, I get a memory dump on the serial monitor, and it does not successfully get an IP address.

I've never used SPI devices on the ESP8266 before. And this might be complicated by the fact that the Ethernet2 library is making calls to the SPI bus, you don't actually specify the ESP8266 SPI pins. So, maybe I need to edit the Ethernet2 library specifically to reference the right pins on the EsP8266?

User mini profile

- Tue Aug 08, 2017 2:33 pm#68922
I suggest examining the adafruit feather ESP8266 and W5500 board schematics to determine how adafruit hooked up the boards then hook up the same pins on your boards. You did not mention RST which probably needs to be connected to the ESP8266 RST or at least pull high (or low) on the W5500 board. If the W5500 RST is connected to an ESP8266 GPIO, the driver must be told which pin to use.

Specifying the SPI pins is not a good idea because the driver will probably switch to bit-bang mode instead of using the hardware SPI controller.