Program not Uploading - Arduino Mega 2560

Hello.

I have an Arduino Mega 2560. Yesterday, I tried uploading a program. The program won't upload.

  • I tried re-uploading
  • Re-installing the dirvers
  • Changing a usb port
  • Uploading a blank program
  • Connecting TX and RX and opening the Serial Port Communication Window to see if text is mirrored
  • Manually restarting arduino while uploading
  • Changing usb cable while repeating the above
  • Re-installing the arduino software while repeating the above
  • Changing PC and trying again all of the above
  • Burning a bootloader using seperate Arduino Uno (Source)

And after repeating all of the above one more time I am on this situation:

  • The "On" led is, well... on

  • The "L" led is blinking on a spesific pattern:

  • 2/20 sec on

  • 1/20 sec off

  • 1/20 sec on

  • 1/20 sec off

  • 1/20 sec on

  • 2/20 sec off

  • TX not RX are blinking.

Yet, the problem insists. It is worth to point that when I press "Get Board Info" I get a window recognising my board as Arduino Mega 2560. Also, the only power input I have given my board is via usb and there is no sign of burnt circuitry. The error I get is:

  avrdude: stk500v2_ReceiveMessage(): timeout
  avrdude: stk500v2_ReceiveMessage(): timeout
  avrdude: stk500v2_ReceiveMessage(): timeout
  avrdude: stk500v2_ReceiveMessage(): timeout
  avrdude: stk500v2_ReceiveMessage(): timeout
  avrdude: stk500v2_ReceiveMessage(): timeout
  avrdude: stk500v2_getsync(): timeout communicating with programmer
  An error occurred while uploading the sketch

Hi there ,

i had pretty similar issue

i did try loopback test ( Loop-Back Test Instructions - Installation & Troubleshooting - Arduino Forum ) led stopped blink but no char mirroring

i had suspicions that it could be related to new os/hw vs old (I was testing my MEGA years ago )

i was fortunate that i had old hp probook 655 with win7 so i did install arduino IDE there , connected mega and tried upload "empty" scratch and it worked ! now I am capable upload also on my newer win 10 probook

OKe , Thanks you

Make sure your USB is on the correct port, try administration mode. Make sure your arduino is working with proper bootloader. Try a UNO or other arduino. Make sure your arduino folders are not redundant ( a library folder in the library folder, etc. )
I had similar issues and got both my UNO's and 2560 working in Linux, and then I had to run arduino in sudo administration mode. I now got both working in Ubantu and Windows 10.