Arduino MEGA will not upload any code

Using the Arduino MEGA R3 2560

When I try to upload any code to the arduino I get the following error:

I have confirmed I have the correct board and port selected

  • Board: Arduino Mega or Mega 2560

I am using the default processor settings which are:

  • Processor: ATmega1280

  • Programmer: Arduino as ISP (ATmega32U4)

Since the Arduino Mega I am using is a 2560 I changed the processor to ATmega2560 (Mega 2560) which led to a different error:

I am fairly sure the ATmega2560 is the correct processor so I think this second error is the one that needs to be solved.

Things I have tried:

  • Using an example script provided by arduino so I am certain there are no errors within the code

  • Using a new cable to connect the arduino to the computer so it is not the USB connection

  • Pressing the reset button on the arduino

  • Trying to upload the code to a different arduino (this worked) so it is not the software or my computer

Based on this I have concluded that it is an issue with this specific arduino Mega board which I am not sure how to fix or if it is possible to fix. There is also a minor possibility it is a Mega interfacing with my arduino software problem as the other arduino I tried was not a Mega but I am fairly sure I correctly set up the Mega settings.

Other things I have tried:

  • Burn a new bootloader onto the Arduino: this gave me the same error as the first screenshot even with the new processor selected

  • Did a loopback test using the serial monitor: this was successful and proved that the comm port was correct, USB cable worked, and the USB interface chip works

  • Tested the LEDs on the arduino they are all on and blinking as they should in response to things

Hi @aliccey. Please try this experiment and then report back with the results:


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


  1. Connect the Arduino board to your computer with a USB cable.
  2. Press and release the button on the Arduino board that is marked "RESET".

Now please reply here on the forum thread with the answers to the following question:

  • Did you see the LED marked "L" on the board blink immediately after you released the "RESET" button?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.