Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Trouble uploading firmware to UNO
jonpeterse-
n
Newbie
Posts: 4
Permalink
Post Trouble uploading firmware to UNO
on: December 1, 2012, 07:57
Quote

When I tried to load the firmware onto an Arduino UNO I get this error:

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

After googling around a little I found some talk of this being caused (at least on an UNO) when sketch size gets close to max, currently it is 30,108 out of 32,256 bytes. I am able to load other smaller programs.

Has anyone else encountered this or tried loading the recent firmware on an UNO?

Thanks

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Trouble uploading firmware to UNO
on: December 1, 2012, 17:01
Quote

Hi Jon, yes it's an issue for UNOs of a certain vintage - ones that have a certain kind of bootloader that misreports the available space. It was covered briefly on the blog here (started with http://www.polargraph.co.uk/2012/06/polargraph-controller-v1-1-7/#comment-1636)

and I never really came up with a fix. I don't know if loading a precompiled hex file helps at all (http://www.polargraph.co.uk/2012/07/more-updating-firmware-without-using-arduino/ and http://www.polargraph.co.uk/2012/06/uploading-firmware-without-arduino/), and it might be worth a try, but it uses avrdude too, so I imagine it doesn't help.

The solution, such as it is, is to burn a newer bootloader onto the UNO.

good luck!
sn

jonpeterse-
n
Newbie
Posts: 4
Permalink
Post Re: Trouble uploading firmware to UNO
on: December 3, 2012, 04:38
Quote

Hi Sandy, thanks for the quick reply. I ended up getting buying an Arduino UNO Rev 3 and that one works just fine. Fine with me, now I will still have an Arduino to mess around with after the Polargraph is finished.

unknowntot-
hem
Newbie
Posts: 4
Permalink
Post Re: Trouble uploading firmware to UNO
on: April 28, 2013, 20:43
Quote

Hi Jonpetersen, I realize this is a very very late response but maybe it will help someone else in a similar situation, I had the same problem, I found a very crude fix however it results in you loosing the ability to lift the pen with a servo but a small price to pay if you just want to mess around with a polargraph.

- Open the polargraph_server_a1 sketch in arduino IDE,
- delete the #include <Servo.h> line,
- Now delete all the associated servo code, easiest way to do this is to "compile" the sketch and delete all lines highlighted with errors.

This worked for me, but this is my first attempt at a polargraph so I have not played around enough to know if I screwed up more advanced features but the basic sketching still works fine.

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.05 seconds.