Arduino Ethernet Hanging


hello,

i bought new ethernet shield , i'm starting play on top of arduino uno. reason when trying to  open connection board, software hangs. i'm running example dhcpaddressprinter when reaches condicional line, hangs.


  if (ethernet.begin(mac) == 0) {
    serial.println("failed configure ethernet using dhcp");
    // no point in carrying on, nothing forevermore:
    (;;)
      ;
  }

i tried using static ip not work, assinged weird ip 0.45.45.45

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

does has idea why board not talking router correctly?

thanks in advance

i using ethernet shield ii , arduino ide 1.7.6 seems have fixed issue.

http://www.arduino.org/products/arduino-ethernet-shield-2

changelog:

[core]
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 ip assigned board using ethernet2.h lib fine

thanks


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > Arduino Ethernet Hanging


arduino

Comments