Go Down

Topic: Problems Uploading to UNO (Read 873 times) previous topic - next topic

methuse

I'm trying to load the StripInvaders (https://github.com/neophob/StripInvaders) code onto an UNO Rev2. It seems to reset then flash for a while like it's working. Then it goes blank for a few secongs and I am getting the following in Windows:

Binary sketch size: 31888 bytes (of a 32256 byte maximum)

avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
avrdude: stk500_cmd(): programmer is out of sync

and in Mac OSX I get:

Binary sketch size: 31888 bytes (of a 32256 byte maximum)

avrdude: stk500_recv(): programmer is not responding

I've tried the holding the button trick when I load and I've tried reinstalling the drivers as per the troubleshooting guide, but to no avail.

I seem to be able to upload small sketches, however. I've uploaded several of the example sketches and they seem to work fine.

Any ideas? Is there something I don't know about Uno's and large sketches? Anything I can do to get this working?

beergnome

Well... I'm certainly not an expert at all in this, just learning my self.. But If I may offer some ideas, because it might help my self in my learning.

First off, the biggest thing I see going on is that the project you hope to build is asking for a Arduino board with Ethernet. and the Uno doesn't have that unless you add a Ethernet shield.

could it be that the chip is looking for the Ethernet stuff and the upload is failing because it isn't there?

James C4S

There was a bug on the bootloader that wouldn't work on sketches over 30k.  Here's some information on how to update the bootloader using a 2nd Arduino:  http://www.adafruit.com/forums/viewtopic.php?f=25&t=19260


could it be that the chip is looking for the Ethernet stuff and the upload is failing because it isn't there?

That's an interesting suggestion, but has nothing to do with the code-loading process.
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

methuse

James C4S: That's what I needed! How do we get that information added to the Troubleshooting document for uploading?

beergnome: I do indeed have an Ethernet shield for this project... but I couldn't even get the code onto the Arduino, so it wasn't that.


SurferTim

#4
Jan 03, 2012, 03:23 pm Last Edit: Jan 03, 2012, 05:01 pm by SurferTim Reason: 1

James C4S: That's what I needed! How do we get that information added to the Troubleshooting document for uploading?

beergnome: I do indeed have an Ethernet shield for this project... but I couldn't even get the code onto the Arduino, so it wasn't that.

So you disconnected the shield from the Arduino and it still doesn't program? You tried that?

Add: I had to find this post. Here is the post of another user. He is using a Mega, but they use the same usb/serial pins as the Uno.
Quote
I did just notice that the ebay auction for the ethernet shield says:
(Buyer please note that you may have to upload sketches to the Arduino mainboard without attaching this ethernet shield on it. Otherwise the sketches could not be uploaded.)
... I didn't notice that before... I haven't tried to upload something - then reboot with the shield attached....


Add2: If my evaluation of the problem is correct, you will also have problems with any Serial functions with the shield connected, but they will work fine without the shield.

If this is the case, and you are a gambling man, which I am  :D , you might try "pin bending" digital pins 0 and 1 on the shield so they do not insert into the Uno header when the shield is connected.

Go Up