Reputation: 4943
I am trying to program an Arduino from OS X Lion. It absolutely won't work and I have no other machines to work this on.
Here is the error I get when I try to upload:
Binary sketch size: 1260 bytes (of a 32256 byte maximum)
avrdude: stk500_recv(): programmer is not responding
I tried up wipe and reinstall the arduino dev kit and I get the same bad results.
I also tried to program this on VMWare Fusion running ubuntu. I get the same programmer not responding error
. I also watched my /var/log/syslog
during this process and saw the following error: io/hpmud/pp.c 627: unable to read device-id ret=-1
I have no idea what to make of this.
I don't think its a bad board. I have the same problem with 2 arduinos: a brand new arduino out of the box and another that is 3 weeks old. This used to work but suddenly failed.
Any low level CLI tools that I can test and verify what USB port I am using?
How can I make this arduino accept my program?
Upvotes: 1
Views: 1880
Reputation: 76
Same problem... I've enabled verbose mode and got something like:
Using Port : /dev/cu.usbserial-A6013O93
Using Programmer : arduino
Overriding Baud Rate : 115200
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -carduino -P/dev/cu.usbserial-A6013O93 -b115200 -D -Uflash:w:/var/folders/d6/nx58qfsj6zbbw65bcsrnxc4r0000gn/T/build6866034938793144439.tmp/Blink.cpp.hex:i
changed baud rate to 57600 (the -b11520 to -b57600):
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -carduino -P/dev/cu.usbserial-A6013O93 -b57600 -D -Uflash:w:/var/folders/d6/nx58qfsj6zbbw65bcsrnxc4r0000gn/T/build6866034938793144439.tmp/Blink.cpp.hex:i
And it worked. Program uploaded. Hope it helps.
Upvotes: 0
Reputation: 965
I also have a MAC and something similar happened to me... I solved it by creating the folder /var/tmp
You can do that in terminal typing:
sudo mkdir /var/tmp
maybe you will need to give to it full perms.
sudo chmod 777 /var/tmp
but Im not shure about this step.
It worked to me because the arduino program tryes to write the temp files to this folder and, if the folder doesnt exist, the program assumes that some problem is happening with the programmer.
Maybe it will work to you, maybe not... we will see!
Upvotes: 1