similar error message while trying to upload code using a ch30 based programmer and standard Arduino UNO... below is the verbose upload messages. I've been told to make the baud rate for upload 9600 - but can't find 'the' config file that causes that change.
Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: "Arduino Uno"
Sketch uses 1992 bytes (6%) of program storage space. Maximum is 32256 bytes.
Global variables use 194 bytes (9%) of dynamic memory, leaving 1854 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 -PCOM3 -b115200 -D -Uflash:w:C:\Users\bobbe\AppData\Local\Temp\arduino_build_979322/sketch_sep23a.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 : 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=0xa4
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xa4
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xa4
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xa4
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xa4
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xa4
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xa4
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xa4
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xa4
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xa4
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.
bobbybell49:
I've been told to make the baud rate for upload 9600
Unless you have a modified bootloader, this is wrong. Most likely they were thinking of the baud rate of the Serial Monitor, which has nothing to do with uploading. So forget about that advice for now (and probably forever).
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.
The serial monitor works - I downloaded code (using the std usb programming cable for the UNO) and that code writes to the serial port every half second.
I'm just not able to upload new code via this connection...
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.
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.
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.
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?