WIZnet is a fabless semiconductor company specializing in Hardware TCP/IP Ethernet controller and SoC, with high performance and low cost solution.

W5100 and nucleo f401re

18 Feb 2017

Hi. Tried to get it work using wiznet_Library, but got common problem - ip is 0.0.0.0 same as mac and gateway. Enabled spi debug - ip, mask and gateway init fine. But mac is still empty. Changed this function in W5100.cpp:

void WIZnet_Chip::spi_write(uint16_t addr, const uint8_t *buf, uint16_t len) { if(addr==SHAR) { wait(0.5); this one wait if mac writing } for(int i = 0; i < len; i++) { cs = 0; spi->write(0xf0); spi->write(addr >> 8); spi->write(addr & 0xff); addr++; ...

And everything starts to work. May be it will be usefull for someone.

11 Aug 2017

Hello, Sergey! Thanks for sharing your experience. I have the similar problems with Nucleo L417RG. Can you explain how to enable spi debug?