I'm trying to use the Arduino Makefile (http://www.arduino.cc/en/uploads/Hacking/Makefile) to upload to my board outside the context of the IDE and ran into some troubles. I got to the point where make works and make upload runs the avrdude command, but it just hangs there without finishing or successfully uploading.
Some history of my struggle might be useful for debugging my situation (and, possibly, improving the instructions in the Makefile): After following the instructions at the top of the file (inserting my serial port, etc.), make failed with this error:
make: avr-g++: Command not found
I had to add /tools/avr/bin to my $PATH in order to get it to successfully compile.
Next, I tried to run make upload and again hit a path problem:
avrdude: can't open config file "/opt/avr/etc/avrdude.conf": No such file or directory
After some searching, I discovered that I needed to add the following to the AVRDUDE_FLAGS line of the makefile:
-C /tools/avr/etc/avrdude.conf
At that point, the avrdude command runs...and hangs. The command getting run looks like this:
avrdude -F -p atmega8 -P /dev/tty.usbserial-A3000WS0 -C /Applications/arduino/arduino-0007/tools/avr/etc/avrdude.conf -c stk500 -b 19200 -U flash:w:my_sketch.hex
My Arduino board's orange light flashes when I hit the reset button before executing the make upload command, but after awhile of nothing happening on the computer end, the board just goes back to executing the previous loop that was flashed onto it.
I'm working on PPC Mac running 10.4.9 and I've goot version 0007 of the Arduino software installed.
Thanks for your help!