Problem sending UDP between Arduino's

Hello, I am trying to send UDP packages between 2 arduino's but can't get it working. I have been working on this for 2 days now and trying several examples but nothing works, there must be something simple that I miss.
My setup:
Arduino Nano which has to send data to an Arduino Due, both network setups are working when I load a webserver file on them and I can see them from my browser on the PC.
I have tried a crossover cable between the the 2 network adapters to eliminate network problems but this didn't work neither, the link leds are on and the data leds light up when the UDP message is send but nothing on the receiver. Please help, I don't know what I can do more.

Code for the Nano (sender):

#include <EthernetENC.h>
#include <EthernetUdp.h>
#define UDP_TX_PACKET_MAX_SIZE 80

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = {
  0xD1, 0xAD, 0xBE, 0xEF, 0xFE, 0xED 
};
IPAddress ip(192, 168, 1, 177);
unsigned int localPort = 8888;      // local port to listen on

IPAddress remoteIP(192, 168, 1, 180);
unsigned int remotePort(8880);

char ReplyBuffer[] = "UDP test";        // a string to send back

EthernetUDP Udp;    // An EthernetUDP instance to let us send and receive packets over UDP

void setup() {

  Ethernet.begin(mac, ip);    // start the Ethernet
  Serial.begin(9600);
  if (Ethernet.hardwareStatus() == EthernetNoHardware) {    // Check for Ethernet hardware present
    Serial.println("Ethernet shield was not found.  Sorry, can't run without hardware. :(");
    while (true) {
      delay(1); // do nothing, no point running without Ethernet hardware
    }  
  }
  else
  {
    Serial.println("Ethernet shield detected");
  }
  // start UDP
  Udp.begin(localPort);
}


void loop() {
  Serial.print("Send UDP packet");
  Udp.beginPacket(Udp.remoteIP(), Udp.remotePort());
  Udp.write(ReplyBuffer);
  Udp.endPacket();
 delay(1000);
}

And the code for the Due which should receive the above:

#include <EthernetENC.h>
#include <EthernetUdp.h>
#define UDP_TX_PACKET_MAX_SIZE 80

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
IPAddress ip(192, 168, 1, 180);
unsigned int localPort = 8880;      // local port to listen on

char packetBuffer[UDP_TX_PACKET_MAX_SIZE];  // buffer to hold incoming packet,
char ReplyBuffer[] = "acknowledged and received";        // a string to send back

EthernetUDP Udp;    // An EthernetUDP instance to let us send and receive packets over UDP

void setup() {
  Ethernet.init(A5); 
  Ethernet.begin(mac, ip); // start the Ethernet
  Serial.begin(9600);
  if (Ethernet.hardwareStatus() == EthernetNoHardware) {
    Serial.println("Ethernet shield was not found.  Sorry, can't run without hardware. :(");
    while (true) {
      delay(1); // do nothing, no point running without Ethernet hardware
    }
  }
  else {
    Serial.println("Ethernet shield detected");
  }

  // start UDP
  Udp.begin(localPort);
}

void loop() {

  int packetSize = Udp.parsePacket();   // if there's data available, read a packet
  if (packetSize) {
    Serial.print("Received packet of size ");
    Serial.println(packetSize);
    Serial.print("From ");
    IPAddress remote = Udp.remoteIP();
    for (int i=0; i < 4; i++) {
      Serial.print(remote[i], DEC);
      if (i < 3) {
        Serial.print(".");
      }
    }
    Serial.print(", port ");
    Serial.println(Udp.remotePort());

    // read the packet into packetBufffer
    Udp.read(packetBuffer, UDP_TX_PACKET_MAX_SIZE);
    Serial.println("Contents:");
    Serial.println(packetBuffer);

    // send a reply to the IP address and port that sent us the packet we received
    Udp.beginPacket(Udp.remoteIP(), Udp.remotePort());
    Udp.write(ReplyBuffer);
    Udp.endPacket();
  }
  delay(10);
}```

This is a multicast address so cannot be used as a source MAC address.

0xD1, 0xAD, 0xBE, 0xEF, 0xFE, 0xED

Try this.
0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xEE

what Ethernet shields are you using?
have a look at post simple-data-transfer-network-with-enc28j60-arduino-uno as an example of where data is transferred over Ethernet using UDP datagrams

in the transmitter try replacing

Udp.beginPacket(Udp.remoteIP(), Udp.remotePort());

with

  Udp.beginPacket(remoteIP, remotePort);

also make sure your transmitter and receiver use different MAC addresses
otherwise the reciever works OK

Thanks for the reply, I couldn't use what you suggested because the mac address 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xEE was already in use That is why I changed it to a multicast address creating a new problem.
I am using 0xD1, 0xAD, 0xBE, 0xEF, 0xFE, 0xE1 now but still doesn't work.
The IP and Mac addresses of all arduino's have been checked and all are unique.
There are now 3 arduino's connected to the network but my router only shows one. This is still the same after a power cycle.
Is there a program or sketch that can scan the network and display mac and ip addresses to verify if the router is OK?

Ethernet shields are ENC28J60.
I (Google) had not found the topic you are linking to but a similar one from you, this brought me to what I have now. Thanks for this.

Have changed this but it still doesn't work, any other idea's?
Are the ports OK?
Thanks in advance

you should be able to just click on the link in the post
one technique I used in a large Ethernet network was to setup the MAC address from the IP address (this was an independent Ethernet network in a factory) , e.g.

  mac[5] = localIP[3];  // change default MAC address

each machine was assigned a static IP address using DIL switches and this saved having to set up a MAC address as well

I copied the code again

  1. changed the MAC addresses
  2. changed transmitter Udp.beginPacket(remoteIP,remotePort);
  3. I am using two nanos so commented out receiver //Ethernet.init(A5);

receiver displays

Ethernet shield detected
Received packet of size 15
From 192.168.1.177, port 8888
Contents:
UDP testUDP tes
Received packet of size 8
From 192.168.1.177, port 8888
Contents:
UDP testUDP tes
Received packet of size 8
From 192.168.1.177, port 8888
Contents:
UDP testUDP tes
Received packet of size 8
From 192.168.1.177, port 8888
Contents:
UDP testUDP tes

my shields are connected to a router

Edit: connected a ENC28J60 to a Arduino Due and it receives

Ethernet shield detected
Received packet of size 15
From 192.168.1.177, port 8888
Contents:
UDP testUDP tes
Received packet of size 8
From 192.168.1.177, port 8888
Contents:
UDP testUDP tes
Received packet of size 8
From 192.168.1.177, port 8888
Contents:
UDP testUDP tes
Received packet of size 8
From 192.168.1.177, port 8888
Contents:

I assume you wired the SPI tothe Due so
image
CS to A5 and VCC to 3.3V GND to GND

It is working here also.
Adding some code to display addresses and ports from your example in post 3 showed that there still was a conflict, some changes were not saved. Thanks very, very much for your help.

The code for the sender:

#include <EthernetENC.h>
#include <EthernetUdp.h>
#define UDP_TX_PACKET_MAX_SIZE 80

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = {
  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xE1 
};
IPAddress ip(192, 168, 1, 177);
unsigned int localPort = 8888;      // local port to listen on

IPAddress remoteIP(192, 168, 1, 180);
unsigned int remotePort(8880);

char ReplyBuffer[] = "UDP test";        // a string to send back

EthernetUDP Udp;    // An EthernetUDP instance to let us send and receive packets over UDP

void setup() {

  Ethernet.begin(mac, ip);    // start the Ethernet
  Serial.begin(9600);
  if (Ethernet.hardwareStatus() == EthernetNoHardware) {    // Check for Ethernet hardware present
    Serial.println("Ethernet shield was not found.  Sorry, can't run without hardware. :(");
    while (true) {
      delay(1); // do nothing, no point running without Ethernet hardware
    }  
  }
  else
  {
    Serial.println("Ethernet shield detected");
  }
  // start UDP
  Udp.begin(localPort);
  Serial.println("Send UDP packet from:");
  displayIPaddress(ip, localPort);
  displayMACaddress(mac);
}


void loop() {
  Serial.print("Send UDP packet to:");
  displayIPaddress(remoteIP, remotePort);  
  Serial.println();
  Udp.beginPacket(remoteIP, remotePort);
  Udp.write(ReplyBuffer);
  Udp.endPacket();
 delay(1000);
}

// print IPAdress and port
void displayIPaddress(const IPAddress address, unsigned int port) {
  Serial.print(" IP ");
  for (int i = 0; i < 4; i++) {
    Serial.print(address[i], DEC);
    if (i < 3) Serial.print(".");
  }
  Serial.print(" port ");
  Serial.println(port);
}

void displayMACaddress(byte address[]) {
  Serial.print("MAC address ");
  for (int i = 0; i < 6; i++) {
    Serial.print("0x");
    Serial.print(address[i], HEX);
    if (i < 5) Serial.print(".");
  }
  Serial.println();
}

And the receiver:

#include <EthernetENC.h>
#include <EthernetUdp.h>
#define UDP_TX_PACKET_MAX_SIZE 80

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xE2};
IPAddress ip(192, 168, 1, 181);
unsigned int localPort = 8880;      // local port to listen on

char packetBuffer[UDP_TX_PACKET_MAX_SIZE];  // buffer to hold incoming packet,
char ReplyBuffer[] = "acknowledged and received";        // a string to send back

EthernetUDP Udp;    // An EthernetUDP instance to let us send and receive packets over UDP

void setup() {
  Ethernet.init(A5); 
  Ethernet.begin(mac, ip); // start the Ethernet
  Serial.begin(9600);
  if (Ethernet.hardwareStatus() == EthernetNoHardware) {
    Serial.println("Ethernet shield was not found.  Sorry, can't run without hardware. :(");
    while (true) {
      delay(1); // do nothing, no point running without Ethernet hardware
    }
  }
  else {
    Serial.println("Ethernet shield detected");
  }

  // start UDP
  Udp.begin(localPort);
  displayIPaddress(ip, localPort);
  displayMACaddress(mac);
  Serial.println("Listening for UDP");
}

void loop() {

  int packetSize = Udp.parsePacket();   // if there's data available, read a packet
  if (packetSize) {
    Serial.print("Received packet of size ");
    Serial.println(packetSize);
    Serial.print("From ");
    IPAddress remote = Udp.remoteIP();
    for (int i=0; i < 4; i++) {
      Serial.print(remote[i], DEC);
      if (i < 3) {
        Serial.print(".");
      }
    }
    Serial.print(", port ");
    Serial.println(Udp.remotePort());

    // read the packet into packetBufffer
    Udp.read(packetBuffer, UDP_TX_PACKET_MAX_SIZE);
    Serial.println("Contents:");
    Serial.println(packetBuffer);

    // send a reply to the IP address and port that sent us the packet we received
    Udp.beginPacket(Udp.remoteIP(), Udp.remotePort());
    Udp.write(ReplyBuffer);
    Udp.endPacket();
  }
  delay(10);
}

// print IPAdress and port
void displayIPaddress(const IPAddress address, unsigned int port) {
  Serial.print(" IP ");
  for (int i = 0; i < 4; i++) {
    Serial.print(address[i], DEC);
    if (i < 3) Serial.print(".");
  }
  Serial.print(" port ");
  Serial.println(port);
}

void displayMACaddress(byte address[]) {
  Serial.print("MAC address ");
  for (int i = 0; i < 6; i++) {
    Serial.print("0x");
    Serial.print(address[i], HEX);
    if (i < 5) Serial.print(".");
  }
  Serial.println();
}

The receiver shows:

Received packet of size 8
From 192.168.1.177, port 8888
Contents:
UDP test
Received packet of size 8
From 192.168.1.177, port 8888
Contents:
UDP test

Your content has "UDP testUDP tes", why is it different?

not sure why yours is different but if I change the transmit to

  Udp.write(ReplyBuffer, sizeof(ReplyBuffer)+1);

it is then OK

Ethernet shield detected
Received packet of size 10
From 192.168.1.177, port 8888
Contents:
UDP test
Received packet of size 10
From 192.168.1.177, port 8888
Contents:
UDP test
Received packet of size 10
From 192.168.1.177, port 8888
Contents:
UDP test
Received packet of size 10
From 192.168.1.177, port 8888
Contents:
UDP test
Received packet of size 10
From 192.168.1.177, port 8888
Contents:
UDP test

my Nano transmitter is plugged into a
ENC28J60 Ethernet Shield For Arduino Nano
which may make a difference????

I have the same ENC28J60 ethernet shield on a Nano as sender, so this can't be it.
The shield didn't work at all when I received it (manufacturing fault: D12 connected to GND), another day wasted in finding the problem and solving it.
When I started with this UDP project there was a problem compiling example sketches found everywhere on the internet, Compiler error:
'UDP_TX_PACKET_MAX_SIZE' was not declared in this scope
Apparently I was the only one in the entire world with this problem or Google didn't find the others ....
This was defined in Ethernet.h and not in EthernetENC.h? Or recently removed:

I added #define UDP_TX_PACKET_MAX_SIZE 80 to my sketches to solve this.
How did you solve this and could this be the reason for the difference in contents?
Thanks again.

I have probably have a different library or version of a library
when I compile your transmitter code I get

Using board 'nano' from platform in folder: C:\Users\bb\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\bb\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Detecting libraries used...
"C:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\eightanaloginputs" "C:\\Users\\bb\\AppData\\Local\\Temp\\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\\sketch\\ethtraansmit2.ino.cpp" -o nul
Alternatives for EthernetENC.h: [EthernetENC@2.0.3]
ResolveLibrary(EthernetENC.h)
  -> candidates: [EthernetENC@2.0.3]
"C:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\eightanaloginputs" "-Ic:\\Users\\bb\\Documents\\Arduino\\libraries\\EthernetENC\\src" "C:\\Users\\bb\\AppData\\Local\\Temp\\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\\sketch\\ethtraansmit2.ino.cpp" -o nul
Using cached library dependencies for file: c:\Users\bb\Documents\Arduino\libraries\EthernetENC\src\Dhcp.cpp
Using cached library dependencies for file: c:\Users\bb\Documents\Arduino\libraries\EthernetENC\src\Dns.cpp
Using cached library dependencies for file: c:\Users\bb\Documents\Arduino\libraries\EthernetENC\src\Ethernet.cpp
Using cached library dependencies for file: c:\Users\bb\Documents\Arduino\libraries\EthernetENC\src\EthernetClient.cpp
Using cached library dependencies for file: c:\Users\bb\Documents\Arduino\libraries\EthernetENC\src\EthernetServer.cpp
Using cached library dependencies for file: c:\Users\bb\Documents\Arduino\libraries\EthernetENC\src\EthernetUdp.cpp
Using cached library dependencies for file: c:\Users\bb\Documents\Arduino\libraries\EthernetENC\src\utility\Enc28J60Network.cpp
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
  -> candidates: [SPI@1.0]
Using cached library dependencies for file: c:\Users\bb\Documents\Arduino\libraries\EthernetENC\src\utility\mempool.cpp
Using cached library dependencies for file: c:\Users\bb\Documents\Arduino\libraries\EthernetENC\src\utility\uip.c
Using cached library dependencies for file: c:\Users\bb\Documents\Arduino\libraries\EthernetENC\src\utility\uip_arp.c
Using cached library dependencies for file: C:\Users\bb\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src\SPI.cpp
Generating function prototypes...
"C:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\eightanaloginputs" "-Ic:\\Users\\bb\\Documents\\Arduino\\libraries\\EthernetENC\\src" "-IC:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\libraries\\SPI\\src" "C:\\Users\\bb\\AppData\\Local\\Temp\\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\\sketch\\ethtraansmit2.ino.cpp" -o "C:\\Users\\bb\\AppData\\Local\\Temp\\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\bb\\AppData\\Local\\Temp\\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\eightanaloginputs" "-Ic:\\Users\\bb\\Documents\\Arduino\\libraries\\EthernetENC\\src" "-IC:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\libraries\\SPI\\src" "C:\\Users\\bb\\AppData\\Local\\Temp\\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\\sketch\\ethtraansmit2.ino.cpp" -o "C:\\Users\\bb\\AppData\\Local\\Temp\\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\\sketch\\ethtraansmit2.ino.cpp.o"
Compiling libraries...
Compiling library "EthernetENC"
Using previously compiled file: C:\Users\bb\AppData\Local\Temp\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\libraries\EthernetENC\utility\mempool.cpp.o
Using previously compiled file: C:\Users\bb\AppData\Local\Temp\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\libraries\EthernetENC\Dhcp.cpp.o
Using previously compiled file: C:\Users\bb\AppData\Local\Temp\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\libraries\EthernetENC\EthernetClient.cpp.o
Using previously compiled file: C:\Users\bb\AppData\Local\Temp\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\libraries\EthernetENC\utility\uip.c.o
Using previously compiled file: C:\Users\bb\AppData\Local\Temp\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\libraries\EthernetENC\Dns.cpp.o
Using previously compiled file: C:\Users\bb\AppData\Local\Temp\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\libraries\EthernetENC\utility\Enc28J60Network.cpp.o
Using previously compiled file: C:\Users\bb\AppData\Local\Temp\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\libraries\EthernetENC\utility\uip_arp.c.o
Using previously compiled file: C:\Users\bb\AppData\Local\Temp\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\libraries\EthernetENC\EthernetUdp.cpp.o
Using previously compiled file: C:\Users\bb\AppData\Local\Temp\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\libraries\EthernetENC\Ethernet.cpp.o
Using previously compiled file: C:\Users\bb\AppData\Local\Temp\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\libraries\EthernetENC\EthernetServer.cpp.o
Using previously compiled file: C:\Users\bb\AppData\Local\Temp\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\libraries\EthernetENC\EthernetENC.a
Compiling library "SPI"
Using previously compiled file: C:\Users\bb\AppData\Local\Temp\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\libraries\SPI\SPI.cpp.o
Compiling core...
Using precompiled core: C:\Users\bb\AppData\Local\Temp\arduino-core-cache\core_arduino_avr_nano_cpu_atmega328old_eec3dec71b463e2789004abc28e4eb53.a
Linking everything together...
"C:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\bb\\AppData\\Local\\Temp\\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1/ethtraansmit2.ino.elf" "C:\\Users\\bb\\AppData\\Local\\Temp\\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\\sketch\\ethtraansmit2.ino.cpp.o" "C:\\Users\\bb\\AppData\\Local\\Temp\\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\\libraries\\EthernetENC\\EthernetENC.a" "C:\\Users\\bb\\AppData\\Local\\Temp\\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1\\libraries\\SPI\\SPI.cpp.o" "C:\\Users\\bb\\AppData\\Local\\Temp\\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1/..\\arduino-core-cache\\core_arduino_avr_nano_cpu_atmega328old_eec3dec71b463e2789004abc28e4eb53.a" "-LC:\\Users\\bb\\AppData\\Local\\Temp\\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1" -lm
"C:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\bb\\AppData\\Local\\Temp\\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1/ethtraansmit2.ino.elf" "C:\\Users\\bb\\AppData\\Local\\Temp\\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1/ethtraansmit2.ino.eep"
"C:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\bb\\AppData\\Local\\Temp\\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1/ethtraansmit2.ino.elf" "C:\\Users\\bb\\AppData\\Local\\Temp\\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1/ethtraansmit2.ino.hex"

Using library EthernetENC at version 2.0.3 in folder: C:\Users\bb\Documents\Arduino\libraries\EthernetENC 
Using library SPI at version 1.0 in folder: C:\Users\bb\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI 
"C:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\bb\\AppData\\Local\\Temp\\arduino-sketch-FAD17EEE35FE01D887DD247BE62795F1/ethtraansmit2.ino.elf"
Sketch uses 15298 bytes (49%) of program storage space. Maximum is 30720 bytes.
Global variables use 1073 bytes (52%) of dynamic memory, leaving 975 bytes for local variables. Maximum is 2048 bytes.

under File>Preferences I have enabled "Verbose output during Compiling and upload"

I removed references to 'UDP_TX_PACKET_MAX_SIZE' from my code

Seems that I am having the same version:

Detecting libraries used...
"C:\\Users\\I5 64bit\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10819 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" "-IC:\\Users\\I5 64bit\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/libsam" "-IC:\\Users\\I5 64bit\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/CMSIS/Include/" "-IC:\\Users\\I5 64bit\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/Device/ATMEL/" "-IC:\\Users\\I5 64bit\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\cores\\arduino" "-IC:\\Users\\I5 64bit\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\variants\\arduino_due_x" "C:\\Users\\I564BI~1\\AppData\\Local\\Temp\\arduino_build_552082\\sketch\\UDP1.ino.cpp" -o nul
Alternatives for EthernetENC.h: [EthernetENC@2.0.3]
ResolveLibrary(EthernetENC.h)
  -> candidates: [EthernetENC@2.0.3]

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.