khoih-prog / EthernetWebServer

This is simple yet complete WebServer library for AVR, AVR Dx, Portenta_H7, Teensy, SAM DUE, SAMD21/SAMD51, nRF52, STM32, RP2040-based, etc. boards running Ethernet shields. The functions are similar and compatible to ESP8266/ESP32 WebServer libraries to make life much easier to port sketches from ESP8266/ESP32. Coexisting now with `ESP32 WebServer` and `ESP8266 ESP8266WebServer` libraries. Ethernet_Generic library is used as default for W5x00 with custom SPI
MIT License
180 stars 51 forks source link

ADAFRUIT METRO M4 EXPRESS AIRLIFT (WIFI) - LITE problems #10

Closed budgey closed 4 years ago

budgey commented 4 years ago

Hi, Having issues with metro m4 airlift. I have tried w5100 and w5500 and ethernet, ethernet2, ethernet3 libraries and I always get 0.0.0.0

Starting WebServer on SAMD51 ADAFRUIT_METRO_M4_AIRLIFT_LITE with W5x00 using Ethernet Library [ETHERNET_WEBSERVER] =========== USE_ETHERNET =========== [ETHERNET_WEBSERVER] Default SPI pinout: [ETHERNET_WEBSERVER] MOSI: 26 [ETHERNET_WEBSERVER] MISO: 24 [ETHERNET_WEBSERVER] SCK: 25 [ETHERNET_WEBSERVER] SS: 36 [ETHERNET_WEBSERVER] ========================= [ETHERNET_WEBSERVER] Board : SAMD51 ADAFRUIT_METRO_M4_AIRLIFT_LITE , setCsPin: 10

Currently Used SPI pinout: MOSI:26 MISO:24 SCK:25 SS:36

Using mac index = 3 EthernetWebServer started @ IP address: 0.0.0.0

khoih-prog commented 4 years ago

That happens when the M4 board couldn't communicate to the W5x00 via SPI bus, then couldn't initialize the W5x00. You must have the wiring connected not correctly.

There are something you need to check

  1. Did you modify the Ethernet libraries according to Libraries' Patches?
  2. Did you check, recheck and verify the pins and connection from the W5x00 to Metro M4 Airlift? Please be sure you have connected to the SPI ICSP header on the right side of the board (MOSI/MISO/SCK) and pin 10 for CS for W5x00.

image

If you still have issue, it's easier for you to use the W5100 shield with ICSP connector + Ethernet/EthernetLarge Library

W5100

w5100-ethernet-shield-suf-3

Metro M4 Express AirLift

image