Can't upload sketch on MacOS Catalina - getting avrdude: stk500_recv():

I just upgraded my Mac from High Sierra to Catalina (10.15.6). On High Sierra everything was fine, I could program skecthes and upload them.

After upgrading to Catalina, I can't upload any sketch: after they pass compilation I always get the error

avrdude: stk500_recv(): programmer is not responding

and after 10 attempts upload fails. Things I've tried:

  • using always a good old Arduino board (UNO R3), thats was working before the upgrade to Catalina
  • tried a brand new UNO R3 board, same results
  • tried a brand new Arduino Nano board, same results
  • tried switching USB cable, just in case.... (at every test I tried the Get Board Info command and it reported Arduino's info, meaning that comms should work)
  • bring the same boards to a MacBook Pro that still has High Sierra and everything works fine

I understand that many users are banging their heads against this problem (not only on MacOS), now I joined the pack!

On many forums I've seen the advice to change processor from the tools menu, but I have no such option on my IDE (v. 1.8.13). There's Board and then Port with no Processor in the middle.

I would be extremely grateful if anyone that had the same issue could help me!

Hi,

I am using Catalina. I have Arduino 1.8.13 installed. Using a good old UNO R3 and it works fine.

I am suspecting the error messages during your upload session might give a clue. So, try cutting and pasting the contents of the little window at the bottom of the Arduino IDE when you have a failed upload attempt. It's a little tricky, but you'll figure it out; you basically will position your cursor at the bottom of the window, then click-drag up and to the left to get to the first line of the window, then release and use Command-C and Command-V to copy and paste that text.

Another thing which might be useful for diagnosis is to run this command in a Terminal window, and post the results:
[tt]    ls /dev/cu.*[/tt]

Hi,

thanks for your reply. Here below is the content of the output window

Typing ls /dev/cu.* from terminal returns

/dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodem3A201

Actually usbmodem3A201 is the port I'm using from IDE.

Let me know if I can provide further info.

Thanks a lot!

Arduino: 1.8.13 (Mac OS X), 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.
/Applications/Arduinos/Arduino 1.8.13.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduinos/Arduino 1.8.13.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/cu.usbmodem3A201 -b115200 -D -Uflash:w:/var/folders/fp/09hbsydn1ysgrz1gfv2_mclh0000gn/T/arduino_build_269863/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 "/Applications/Arduinos/Arduino 1.8.13.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/fulvio/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/cu.usbmodem3A201
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x73
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x74
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x61
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x72
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x74
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x2e
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x2e
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x0d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x0d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x0d

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.

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