[SOLVED]no programmer has been specified on the command line or the config file

SEE POST 17 FOR SOLUTION

I tried uploading many sketches including this simple Blink example sketch, and I get this error message:

avrdude: no programmer has been specified on the command line or the config file
         Specify a programmer using the -c option and try again

Arduino IDE 1.6.9
Mac OS X El Capitan
Version 10.11.3

What does this mean exactly and what can I do to fix this?

Thanks,

Marco

Have you tried a previous version of the IDE?
Have you tried another Arduino?
Are you setting the serial port and the board type?
Is your USB cable OK?
Does the loop back test work?

.

LarryD:
Have you tried a previous version of the IDE?

No, but why would 1.6.9 not work suddenly?

LarryD:
Have you tried another Arduino?

yes, with no luck

LarryD:
Are you setting the serial port and the board type?

yes

LarryD:
Is your USB cable OK?

yes

LarryD:
Does the loop back test work?

yes

I tried using Arduino Create and got a message over 9000 characters...

Error Messages.txt (22.4 KB)

"No, but why would 1.6.9 not work suddenly?"
Why:
Maybe something got corrupted on the installation.

Does the Arduino show up in 'Device Manager' "I use a PC"

I keep 1.06 around "just in case".

Edit:
I assume even the simple Blink program fails too.

.

LarryD:
"No, but why would 1.6.9 not work suddenly?"
Why:
Maybe something got corrupted on the installation.

Does the Arduino show up in 'Device Manager' "I use a PC"

I keep 1.06 around "just in case".

Edit:
I assume even the simple Blink program fails too.

.

Yep. I also have Arduino 1.06 and it gives me an error: Program not responding.

I did some reading and it looks like the issue is the compatibility of "Arduino AVR Boards" and the IDE. I have only found solutions to 1.6.8 and 1.6.7 so it looks like I will have to unfortunately downgrade to one of those. I realize why this happened though. I always get a message saying to update my Boards and Libraries, so I did ("Arduino AVR Boards" was something I updated). If only I knew what version I upgraded from.

Keep us updated if you solve this.

.

This page seems to have a solution but lucky for me, all I get are more error messages: ( IDE 1.6.8 and AVR 1.6.10 )

Arduino: 1.6.8 (Mac OS X), Board: "Arduino/Genuino Uno"

/Users/Marco/Downloads/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware "/Users/Marco/Downloads/Arduino.app/Contents/Java/hardware" -hardware "/Users/Marco/Library/Arduino15/packages" -tools "/Users/Marco/Downloads/Arduino.app/Contents/Java/tools-builder" -tools "/Users/Marco/Downloads/Arduino.app/Contents/Java/hardware/tools/avr" -tools "/Users/Marco/Library/Arduino15/packages" -built-in-libraries "/Users/Marco/Downloads/Arduino.app/Contents/Java/libraries" -libraries "/Users/Marco/Documents/Arduino/libraries" -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10608 -build-path "/var/folders/4w/b3f5dh255ys1f54r9f6089zr0000gq/T/buildb8fe58195a4222e9c09c719ee54b02aa.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/Users/Marco/Desktop/Arduino.app/Contents/Java/examples/01.Basics/Blink/Blink.ino"
/Users/Marco/Downloads/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware "/Users/Marco/Downloads/Arduino.app/Contents/Java/hardware" -hardware "/Users/Marco/Library/Arduino15/packages" -tools "/Users/Marco/Downloads/Arduino.app/Contents/Java/tools-builder" -tools "/Users/Marco/Downloads/Arduino.app/Contents/Java/hardware/tools/avr" -tools "/Users/Marco/Library/Arduino15/packages" -built-in-libraries "/Users/Marco/Downloads/Arduino.app/Contents/Java/libraries" -libraries "/Users/Marco/Documents/Arduino/libraries" -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10608 -build-path "/var/folders/4w/b3f5dh255ys1f54r9f6089zr0000gq/T/buildb8fe58195a4222e9c09c719ee54b02aa.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/Users/Marco/Desktop/Arduino.app/Contents/Java/examples/01.Basics/Blink/Blink.ino"
Build options changed, rebuilding all
"/Users/Marco/Library/Arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10608 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/Users/Marco/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/Marco/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/4w/b3f5dh255ys1f54r9f6089zr0000gq/T/buildb8fe58195a4222e9c09c719ee54b02aa.tmp/sketch/Blink.ino.cpp" -o "/dev/null"
"/Users/Marco/Library/Arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10608 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/Users/Marco/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/Marco/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/4w/b3f5dh255ys1f54r9f6089zr0000gq/T/buildb8fe58195a4222e9c09c719ee54b02aa.tmp/sketch/Blink.ino.cpp" -o "/dev/null"
"/Users/Marco/Library/Arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10608 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/Users/Marco/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/Marco/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/4w/b3f5dh255ys1f54r9f6089zr0000gq/T/buildb8fe58195a4222e9c09c719ee54b02aa.tmp/sketch/Blink.ino.cpp" -o "/var/folders/4w/b3f5dh255ys1f54r9f6089zr0000gq/T/buildb8fe58195a4222e9c09c719ee54b02aa.tmp/preproc/ctags_target_for_gcc_minus_e.cpp"
fork/exec /Users/Marco/Library/Arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino2/bin/avr-g++: no such file or directory
Error compiling for board Arduino/Genuino Uno.

Well I solved the problem in the OP, but I still have this lingering issue in post 7. Could somebody go to Library/Arduino15/packages/arduino/tools/avr-gcc4.8.1-arduino2/bin/avr-g++ and tell me what kind of file it is? Could someone attach it?

Are you on a Apple computer?

.

LarryD:
Are you on a Apple computer?

.

yes i am

I use PC, maybe some fine Apple person can help out.

.

please check the Boards are up to date

J-M-L:
please check the Boards are up to date

Me updating a board is what caused this to begin with.

I always keep original zip files I download, just in case.

I assume you no longer have the zip file.

.

LarryD:
I always keep original zip files I download, just in case.

I assume you no longer have the zip file.

.

I do have the zip file. I tried uninstalling and reinstalling the IDE, and still no luck. I can't even compile a sketch.

Better yet, could someone on Mac attach their entire Contents file? Or would that be too big?

Problem:

avrdude: no programmer has been specified on the command line or the config file
         Specify a programmer using the -c option and try again

Solutions:

  1. Easy Way: Downgrade to IDE 1.6.8 and use Arduino AVR Boards 1.6.10.

  2. Hard(er) Way [MAC ONLY]: (Use whatever IDE you want with this) This requires a command line in the Terminal. When you first go open terminal navigate to

cd /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin

Then, enter this into your terminal:

./avrdude "-C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf" -v  -patmega328p -carduino "-P/dev/tty.usbmodem1411" -b115200 -D "-Uflash:w:/tmp/Stino_build/blink/blink.hex:i"

And things should be working again with your IDE. However, this could cause another issue that looks something like this:

fork/exec /Users/Marco/Library/Arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino2/bin/avr-g++: no such file or directory
Error compiling for board Arduino/Genuino Uno.

To solve this, uninstall your Arduino software, and go to Users/YOUR NAME/Library. It may not appear in finder, and if not, go to terminal and enter cd, and then enter open ./Library. You may find files like, 'Arduino', or 'Arduino15'. If so, delete them. After that, reinstall your IDE and things should be working just like new again.

Hope this helps anyone else who happens to click the big "Update Boards" button. And sorry Windows users for not having a real solution for you.

Marco

I found the solution that worked for me for Windows 10 system here:

From the Sketch interface, Tools > Board:... > Boards Manager on the "Arduino AVR Boards" item select "More Info". That will bring up the "Select version" pull down. Select version 1.6.10 then "Install".

I did not try other versions. 1.6.14 was previously installed.

Paul