smartworkbr / optiboot

Automatically exported from code.google.com/p/optiboot
0 stars 0 forks source link

Problems uploading sketches larger than 30k on ATMEGA328 #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Updating sketches smaller than 30K succeeds.
Updating sketches bigger than 30K on ATMEGA328 (arduino UNO) fails.

Problem described here:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1287435600

Another user reports same issue with latest optiboot v3 in Arduino Duemilanova 
with atmega168 with sketches larger than 15K

Original issue reported on code.google.com by avizz...@gmail.com on 20 Oct 2010 at 11:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have something similar with an Atmega328 board, however without an avrdude 
protocol error messages. The uploading just stops halfways and a 
"stk500_recv(): programmer not responding" timeout error is given. The maximum 
size I am able to upload succesfully is 28668 bytes. With 28692 or higher the 
error message starts appearing. I'm guessing the maximum is 28672 == 0x7000

Original comment by andras.t...@gmail.com on 22 Oct 2010 at 12:52

GoogleCodeExporter commented 9 years ago
I see that in optiboot.c NRWWSTART is 0x7000 for ATMEGA328P (and 0x3800 for 
ATMEGA168).  I'm a bit ignorant on its meaning, but could that be it?

Original comment by randy.gl...@gmail.com on 22 Oct 2010 at 2:31

GoogleCodeExporter commented 9 years ago
From the Arduino forum link above, the problem was solved back in May. I got 
the Atmega328 .hex file from the optiboot zip file. It looks like that isn't 
the most recent one. Get the hex file from the source tree instead to get the 
right one.

Original comment by andras.t...@gmail.com on 24 Oct 2010 at 8:47

GoogleCodeExporter commented 9 years ago
Thanks Andras!
as already posted in the Arduino forum: PROBLEM SOLVED!

A.

Original comment by avizz...@gmail.com on 24 Oct 2010 at 8:51

GoogleCodeExporter commented 9 years ago
Ah.  The optiboot v3 download file is from May 9, while the fix is from May 11 
(and is not in the v3 download!)

Original comment by wes...@gmail.com on 26 Oct 2010 at 1:02

GoogleCodeExporter commented 9 years ago
Just as an FYI, before i found out about the optiboot issues, i chased down the 
max size to be 28674 bytes (on my uno).  28676 is where the problems started 
(http://arduino.cc/forum/index.php/topic,65703.0.html)

Original comment by SuperDup...@gmail.com on 5 Jul 2011 at 5:36

GoogleCodeExporter commented 9 years ago

Original comment by wes...@gmail.com on 29 Oct 2011 at 5:27

GoogleCodeExporter commented 9 years ago
Fixed as part of the great optiboot/Arduino sync-up
http://code.google.com/p/optiboot/source/detail?r=8559b64fd093d3976cae58778a1540
256cde5c8e

Original comment by wes...@gmail.com on 30 Oct 2011 at 8:19