Arduino install started failing avrdude?

When I first got my dev kit, I was able to install games. Then a while later, I installed avrdude via homebrew (mac) to load a hex file.

And now, I am getting errors from arduino related to avrdude. I have already tried:

  1. Uninstalling/reinstalling arduino
  2. Plugging my dev blink into all of my usb ports
  3. removing battery from my dev blink and running off usb power.

I can note, that re-installing arduino did not wipe out any of my library data, in other words, all of my blinks boards were still registered in arduino ide.

But at this point, hoping someone can maybe make sense of this error message that occurs when I tried to upload a basic game to my blink.

Arduino: 1.8.13 (Mac OS X), Board: "Blink"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/hunterp/Library/Arduino15/packages -hardware /Users/hunterp/Documents/Arduino/hardware -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/hunterp/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/hunterp/Documents/Arduino/libraries -fqbn=move38:avr:blink -ide-version=10813 -build-path /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966 -warnings=none -build-cache /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_cache_240152 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Users/hunterp/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/Users/hunterp/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avr-gcc.path=/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -verbose /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/untitled1043555958.tmp/sketch_jan26a/sketch_jan26a.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/hunterp/Library/Arduino15/packages -hardware /Users/hunterp/Documents/Arduino/hardware -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/hunterp/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/hunterp/Documents/Arduino/libraries -fqbn=move38:avr:blink -ide-version=10813 -build-path /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966 -warnings=none -build-cache /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_cache_240152 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Users/hunterp/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/Users/hunterp/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avr-gcc.path=/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -verbose /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/untitled1043555958.tmp/sketch_jan26a/sketch_jan26a.ino
Using board 'blink' from platform in folder: /Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0
Using core 'blinklib' from platform in folder: /Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0
Detecting libraries used...
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega168pb -DF_CPU=8000000L -DARDUINO=10813 -DARDUINO_AVR_BLINK -DARDUINO_ARCH_AVR -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/cores/blinklib -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/variants/standard /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/sketch/sketch_jan26a.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Generating function prototypes...
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega168pb -DF_CPU=8000000L -DARDUINO=10813 -DARDUINO_AVR_BLINK -DARDUINO_ARCH_AVR -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/cores/blinklib -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/variants/standard /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/sketch/sketch_jan26a.ino.cpp -o /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/preproc/ctags_target_for_gcc_minus_e.cpp -DARDUINO_LIB_DISCOVERY_PHASE
/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega168pb -DF_CPU=8000000L -DARDUINO=10813 -DARDUINO_AVR_BLINK -DARDUINO_ARCH_AVR -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/cores/blinklib -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/variants/standard /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/sketch/sketch_jan26a.ino.cpp -o /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/sketch/sketch_jan26a.ino.cpp.o
Compiling libraries...
Compiling core...
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc -c -g -x assembler-with-cpp -flto -MMD -mmcu=atmega168pb -DF_CPU=8000000L -DARDUINO=10813 -DARDUINO_AVR_BLINK -DARDUINO_ARCH_AVR -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/cores/blinklib -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/variants/standard /Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/cores/blinklib/startup.S -o /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/startup.S.o
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega168pb -DF_CPU=8000000L -DARDUINO=10813 -DARDUINO_AVR_BLINK -DARDUINO_ARCH_AVR -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/cores/blinklib -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/variants/standard /Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/cores/blinklib/blinklib.cpp -o /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/blinklib.cpp.o
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega168pb -DF_CPU=8000000L -DARDUINO=10813 -DARDUINO_AVR_BLINK -DARDUINO_ARCH_AVR -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/cores/blinklib -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/variants/standard /Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/cores/blinklib/sp.cpp -o /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/sp.cpp.o
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega168pb -DF_CPU=8000000L -DARDUINO=10813 -DARDUINO_AVR_BLINK -DARDUINO_ARCH_AVR -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/cores/blinklib -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/variants/standard /Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/cores/blinklib/Print.cpp -o /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/Print.cpp.o
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega168pb -DF_CPU=8000000L -DARDUINO=10813 -DARDUINO_AVR_BLINK -DARDUINO_ARCH_AVR -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/cores/blinklib -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/variants/standard /Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/cores/blinklib/Timer.cpp -o /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/Timer.cpp.o
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega168pb -DF_CPU=8000000L -DARDUINO=10813 -DARDUINO_AVR_BLINK -DARDUINO_ARCH_AVR -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/cores/blinklib -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/variants/standard /Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/cores/blinklib/Serial.cpp -o /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/Serial.cpp.o
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega168pb -DF_CPU=8000000L -DARDUINO=10813 -DARDUINO_AVR_BLINK -DARDUINO_ARCH_AVR -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/cores/blinklib -I/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/variants/standard /Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/cores/blinklib/main.cpp -o /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/main.cpp.o
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc-ar rcs /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/core.a /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/startup.S.o
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc-ar rcs /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/core.a /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/Print.cpp.o
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc-ar rcs /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/core.a /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/Serial.cpp.o
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc-ar rcs /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/core.a /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/Timer.cpp.o
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc-ar rcs /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/core.a /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/blinklib.cpp.o
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc-ar rcs /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/core.a /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/main.cpp.o
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc-ar rcs /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/core.a /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/sp.cpp.o
Archiving built core (caching) in: /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_cache_240152/core/core_move38_avr_blink_c74510c3790e827bfdc8c243040bd511.a
Linking everything together...
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc -w -Os -g -flto -mrelax -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega168pb -T /Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/linkscripts/avr5.xn -nostartfiles -o /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/sketch_jan26a.ino.elf /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/sketch/sketch_jan26a.ino.cpp.o /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/core/core.a -L/var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966 -lm
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/sketch_jan26a.ino.elf /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/sketch_jan26a.ino.eep
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-objcopy --change-addresses 0x1700 -O ihex -R .eepromm /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/sketch_jan26a.ino.elf /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/sketch_jan26a.ino.hex
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-size -A /var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/sketch_jan26a.ino.elf
Sketch uses 1878 bytes (31%) of program storage space. Maximum is 5888 bytes.
Global variables use 690 bytes (67%) of dynamic memory, leaving 334 bytes for local variables. Maximum is 1024 bytes.
/Users/hunterp/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude -C/Users/hunterp/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf -B 5 -v -patmega168pb -cusbtiny -Uflash:w:/var/folders/9v/7rxkgq6d0r79d_rnyf03swdm0000gn/T/arduino_build_492966/sketch_jan26a.ino.hex:i -Uflash:w:/Users/hunterp/Library/Arduino15/packages/move38/hardware/avr/1.2.0/bootloaders/BlinkBIOS.hex:i -u 

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/hunterp/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
         User configuration file is "/Users/hunterp/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : usb
         Using Programmer              : usbtiny
         Setting bit clk period        : 5.0
avrdude: usbdev_open(): Found USBtinyISP, bus:device: 020:050
         AVR Part                      : ATmega168PB
         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        512    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     16384  128    128  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 : USBtiny
         Description     : USBtiny simple USB programmer, https://learn.adafruit.com/usbtinyisp
avrdude: programmer operation not supported

avrdude: Setting SCK period to 5 usec
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.

An error occurred while uploading the sketch

Just guessing here, but did you try different USB cables/ports? Also note that there is probably a .arduino15 (or something like that) in your home folder that you also need to nuke for a full uninstall. It might be a different folder in MacOS though (I use Linux).

1 Like

On windows, this error sometimes indicates that either the cable going from the programmer to the blink is backwards or not making a good connection, or the blink is not getting power (“target power” switch on programmer should be “on”).

1 Like

HALLELUJAH. Cable on the blinks needed to be reversed.

2 Likes