Go Down

Topic: Mac not uploading Uno (Read 5 times) previous topic - next topic

WilltheThrill

I'm new to the Arduino world and I've been having issues with uploading anything to my new Arduino Uno. I'm using a Mac OS X version 10.4.11. Basically, whenever I hit upload to 1/0 board it says "stk500_getsync(): not in sync: resp=0x86" and then shortly after, "stk500_recv(): programmer is not responding". I can't find the board if I search the computer, but it is getting power from the computer. Thanks in advance for any light that can be shed on this situation.
-Will

baum

Have you installed the driver? It comes in the .dmg with the Arduino IDE. Also, make sure you chose the right board (tools>board) and right port (tools>serial port).

Valalvax


Have you installed the driver? It comes in the .dmg with the Arduino IDE. Also, make sure you chose the right board (tools>board) and right port (tools>serial port).


I didn't think the Uno needed to install the drivers? (you're referring to the FTDI drivers?) I ended up doing it anyway because I'm a guy and don't read the instructions


(found the instructions)

3 | Install the Software

Copy the Arduino application into the Applications folder (or elsewhere on your computer). If you're using an Arduino Uno or Mga 2560, you don't have any drivers to install. Skip ahead to the next step.


Go ahead and follow these steps, if it still doesn't work, call again in the morning (yay doctor advice)

http://www.arduino.cc/en/Guide/MacOSX#toc1

baum

K. Can you list all of the options that are in the Serial Port menu?

WilltheThrill

The options in the serial port menu are as follows:

/dev/tty.usbmodem0000105D1
/dev/cu.usbmodem0000105D1
/dev/cu.Bluetooth-PDA-Sync
/dev/cu.Bluetooth-PDA-Sync
/dev/tty.Bluetooth-Modem
/dev/cu.Bluetooth-Modem
-Will

baum

All of the Bluetooth ones are bluetooth (duh)... Which one are you selecting? You probably want the TTY one.
(It's odd, though. Mine is /dev/tty.usbserial-A800eFDb)


I also found this from ladyada:

http://www.ladyada.net/learn/arduino/help.html

See if that helps... mentions stk_500, but not your exact error.


Good Luck!

James C4S

First, the Uno does not need a driver installed for Mac OS X or Linux.  Only Windows.  Installing the FTDI drivers will not hurt (nor will it help). 

The error you are receiving is a generic error and doesn't really help.  Which is rough because I think it is the only error. :) Just by observation, I believe there is an issue with Auto-Reset working correctly on OS X 10.4.x and the Uno.  This may or not be true, just seems like a pattern I've noticed.

The entire process works like this: The IDE complies the sketch and then uploads it to the board.  The upload begins a few seconds after the message "Binary Sketch Size:  XXXXX bytes (of a XXXX byte maximum)".  Normally the virtual serial port's DTR line gets activated which causes the ATmega328 chip to reset.  On reset the Arduino bootloader is running and it waits 2 seconds for serial data.  If this reset never occurs, you get the generic error.

Try this...

So while compiling, press and hold the Uno's reset button.  About 1 second after the "Binary Sketch Size" message appears, release the button.  You may have to play with your timing a little to find something that works.
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

WilltheThrill

Thanks!  :) Holding the reset button did the trick. It's a bit inconvenient, but so long as it works and I can program the device, I'm satisfied. Are there any permanent fixes for this?
-Will

baum

Possibly. [That means no] But...
You could try re-burning the bootloader. (Doubt that would help). Or contact whomever you got it from and ask for a new one. (It's defective!)
But back in the good ol' days, everyone had to manually reset their NGs and such.

James C4S

Burning the bootloader is an option, but probably won't result in a fix.  In this specific type of case, the problem is really how OSX handles "usb modems".  I use quotes since that is what the Uno is emulating.

If you have a ISP you could try re-programming the 8u2.  If you can bare to go a few days without a Uno, it might be worth swapping out for another one.  However, I don't think you're going to see a difference in another board.
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

baum

I have 10.5 and 10.6 and it works just fine, so maybe you can get an upgrade?

wombat42

I'm a Linux user, but I think I can help:

The usbmodem devices are your Uno - the Uno and the mega2560 use the 8u2 usb interface chip, and are programmed to look like modems, so Windoze users don't need a driver... All older Arduini use the FTDI chips, and their driver

AFAIK the Uno has essentially the same 8U2 boot loader as the mega2560, and there is a BUG in it that will cause the symptoms you see. You can reflash the 8U2 just using the Uno itself, if you can obtain a program called dfu-programmer, and plug in two bits of wire. The new (bug fixed) firmware ships with v0022 I think.

Look on the old forum for instructions - I have no idea whether Macs have a C compiler to build from source. Many of the posts concerned the 2560, and I certainly described where the wires go on the 2560 (the photo is for the Uno)

Good luck - once the bug is fixed the serial should be reliable

yusynth

If my very recent experience may help...

OK, yesterday I received my Uno board, I connected it to my MacMini and run the Blink test but this failed, I had the RX TX blinking OK but got the error message : avrdude : cannot connect to programmer.
I tried various things, such as power the board with an external PSU but could not get it to work, until I plugged the USB chord directly to the MacMini, until then it was plugged to the USB hub of my Macintosh Display.

Now I plug it directly to the computer and I avoid using the hub. This is not due to a power problem with the hub since it did not operate correctly even when powering the Uno board with an external PSU. This is strange because I use the hub to plug and power an usbpicprog without problems.

Go Up