Programmer is Not Responding Arduino - avrdude: stk500v2_getsync() | Solution

Hey! Welcome to SheeBot.

We know you are having some serious problem with your Arduino Mega. You are trying, again and again, to upload sketch(program) through the USB port but it is not working. Programmer is not responding in your arduino and giving some error like avrdude: stk500v2_getsync(). Now you are thinking that it will not work again. You don't want to spend a few more bucks on buying new Arduino Mega. You are feeling that you are stuck in a bad situation right now.

But SheeBot have good news for you. Yes, the good news that is you can upload your program in another way. Yes, you heard right. You can do this by using the SPI(Serial Peripheral Interface) connection instead of using a USB connection. 

First of all, we have to see what type of error we are getting. In our case it is like the error given below:
Error: Programmer is Not Responding Arduino
(avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
An error occurred while uploading the sketch)

Error: Programmer is not Respondingin Arduino
Error

Well, you can see we are getting timeout error while connecting to the programmer. 
Okay, Let's go to the solution without wasting your precious time.
Solution:
To solve this problem you need to have these extra things with you:
1. Arduino Uno
Arduino
Arduino

2. 6 Jumper wires Male to Male

Jumper Wires
Jumper Wires: Male to Male

That's all you need to upload your sketch on Arduino Mega.

Note: SheeBot is not going to tell you detail of SPI connection. (MOSI) etc. Just follow the steps to resolve your problem.

Steps to Follow!
1. First, you have to do wiring like this using jumper wires. 

Connection Wires
Wires Connection
  1.    Uno Pin    -     Mega Pin
  2.    5V            -      5V
  3.    GND        -      GND
  4.    D 10         -      Reset
  5.    D 11         -      D 51
  6.    D 12         -      D 50
  7.    D 13         -      D 52


2. Now connect the Arduino Uno with PC(Computer or Laptop) using USB Port of Arduino Uno.

3. Now goto Arduino IDE, open Tools menu, Set Board as Arduino/ Genuino Uno, Select port on which Arduino Uno connected, Set Programmer as Arduino as ISP.
Step 3
Step 3


4. Now open Example sketch ArduinoISP.

Step 4
Step 4

5. Upload this ArduinoISP sketch.

Step 5
Step 5


6. After uploading, open Tools menu, set Board as Arduino/Genuino Mega or Mega 2560, set Processor as ATMEGA 2560 (MEGA 2560), Don't change the Port, Keep it same what it was in the previous steps. Now select Burn Bootloader.
Step 6
Step 6


7. Now open Blink Sketch from examples.

Step 7
Step 7

8. Goto Sketch menu select Upload Using Programmer.
Step 8
Step 8

The sketch will upload and you will see the blinking program running on your Arduino Mega. Now you can upload any sketch as you wish without repeating these steps every time. Just Open your sketch and upload it using Upload Using Programmer option. This is the only way you can solve this problem. Maybe in the future, you will have other options too.

Check this video given below to see uploaded Blink Sketch example on Arduino Mega using the steps given above.



You will now able to upload sketch/programs on Arduino Mega. If you are still facing any problem then comment below. SheeBot will try their best to resolve your problems. Hope your Error Programmer is Not Responding in Arduino will resolve.
Disqus Comments