Go Down

Topic: avrdude: stk500_recv(): programmer is not responding (Read 80835 times) previous topic - next topic

bobbybell49

sorry my mistake I copied the wrong device name (into those parenthesis)- I am trying to use a ch340G based programmer - that's when I get the error.  When I use an FTDI based programmer or the standard USB to UNO programming cable - they work fine.

The company that provided the ch340g based programmer suggested I change the upload baudrate to 9600 from 115200.   That's why I asked where I might be able to change that setting in a config file.

CrossRoads

Ok, both the FTDI part (FT232) and the ch340G are not "programmers", they are just USB/Serial adapters. 

A Programmer connects to the ICSP pins and directly controls the memory of the device being programmed.

The FT232 and ch340G depend on the chip having a bootloader installed that can to talk the PC and then self-write their own memory.

If you do not have a bootloader installed, you will see the did not respond error,.
If you don't have a ch340G driver installed on the PC you may see a similar message,
When the ch340G is plugged in, do you get the windows boop-boop and see it show up in the Device Manager/Ports?
Seeing it appear as COM3 is good indication to me that there is no driver. When I have no USB device connected, I still see COM3 in the IDE.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

bobbybell49

OK sorry for using the wrong words to describe these parts... I've done some additional testing with each of the USB/Serial devices...

I wrote a simple program that flashes an LED connected to pin D6.

When I plug in the FT232 device to my computer I do get the windows boop-boop sound and in Windows Device Manager - it shows up as USB Serial Port (COM5) and within the Arduino IDE I can see COM5 as a port.  I select that port and compile and upload the program to the UNO board. No problem - code loads and operates ok..   

The wiring from the FT232 device and from the CH340 device to the Arduino UNO are the same.

GND --> GND
VCC --> VIN
RX --> TX
TX --> RX
RST --> RESET

When I plug in the CH340 device to my computer I do get the Windows boop-boop sound and in Windows Device Manager - it shows up as USB Serial CH340 (COM3).  I have deleted and reloaded the drivers two times so I'm fairly certain the drivers are loaded.   And within the Arduino IDE I can now see COM3 and use that to attempt to upload the same simple program to the UNO.  That's when I get the 'programmer is not responding' sequence of message (10 of 10)...

In the window at the bottom of the IDE as the uploading begins, I see a line that shows Using Port:  COM3 and overriding Baud Rate: 115200

 
The mfg of the ch340 based device suggested setting the baud rate to 9600 instead of 115200 for the upload process. 

So my question remains - is there a way to change the upload baud rate from 115200 to 9600 in some configuration, preferences or other file used by the Arduino IDE?


CrossRoads

You could try changing the speed in boards.txt for  the board type you are using.
It's in /your arduino path/hardware/arduino/avr folder.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

lakshamanan7

#139
Oct 04, 2020, 09:16 am Last Edit: Oct 04, 2020, 09:21 am by lakshamanan7
Code: [Select]
Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno"

Sketch uses 924 bytes (2%) of program storage space. Maximum is 32256 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\Lenovo\AppData\Local\Temp\arduino_build_687670/Blink.ino.hex:i



avrdude: Version 6.3-20190619

         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         Copyright (c) 2007-2014 Joerg Wunsch



         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"



         Using Port                    : COM3

         Using Programmer              : arduino

         Overriding Baud Rate          : 115200

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x94

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x94

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x94

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x94

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x94

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x94

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x94

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x94

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x94

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x94



avrdude done.  Thank you.



Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


I am just trying the basic blink program, with nothing other connected to other pins

1) I tried updating the drivers,
2) the port and board are fine it says arduino uno in board info
3) tried the loop back test, by connecting TX and RX pins and reset and gnd , what I typed in the serial monitor was echoed back with a flash of led in arduino when send was pressed
4) Tried switching of the scanning and firewall temporarily too

Not sure what the error is, Can anyone please help me with this. Thank you very much for your time.

pert

Can anyone please help me with this. Thank you very much for your time.
It sounds like you've eliminated all the most common causes. The next thing to try is burning the bootloader. This will require an ISP programmer. If you don't own one, you can use a spare Arduino board as an "Arduino as ISP" by following this tutorial:
https://www.arduino.cc/en/Tutorial/BuiltInExamples/ArduinoISP

lakshamanan7

It sounds like you've eliminated all the most common causes. The next thing to try is burning the bootloader. This will require an ISP programmer. If you don't own one, you can use a spare Arduino board as an "Arduino as ISP" by following this tutorial:
https://www.arduino.cc/en/Tutorial/BuiltInExamples/ArduinoISP
Thank you... will try it, currently having only one arduino uno, so will try out soon, Any idea why is this error? the one that is giving issues is a new one

Arpith_Anto123

Code: [Select]
Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno"

Sketch uses 924 bytes (2%) of program storage space. Maximum is 32256 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xff



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


This happens even when I change ports. What can I do?

pert

Code: [Select]
avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xff

Remove any connections to pins 0 and 1 on your Arduino board. These pins are used for communication with your computer, including uploads. Connecting anything to these pins can interfere with uploads.

Make sure you have the correct board selected from the Tools > Board menu.

Make sure you have selected the port of your Arduino board from the Tools > Port menu.

Sometimes the port will be labeled with the board name in the menu. Other times it will not. If you don't know which port is your Arduino board, you can find it like this:
  • Unplug your Arduino board from the computer.
  • Tools > Port
  • Note the ports, if any, listed in the menu.
  • Close the Tools menu. The ports list is only updated when the Tools menu is re-opened, so this step is essential.
  • Plug your Arduino board into the computer.
  • Tools > Port - The new port listed in the menu is your Arduino board.

cloofsiu

Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno"


Sketch uses 29928 bytes (92%) of program storage space. Maximum is 32256 bytes.


Global variables use 1555 bytes (75%) of dynamic memory, leaving 493 bytes for local variables. Maximum is 2048 bytes.


Low memory available, stability problems may occur.


C:\Users\蕭\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\蕭\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -PCOM9 -b115200 -D -Uflash:w:C:\Users\蕭\AppData\Local\Temp\arduino_build_268594/grblUpload.ino.hex:i 






avrdude: Version 6.3-20190619


         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/


         Copyright (c) 2007-2014 Joerg Wunsch






         System wide configuration file is "C:\Users\��\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"






         Using Port                    : COM9


         Using Programmer              : arduino


         Overriding Baud Rate          : 115200


         AVR Part                      : ATmega328P


         Chip Erase delay              : 9000 us


         PAGEL                         : PD7


         BS2                           : PC2


         RESET disposition             : dedicated


         RETRY pulse                   : SCK


         serial program mode           : yes


         parallel program mode         : yes


         Timeout                       : 200


         StabDelay                     : 100


         CmdexeDelay                   : 25


         SyncLoops                     : 32


         ByteDelay                     : 0


         PollIndex                     : 3


         PollValue                     : 0x53


         Memory Detail                 :






                                  Block Poll               Page                       Polled


           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack


           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------


           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff


           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff


           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00


           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00


           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00


           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00


           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00


           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00






         Programmer Type : Arduino


         Description     : Arduino


         Hardware Version: 3


         Firmware Version: 4.4


         Vtarget         : 0.3 V


         Varef           : 0.3 V


         Oscillator      : 28.800 kHz


         SCK period      : 3.3 us






avrdude: AVR device initialized and ready to accept instructions






Reading | ################################################## | 100% 0.00s






avrdude: Device signature = 0x1e950f (probably m328p)


avrdude: reading input file "C:\Users\��\AppData\Local\Temp\arduino_build_268594/grblUpload.ino.hex"


avrdude: writing flash (29928 bytes):






Writing | ###############################################


avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x00


#avrdude: stk500_cmd(): programmer is out of sync


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_recv(): programmer is not responding


## | 100% 254.31s






avrdude: 29928 bytes of flash written


avrdude: verifying flash memory against C:\Users\��\AppData\Local\Temp\arduino_build_268594/grblUpload.ino.hex:


avrdude: load data flash data from input file C:\Users\��\AppData\Local\Temp\arduino_build_268594/grblUpload.ino.hex:


avrdude: input file C:\Users\��\AppData\Local\Temp\arduino_build_268594/grblUpload.ino.hex contains 29928 bytes


avrdude: reading on-chip flash data:






Reading | ################################################## | 100% 3.66s






the selected serial port 


 does not exist or your board is not connected


Invalid library found in C:\Program Files (x86)\Arduino\libraries\build: no headers files (.h) found in C:\Program Files (x86)\Arduino\libraries\build


Invalid library found in C:\Program Files (x86)\Arduino\libraries\doc: no headers files (.h) found in C:\Program Files (x86)\Arduino\libraries\doc


avrdude: verifying ...


avrdude: verification error, first mismatch at byte 0x7000


         0xff != 0xfe


avrdude: verification error; content mismatch






avrdude done.  Thank you.










This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

kenshiro00900

Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: "Arduino Uno"


Sketch uses 2658 bytes (8%) of program storage space. Maximum is 32256 bytes.


Global variables use 195 bytes (9%) of dynamic memory, leaving 1853 bytes for local variables. Maximum is 2048 bytes.


C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avrdude -CC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM4 -b115200 -D -Uflash:w:C:\Users\ahmed\AppData\Local\Temp\arduino_build_893418/BLUETOOTH_CAR.ino.hex:i 






avrdude: Version 6.3-20190619


         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/


         Copyright (c) 2007-2014 Joerg Wunsch






         System wide configuration file is "C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr/etc/avrdude.conf"






         Using Port                    : COM4


         Using Programmer              : arduino


         Overriding Baud Rate          : 115200


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x85


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x85


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x85


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x85


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x85


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x85


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x85


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x85


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x85


avrdude: stk500_recv(): programmer is not responding


avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x85






avrdude done.  Thank you.






Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.






This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

pert

Code: [Select]
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x85

Remove any connections to pins 0 and 1 on your Arduino board. These pins are used for communication with your computer, including uploads. Connecting anything to these pins can interfere with uploads.

Make sure you have the correct board selected from the Tools > Board menu.

Make sure you have selected the port of your Arduino board from the Tools > Port menu.

Sometimes the port will be labeled with the board name in the menu. Other times it will not. If you don't know which port is your Arduino board, you can find it like this:
  • Unplug your Arduino board from the computer.
  • Tools > Port
  • Note the ports, if any, listed in the menu.
  • Close the Tools menu. The ports list is only updated when the Tools menu is re-opened, so this step is essential.
  • Plug your Arduino board into the computer.
  • Tools > Port - The new port listed in the menu is your Arduino board.

pastu64356

Code: [Select]
Arduino: 1.8.14 Hourly Build 2020/10/09 12:33 (Windows 10), Board: "Arduino Pro or Pro Mini, ATmega328P (5V, 16 MHz)"

Sketch uses 21672 bytes (70%) of program storage space. Maximum is 30720 bytes.

Global variables use 367 bytes (17%) of dynamic memory, leaving 1681 bytes for local variables. Maximum is 2048 bytes.

C:\Users\iii\Downloads\Compressed\arduino-nightly-windows\arduino-nightly\hardware\tools\avr/bin/avrdude -CC:\Users\iii\Downloads\Compressed\arduino-nightly-windows\arduino-nightly\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM5 -b57600 -D -Uflash:w:C:\Users\iii\AppData\Local\Temp\arduino_build_827087/Arduino_OLED_temperature.ino.hex:i



avrdude: Version 6.3-20190619

         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         Copyright (c) 2007-2014 Joerg Wunsch



         System wide configuration file is "C:\Users\iii\Downloads\Compressed\arduino-nightly-windows\arduino-nightly\hardware\tools\avr/etc/avrdude.conf"



         Using Port                    : COM5

         Using Programmer              : arduino

         Overriding Baud Rate          : 57600

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x9a

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x9a

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x9a

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x9a

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x9a

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x9a

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x9a

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x9a

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x9a

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x9a



avrdude done.  Thank you.



Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.



pert

Code: [Select]
avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x9a

Remove any connections to pins 0 and 1 on your Arduino board. These pins are used for communication with your computer, including uploads. Connecting anything to these pins can interfere with uploads.

Make sure you have the correct board selected from the Tools > Board menu.

Make sure you have selected the port of your Arduino board from the Tools > Port menu.

Sometimes the port will be labeled with the board name in the menu. Other times it will not. If you don't know which port is your Arduino board, you can find it like this:
  • Unplug your Arduino board from the computer.
  • Tools > Port
  • Note the ports, if any, listed in the menu.
  • Close the Tools menu. The ports list is only updated when the Tools menu is re-opened, so this step is essential.
  • Plug your Arduino board into the computer.
  • Tools > Port - The new port listed in the menu is your Arduino board.

rustycage55

#149
Nov 14, 2020, 05:52 am Last Edit: Nov 14, 2020, 05:53 am by rustycage55
Hello everyone, i had the same problem with an Arduino nano board, been looking a whole week for a solution then this came across my sight and worked for me. I hope this works for you as well because i know how frustrating it is  :o.
I used the old bootloader option in the tools menu.
Use these steps to upload any small sketch, Blink example worked for me.

  • Power off the board (I disconnected the USB cable from computer)
  • Press and hold the reset button
  • Connect USB cable (keep holding the reset button)
  • Click "Upload Sketch"
  • Wait a second or two until Arduino software says "Uploading..." in the status bar
  • Release the reset button




Go Up