Arduino Ethernet Hanging


I just bought a new Ethernet shield and I'm starting to play with it on top of an Arduino UNO. For some reason when trying to open connection to the board, the software just hangs. I'm running the example DhcpAddressPrinter but when it reaches the condicional line, it hangs.

if (Ethernet.begin(mac) == 0) { Serial.println("Failed to configure Ethernet using DHCP"); // no point in carrying on, so do nothing forevermore: for (;;) ; }

I also tried using static IP but it also does not work, it get assinged a weird IP

Ethernet.begin(mac, ip, gateway, subnet); //for manual setup

Does anyone has any idea why the board is not talking to the router correctly?

Thanks in advance

I was using Ethernet Shield II and Arduino IDE 1.7.6 seems to have fixed the issue.


Fixed Serial/Serial5 bug (issue #13) - M0 / M0 Pro
Fixed Sercom reference in Wire.h - M0 / M0 Pro
Fixed DHCP Response on Ethernet2 Lib - M0 / M0 Pro

I can now get an IP assigned to the board using the Ethernet2.h lib just fine