Avrdude: Why stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

I get this message for 10 attempts and then exit code 1.
I use a standard Arduino Uno and the IDE identify my board and com port and I can get board info so obviously it is correctly connected,
Also in the serial monitor I se text ouput from an old sketch on it, so the board is working
I use IDE 2.04 on a Windows 10 system

After enabling verbose during upload I got this

type or paste code here
Sketch uses 2272 bytes (7%) of program storage space. Maximum is 32256 bytes.
Global variables use 226 bytes (11%) of dynamic memory, leaving 1822 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\janf5\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\janf5\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM5" -b115200 -D "-Uflash:w:C:\Users\janf5\AppData\Local\Temp\arduino\sketches\895BC61B7A91D07DF73BC049A556DC73/sketch_mar21a.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\janf5\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

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

avrdude done.  Thank you.

Failed uploading: uploading error: exit status 1```

I get almost the same output if no board is available at the selected serial port. Is it possible that the running sketch was uploaded using a programmer? So there might be no bootloader which would explain the output you get.

No I have only used the standard way of bootloader

If I unplug the board I get something comletely differen. Only this message
Failed uploading: no upload port provided

You get that if no serial port is available. But if you connect a USB serial adapter with no board connected you get a serial port but that port won't respond to any command.

Do you own a programmer? I would try to reprogram the bootloader.

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