For simplicity, I'm going to use the MEGA 2560 without any other wiring (except the USB cable) connected. I am also going to use the "Blink" example sketch.
- Code: Select all
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
void setup() {
// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(13, LOW); // set the LED off
delay(1000); // wait for a second
}
(1) Double checked that the correct board model (MEGA 2560) and com port (com 5) were being used.
(2) Complied, got the message "Binary sketch size: 1588 bytes (of a 258048 byte maximum)". Then waited for the "Done compiling" message.
(3) Then tried to upload. The message "Binary sketch size: 1588 bytes (of a 258048 byte maximum)" appears and then nothing. I waited over 5 minutes before ending the program.
(4) I then tried using a different computer, no joy either.
(5) I worked my way through the Arduino Troubleshooting (under Tools/Troubleshooting) without any joy.
(6) Then just to rule out that I wasn't doing something completely bone-headed, I tried using a bare Uno board (changed the Board type and Serial Port) and immediately had success.
So the bottom line is that I am completely stuck using the MEGA.
Thanks,
wermet

