I buy a Arduino Ethernet Shield 2 with Ethernet Controller W5500.
I run the webserver example of the IDE and the program doesn't start the server. Stops in line "server.begin();".
I tried with Arduino Uno and Arduino Mega and with another Ethernet Shield 2 and it happens the same.
Example Code from IDE
#include <SPI.h>
#include <Ethernet.h>
// 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, 177);
// Initialize the Ethernet server library
// with the IP address and port you want to use
// (port 80 is default for HTTP):
EthernetServer server(80);
void setup() {
// Open serial communications and wait for port to open:
Serial.begin(115200);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}
Serial.println("I'm here!!!!");
// start the Ethernet connection and the server:
Ethernet.begin(mac, ip);
Serial.println("And here!!!!");
server.begin();
Serial.println("Did I made the server.begin?");
Serial.print("server is at ");
Serial.println(Ethernet.localIP());
}
void loop() {
//...
}
Print screen of the serial monitor:
Anyone have a good reason for it? The W5500 chip works different compared with W5100? I have a Ethernet shield with the W5100 and it works perfectly.
The board:
Btw... The SD CARD runs correctly with the IDE examples:
I have the same problem overhere with a Shield also bought by RS comp and already took me some time to get a chatserver working, but with no result.
I'm new to programming.
You mention Arduino IDE 1.7.4
The latest I see is 1.6.5 so is 1.7.4 a typo
Could you please confirm and give me link what library and IDE you are using and what I should change in the src or include files.
thanks in advance.