Moderator

"make upload" avrdude error

I'm getting the following error from "make upload".

mh@maru ~/apm/ArduPlane-2.34/ArduPlane --> make upload


/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude -c stk500v2 -p atmega2560 -P /dev/ttyUSB0 -b115200 -U flash:w:/var/folders/zz/zzzivhrRnAmviuee+++9rE++0xo/-Tmp-/ArduPlane.build/ArduPlane.hex:i

avrdude: can't open config file "/usr/local/etc/avrdude.conf": No such file or directory
avrdude: error reading system wide configuration file


I fixed it by adding the "-C"  to the following entry in libraries/AP_Common/Arduino.mk. Is that the correct thing to do, or is there a better place to add this?
upload:
$(SKETCHHEX)        $(AVRDUDE) -c $(UPLOAD_PROTOCOL) -p $(MCU) -P $(PORT) -b$(UPLOAD_SPEED) -U flash:w:$(SKETCHHEX):i -C /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf


You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • I had the same issue in Mtn Lion.  I think due to app sandboxing in Mtn Lion Arduino can no longer install files to /usr/local/ unless they have an entitlement exception.  I'll dig into it more.

  • Should be ok,  but, looks like you did not install things in the normal place.  As long as you have the correct avrdude for that version of the config there should be no problems, from what I see. 

This reply was deleted.