Arduino-Mega-2560-avrdude-stk500v2_ReceiveMessage-timeout

Can anyone help me regarding this Arduino Mega 2560 issue where I cannot upload any sketches. I tried the Burn Bootloader using Arduino UNO as ISP through both ICSP pins and non-ICSP pins and it also says Successful. But when I try to connect and upload a sketch to my Mega it still says this error message: avrdude: stk500v2_ReceiveMessage(): timeout

I'm only uploading the Blink.ino sketch just to try if the board is working but it doesn't. Can some please confirm is the problem is hardware or software, because I also watche youtube videos and read other discussions but none of the solutions work for me.

Please help

Hi @roronoa-zoroark. It is possible for a short or external circuitry connected to the Arduino board to interfere with the upload process, causing this type of upload error.

Make sure the board is not sitting on anything conductive that could short the contacts on the bottom of the board. Make sure there isn't any conductive debris (e.g., strands of wire or component leads) on the board or on the surface the board is sitting on.

If you have a shield or any external circuitry or components connected to your Arduino board, try this experiment:

  1. Disconnect the USB cable of the Arduino board from your computer.
  2. Disconnect any shields, modules, external circuitry, etc. from your board.
  3. Connect the Arduino board to your computer with a USB cable.

Now try uploading a sketch to the board again. Does the upload succeed?

This experiment will determine whether the upload error was caused by interference from your external circuitry. If so, you can then focus your attention on identifying the specific problem with the circuit and resolving it.

Some additional details will be useful (I understand that this is a new board).

  1. Have you selected the correct port? Does the port disappear from the IDE (and your operating system) when you disconnect? If not, the port that you selected is not the Mega that is giving you the problems.
  2. What is your operating system?
  3. Which version of the IDE?

What are non-ICSP pins? You can only burn a bootloader via ICSP.

hello @ptillisch , I've already tried doing this many times but it still doesn't upload any. I also tried to use other computer to connect to my arduino mega 2560 but still doesn't work. and this problem can be observed in my 3 different units of arduino mega 2560.

hello @sterretje , I was able to select the correct port. Every time I connect my arduino it appears and when I disconnect it disappears. I am currently using a macbook but I have also tried connecting it on a windows but still it has the same result. The version of the IDE I'm currently using is this Arduino IDE 2.3.3, I was also able to try it using Arduino IDE 1.8.something but still, not working.

About the non-ICSP pins, I am pertaining to some solutions I've searched where one way is burning bootloader to non-ICSP pins. Aside from that, I've also tried to burn bootloader using ICSP pins and it says that it was successful yet uploading still doesn't work.

I'm going to ask you to provide the full verbose output from an upload attempt.


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


Please do this:

  1. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Uncheck the box next to Show verbose output during: compile in the "Preferences" dialog.
  3. Check the box next to Show verbose output during: ☐ upload.
  4. Click the "OK" button.
    The "Preferences" dialog will close.
  5. Attempt an upload, as you did before.
  6. Wait for the upload to fail.
  7. You will see a "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
  8. Open a forum reply here by clicking the "Reply" button.
  9. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block icon on toolbar
  10. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the error output from the upload into the code block.
  11. Move the cursor outside of the code block markup before you add any additional text to your reply.
  12. Click the "Reply" button to post the output.

Maybe you are referring to connecting the ISP programmer to pins 11, 12, and 13 on the Mega's female pin headers instead of to the pins on the ICSP header?

If so, it makes no difference how you connect the programmer to the board. The pins on the female headers and the pins on the ICSP header are electrically connected to the same pins on the ATmega2560 microcontroller. The same pins on the microcontroller are just broken out to multiple connectors on the board.

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