Avrdude: stk500_recv(): programmer is not responding

Keep getting the above error after my sketch was Verified and Compiled then Uploaded. Skectch Code:

void setup() {
}
void loop() {
}

I have an original UNO board from 2015.
Board info:
Arduino Uno
VID: 0x2341
PID: 0x0043
SN: 6xxxxx...
Running IDE 2.6.x
Board listed: Arduino UNO from Arduino AVR dropdown selection
Port: dev/cu.usbmodem101
PC: MacBook Air M2
MacOS: MacOS Tahoe 26

No matter what I do I keep getting:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
that times out as error 1

Hi @natoanjou. I'm going to ask you to provide the full verbose output from an upload attempt.


:red_exclamation_mark: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Uncheck the box next to Show verbose output during: compile in the "Preferences" dialog.
  3. Check the box next to Show verbose output during: ☐ upload.
  4. Click the "OK" button.
    The "Preferences" dialog will close.
  5. Attempt an upload, as you did before.
  6. Wait for the upload to fail.
  7. You will see an "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
  8. Open a reply here on this forum topic by clicking the "Reply" button.
  9. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
  10. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the error output from the upload into the code block.
  11. Move the cursor outside of the code block markup before you add any additional text to your reply.
  12. Click the "Reply" button to publish the post.

ptillisch

Thanks for getting back to me so quickly.
I added my code below after I changed the check boxes
I did not get an error. I realize now that I was only using "Upload Using Programmer" set as Programmer: Arduino as ISP.
Once I selected only "Upload" the program ran and activated my circuit.

One line I noticed in each was:

User configuration file is "/Users/nato/.avrduderc"
User configuration file does not exist or is not a regular file

Error on using “Upload Using Programmer”

Sketch uses 944 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.
"/Users/nato/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude" "-C/Users/nato/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -cstk500v1 -P/dev/cu.usbmodem101 -b19200 "-Uflash:w:/Users/nato/Library/Caches/arduino/sketches/F2AE103EAE25E692A6DF39F408FF579F/sketch_nov10a_ledblink.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 "/Users/nato/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
         User configuration file is "/Users/nato/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/cu.usbmodem101
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

Failed programming: uploading error: exit status 1

Successful run using “Upload”

Sketch uses 944 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.
"/Users/nato/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude" "-C/Users/nato/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-P/dev/cu.usbmodem101" -b115200 -D "-Uflash:w:/Users/nato/Library/Caches/arduino/sketches/F2AE103EAE25E692A6DF39F408FF579F/sketch_nov10a_ledblink.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 "/Users/nato/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
         User configuration file is "/Users/nato/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/cu.usbmodem101
         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 "/Users/nato/Library/Caches/arduino/sketches/F2AE103EAE25E692A6DF39F408FF579F/sketch_nov10a_ledblink.ino.hex"
avrdude: writing flash (944 bytes):

Writing | ################################################## | 100% 0.17s

avrdude: 944 bytes of flash written

avrdude done.  Thank you.


Great news! Thanks for taking the time to post an update.

This is normal and expected. The AVRDUDE tool that is used for uploading compiled sketches to the UNO R3 board uses a configuration stored in a special file. The tool can be configured in two different ways:

  • via the configuration file stored under the user folder, which it will use automatically if present
  • via the configuration file at the path specified via the command line argument

The message is telling you that it did not find the configuration file under the user folder. However, this is not a problem because the command Arduino IDE invokes to perform the upload specifies the path of the appropriate configuration:

So all is well. Although the ability to have an automatically detected configuration file is useful when working with the AVRDUDE tool directly from the command line, it would actually be a bad thing in this usage since the configuration file provided by Arduino IDE is carefully verified as appropriate for the specific version of AVRDUDE and board that happens to be used for the upload (which might change depending on which board you have selected in Arduino IDE, and when you update the boards platforms via the Arduino IDE Boards Manager, whereas an arbitrary configuration file you place in your user directory might not contain the right configuration for a given upload.

Thanks for the heads up on the .avrdude.conf. I placed in my user folder but left it all commented out. If I need in the future I'll have a copy.
Regards