Well, geez. I was doing so well with this Arduino thing. Sensors hooked up, LEDs a 'blinkin, code compiles great... and then I plugged in the Ethernet shield.
I can't get this thing to do squat. At first, I thought perhaps I had a connectivity issue, so I tried a ping. No host. So I started backtracking through the code, simplifying & simplifying some more.
I ended up at what you see below, code that does nothing more than send serial messages for debug, and try to initialize the ethernet. Even that, with no other code, does nothing. I get the "initializing ethernet..." message in the serial console, and then squat. Seems like once ethernet.begin() is called, the whole thing grinds to a halt. Here's the code;
#include <Ethernet.h>
#define byte uint8_t
byte mac[] = { 0xAD, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 192, 168, 1, 101 };
byte gateway[] = { 192, 168, 1, 100 };
byte mask[] = { 255, 255, 255, 0 };
void setup()
{
Serial.begin(9600);
delay(2000);
Serial.println("initializing ethernet...");
Ethernet.begin(mac, ip, gateway, mask);
Serial.println("done.");
}
void loop()
{
}
"done." never appears on the console. The most basic thing I could hope to do with the ethernet shield has failed... :-?
I have tried;
-recompile/re-upload
-reset button on arduino
-reset button on shield
-ethernet cable plugged in
-ethernet cable unplugged
What next? This is depressing.