Flashing my Mega 2560 with avrdude via Mac OSX

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
ChrisFelix
 
Posts: 1
Joined: Wed Aug 28, 2013 12:42 am

Flashing my Mega 2560 with avrdude via Mac OSX

Post by ChrisFelix »

I am attempting to flash my Mega2560 with a prebuilt hex from APduino and I am stuck. I followed the instructions at http://www.ladyada.net/learn/avr/setup-mac.html - I now think I have the avrdude working.

When I attempt to flash the chip via avrdude I get the following error in terminal:

Librarys-iMac:~ imac$ /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude -patmega2560 -cwiring "-P/dev/cu.usbmodem1421" -b115200 -Uflash:w:apduinos-headless.hex:a "-C/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9801
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "apduinos-headless.hex"
avrdude: error opening apduinos-headless.hex: No such file or directory
avrdude: input file apduinos-headless.hex auto detected as invalid format
avrdude: can't open input file apduinos-headless.hex: No such file or directory
avrdude: read from file 'apduinos-headless.hex' failed

avrdude: safemode: Fuses OK

avrdude done. Thank you.

Librarys-iMac:~ imac$

User avatar
westfw
 
Posts: 2008
Joined: Fri Apr 27, 2007 1:01 pm

Re: Flashing my Mega 2560 with avrdude via Mac OSX

Post by westfw »

It's complaining that it can't find your .hex file; are you sure you don't have a typo in the command line?

Alternately, it could be a bug in compiling avrdude. Did you get that via Arduino, Crosspack, or compile it yourself from some other source?

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”