sstaub / Ethernet3

Ethernet library for Arduino and Ethernetshield2 / WIZ550io / WIZ850io / USR-ES1 with Wiznet W5500 chip
Other
76 stars 34 forks source link

Does not work with Nano (old bootloader) & Wiz5500io combo #32

Closed baqwas closed 4 years ago

baqwas commented 4 years ago

Sorry for posting this issue but the last update to the Wiznet library is several years older. The following code snippet fails to return a lease from the DHCP server:

#include <Ethernet3.h>
#include <EthernetUdp3.h>
uint8_t MACaddress[6];
...
  if (Ethernet.begin(MACaddress) == 0) {
    Serial.println("Failed to configure Ethernet using DHCP");
    // no point in carrying on, so do nothing forevermore:
    for (;;)
      ;
  }

The target machine is a Nano and the ETH shield is WIZ5500io. Thanks.

Kind regards.

sstaub commented 4 years ago

The WIZ550IO needs no mac address, try without.

baqwas commented 4 years ago

Understood. Closing issue owing to stupidity on my part. I burnt UNO bootloader to the Schenzen Nano (which had ATmega328P Old Bootloader). Thx all the same for your quick response and guidance.

Kind regards.