Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Every time I want to upload a sketch (Mac OS X 10.11.4, Arduino IDE 1.6.7), I get the following error:

    Sketch uses 1,066 bytes (3%) of program storage space. Maximum is 30,720 bytes.
    Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
    /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v true -patmega328p -carduino -P/dev/cu.usbserial-A70075GX -b57600 -D -Uflash:w:/var/folders/gw/2wc3kcqn7msdklf1hxdbyl4w0000gn/T/buildd5ae82e677127ac286f51de66781d807.tmp/Blink.ino.hex:i 

    avrdude: Version 6.0.1, compiled on Apr 14 2015 at 16:30:25
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2009 Joerg Wunsch

             System wide configuration file is "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
             User configuration file is "/Users/alkopop79/.avrduderc"
             User configuration file does not exist or is not a regular file, skipping


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

I have checked the USB drivers (FTDI and CH340, the Chinese clone driver) and they seem to work fine, I could see and select the ports in the 'Port' section. I have tried different versions of the IDE (1.5-1.6), even installed it on Windows and nothing works. I've tested three different boards and still no luck. Needless to say I have tried to upload a sketch from the Terminal using avrdude and I got this error:

    avrdude: ser_open(): can't open device "unknown": No such file or 
directory

On the top of that, there's no avrduderc file in the users folder I'm running out of ideas. I have recently installed an AVR cross compiler and that may have messed up things. Any ideas would be appreciated!

UPDATE: after removing Crosspack with 'sudo /usr/local/CrossPack-AVR/uninstall' and avrdude with 'brew uninstall avrdude' I finally removed the Arduino app and the /User/Library/arduino15 folder. Now I don't get the previous error, instead I get

avrdude: stk500_recv(): programmer is not responding

A HEARTFELT PLEA: if you don't like my question, please comment instead of voting me down! I'm always happy to delete or adjust/edit my original question. Thank you!

share|improve this question
    
As was mentioned when you posted this on EESE, the error message you are reporting is entirely inconsistent with the command line you are reporting. So either you are mixing up your problem report between different attempts, or you have a severely broken installation. It would be best if you posted the details of precisely one completely new attempt showing consistency between the command line and error message. If your command line specifies a programmer and a port you should not be getting errors claiming those are missing. – Chris Stratton May 16 at 21:20
    
Hi Chris, thank you for your comment! I was wondering what if I remove both Arduino and avrdude? – alkopop79 May 16 at 21:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.