Uploading code to Mega 2560 is stuck

I’m trying to upload code from a Mac (online Arduino editor) onto an Arduino Mega2560, to connect a motor to pin 52 and Ground to get it to move. But at the top it says busy (like it does when it uploads) and doesn’t do anything else. Refreshing the page doesn’t work. The code is verified, and here’s the code:

void setup(){

}

void loop()

{

digitalWrite(52,HIGH);

}

The Arduino application (with same code copied in) comes up with this error:

Arduino: 1.8.4 (Mac OS X), Board: “Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)” Sketch uses 1190 bytes (0%) of program storage space. Maximum is 253952 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 8183 bytes for local variables. Maximum is 8192 bytes. avrdude: ser_open(): can’t open device “COM1”: No such file or directory

ioctl(“TIOCMGET”): Inappropriate ioctl for device

ioctl(“TIOCMGET”): Inappropriate ioctl for device

avrdude: ser_send(): write error: Bad file descriptor

avrdude: stk500_send(): failed to send command to serial port

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_getsync(): timeout communicating with programmer

the selected serial port avrdude: stk500v2_getsync(): timeout

communicating with programmer does not exist or your board is not connected

Add Comment
2 Answer(s)

You can try to update your software. or recup an more old version. have you rightly selected your board?

Curious Answered on September 30, 2018.
Add Comment

I just tried uploading the code to a Duemilanove, after uncommenting the lines. It uploaded with no problems. It even works.

The numbers that are printed should have some identifiers in front of them, to define what they are, but that is all that I see is wrong

Scholar Answered on September 30, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.