Closed buzzik closed 5 years ago
If I understand correctly, the bootloader works correctly, meaning you can upload a sketch to your mega, but the sketch itself fails to run afterwards. Is that correct?
If so, can you try to hardcode your network settings instead of using DHCP to get them? I am not sure what Ethernet library might be doing, but when your sketch runs, the network settings are already set in W5100, and Ethernet might bail out because of that.
Sorry, I found the solution. That was a bug of w5100 our chienes friends put wrong resistors and w5100 didnt work with network switches. https://forum.mysensors.org/topic/9345/ethernet-gateway-w5100-not-working-on-an-ethernet-switch/12
Thank you for your answer )))
Problem solved, bootloader not guilty :)
Hi, I have mega2560 + W5100 ethernet shield. And I testing some sketches for personal project. After I burning your bootloader throug Arduino ISP my mega+w5100 cant connetct to my network. I'v setted correct IP and gateway trugh WriteNetworkSettings sketch, and verifing it with ReadNetworkSettings . There is the output of this sketch
(all is correct, 192.168.31.1 is my gateway(router))
there is testing sketch that also dont want to connect to lan
How can I fix problem or restore previous condition of mega and w5100 ? Thank you, sory for my english
P.S. I'v tried connect my w5100 to another board, arduino uno with same scetch. And that not work to, send me same "Failed to configure Ethernet using DHCP".