Welcome! Log In Create A New Profile

Advanced

Arduno sketch too big

Posted by james glanville 
Arduno sketch too big
July 01, 2008 02:05PM
Hi, I'm building a reprap but cannot get the arduino firmware onto my arduino ng. It is the one with the atmega168. I am using the 0011 arduino IDE, and the 1.3 single arduino snap firmware (or I should be if I could get it flashed). The error I get is:

Binary sketch size: 15646 bytes (of a 14336 byte maximum)

This is on a gentoo linux amd64 box if that helps at all. Thanks in advance for any help.
Anonymous User
Re: Arduno sketch too big
July 01, 2008 06:49PM
That is strange. When I build the Single_Arduino_SNAP I get a compiled size of 14190 bytes (14336 maximum).

Are you using code from the SVN or version 1.3?

-Mark
Re: Arduno sketch too big
July 02, 2008 06:17AM
I'm using the reprap-arduino-firmware-1.3.zip file from sourceforge, still no joy. The sketch size I get depends on what version of avr-libc I'm using, would you please tell me what version of the toolchain components you are using successfully?
Anonymous User
Re: Arduno sketch too big
July 02, 2008 08:22AM
I'm building on Ubuntu Hardy Heron. I believe that gcc-avr is version 4.2.2-1 and avr-libc is version 1.4.7-1.

Hope that is helpful to you.

-Mark
Re: Arduno sketch too big
July 02, 2008 12:37PM
I had problems with gcc-avr or avr-libc versions that ship with hardy heron see
[bugs.launchpad.net]

Can you try calling strtod() and atof() on your arduino batmark and see if it works?

It could also be compiler options adruino 011 uses, I'm still using 010.
Anonymous User
Re: Arduno sketch too big
July 02, 2008 06:41PM
It compiles if that is what you mean. Haven't actually tested it on my arduino yet.

I'll give it a try later and report back.

-Mark
Re: Arduno sketch too big
July 19, 2008 04:36PM
I managed to flash the 1.3 version of the reprap firmware using a 32-bit ubuntu pc. The default ubuntu toolchain must optimise for size more efficiently or something. Thanks for everyone's help anyways.
Re: Arduno sketch too big
January 13, 2009 03:26PM
I have the same problem. I have downloaded reprap-arduino-firmware-1.3.zip, and I try to compile gcode-interpreter-experimental, the result are the same:
Sketch too big: see [www.arduino.cc] for tips on reducing it.

Im using ubuntu 8.10 (Intrepid Ibex), the relevant avr packages:
ii avr-libc 1:1.6.2-1
ii binutils-avr 2.18-3
ii gcc-avr 1:4.3.0-2

Im using arduino 0012, if it matters.

I have read that the default ubuntu's avr contains a bug (what bug?), and read this blog:
[blog.coldtobi.de]

But the proposed packages are way too old. (gcc-avr 4.1.0, and I have already 4.3.0).

Any idea?
Re: Arduno sketch too big
January 13, 2009 03:30PM
It also says the following errors on the arduino console:

In file included from ThermoplastExtruder_SNAP_v1.h:37,
                 from ThermoplastExtruder_SNAP_v1.cpp:1:
/usr/lib/gcc/avr/4.3.0/../../../../avr/include/math.h:439: error: expected unqualified-id before 
Re: Arduno sketch too big
January 13, 2009 03:34PM
Ok. Deleting
arduino-0012/hardware/libraries/ThermoplastExtruder_SNAP_v1
resolves the error message.

However the binary sketch size are still the same:
Binary sketch size: 14432 bytes (of a 14336 byte maximum)
Re: Arduno sketch too big
January 14, 2009 11:48AM
Just a guess, but did you delete the object files before re-compiling? arduino-0011 wouldn't always delete them for me, so sometimes changes wouldn't make it through until I manually deleted all the *.o files in the directory.

Wade
Sorry, only registered users may post in this forum.

Click here to login