Arduino Mega, Serial.begin crashes?

Hey All,

I just got an Arduino Mega. It seems to work OK except when i try to use serial communication. I'm just trying to get the mega to send some serial info. to my computer via the following sketch, but it does nothing... the LED doesn't blink and I get nothing in the serial monitor. If I comment out the two serial lines then the sketch seems to run ok.

Any help is greatly appreciated

int ledPin = 13;
void setup()
  pinMode(ledPin, OUTPUT);

void loop()


Well the code is fine, I compiled and ran it on my Seeeduino mega. Are you sure the code is downloading successfully with no errors reported? What version of the Arduino IDE are you using? Even if you had the wrong baud rate selected for the serial monitor the LED should still blink.


I found another post that talks about this issue... iam using Linux and had to downgrade my avr-gcc and avr-gcc-g++ (both to version 4.3.3) It works now. Thanks.