Closed DelboyJay closed 5 years ago
~I'm getting garbled data too, but with W5500 on an UNO. I'll try to put together a reproducible example.~
Edit: After further investigation, my garbles were unrelated to this issue and this library.
Hi Grey, Can you run the standard Ethernet example for me and see if hitting F5 a number of times will cause the same problem. It would help to know if the issue still occurs for different hardware or if it's my board at fault here.
You mean this sketch?
Yeah, that's it. I noticed that I had an SD card installed and when I removed it the corruption seems to stop. The example sketch does not use the SD card so not sure why this would happen.
Try explicitly deasserting the SD card's chip select line (probably pin 4) before you do anything with Ethernet
:
#define SD_SPI_CS 4
digitalWrite(SD_SPI_CS, HIGH);
pinMode(SD_SPI_CS, OUTPUT);
I finally got round to checking this! This was my fault, I was using pin 4 as a watchdog strobe which was turning the SD card on and off every second! Thanks for the help.
I have found an issue where requesting pages repetedly causes corrupted output and in some cases the board hangs forever even if no more requests are made. The corruption can be seen with the Ethernet example code.
Hardware Arduino Uno R3 W5100 Ethernet shield
Code Version I am synced to this commit when testing https://github.com/arduino-libraries/Ethernet/commit/4f4ac17f296f5ffbe869730db88265ddc3e4fc15 I am using Windows 10 and Google Chrome Version 71.0.3578.98 (Official Build) (64-bit) for the browser.
Reproduction Steps