Problem Uploading to Board

I am running Windows 10. My board is an Arduino nano. It keeps saying "A problem occurred while uploading to board"

Arduino: 1.8.12 (Windows Store 1.8.33.0) (Windows 10), Board: "Arduino Nano, ATmega328P (Old Bootloader)"

Using Port : COM7
Using Programmer : arduino
Overriding Baud Rate : 57600
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x20

avrdude done. Thank you.

An error occurred while uploading the sketch

Are you sure you selected the correct port in the tools tab?

Did it ever work? Or is this the first time that you tried it?

Have you tried the ‘normal’ 328P option?

I have them on the right board and port. And I have tried all processing chips.

if you dont use exteral programmer, then select "tools/programmer/AVRISP mkII", and upload using the "right arrow icon" -> or the command "sketch/upload" (short: Cntrl+U)

That did not work either, but thank you.

GRuser:
if you dont use exteral programmer, then select "tools/programmer/AVRISP mkII"

The Tools > Programmer menu selection is only used when you do a Tools > Burn Bootloader or Sketch > Upload Using Programmer. When you are doing a normal upload, it makes absolutely no difference which programmer is selected.

@ultrasonicBlaster

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.


Please answer @sterretje's question:

Did it ever work? Or is this the first time that you tried it?

I don't see anyone giving the solution for this and similar issues on the forums.

In my case I am using very cheap 5 Pin CP2102 USB to TTL. I have one "good" one, and one "bad" one.

I have 20+ Pro Mini 5v 16MHz.

The "bad CP2102" is outputting 4.7 volts. This drops to 4.3v when reading after flashing.

The "good" one is outputting 4.8v and drops to 4.6v when reading. This has intermittent such errors like "out of sync" or "programmer not responding".

Fix in my case was to use an external 5v desktop power supply, set to deliver 5v up to 1A.

CP2102 pins used are GND, Tx, Rx
Tx->Rx
Rx->Tx

Pro Mini VCC connected to PSU 5v 1A
The 3 GND connected together.

Hi guys:
I think I have the same problem....

Arduino:1.8.12 (Mac OS X), Tarjeta:"Arduino Uno WiFi Rev2, None (ATMEGA4809)"