Go Down

Topic: standardFirmata example sketch too big ? (Read 1 time) previous topic - next topic

knff

Hey all,
I'm just starting out with arduino, and i'm trying to make it communicate with openFrameworks. But whenever i try to upload the standardFirmata example sketch supplied by the arduino software i'm getting the following error:

"Binary sketch size: 7458 bytes (of a 7168 byte maximum)

processing.app.debug.RunnerException: Sketch too big; see *ww.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
     at processing.app.Sketch.size(Sketch.java:1447)
     at processing.app.Sketch.compile(Sketch.java:1177)
     at processing.app.Editor$43.run(Editor.java:1751)
     at java.awt.event.InvocationEvent.dispatch(Unknown Source)
     at java.awt.EventQueue.dispatchEvent(Unknown Source)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.run(Unknown Source)
processing.app.debug.RunnerException: Sketch too big; see *ww.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
     at processing.app.Sketch.size(Sketch.java:1447)
     at processing.app.Sketch.compile(Sketch.java:1177)
     at processing.app.Editor$43.run(Editor.java:1751)
     at java.awt.event.InvocationEvent.dispatch(Unknown Source)
     at java.awt.EventQueue.dispatchEvent(Unknown Source)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.run(Unknown Source)
"
i'm using an old arduino atmega8, so that will probably be part of the problem. Is there a smaller firmata sketch written specifically for older arduino's ? thanks

PaulS

Why don't you post the sketch in question, and describe what data you want from the (sensors attached to) the Arduino. If you don't have any analog sensors, you could remove the code that deals with analog data. If you don't have any analog sensors, you could remove that code.

For meaningful advice though, we need to know more about your setup.

mellis

You probably need to upgrade to a ATmega168 or ATmega328.

CaptainObvious

#3
Nov 16, 2009, 12:02 am Last Edit: Nov 16, 2009, 12:03 am by thoed Reason: 1
Or choose the right board, of course! :) Goto Tools, Boards, and if you have a Atmega328 on your board, then choose the top, if you have the 168, click the 168!

Yeah, atmega8's aren't the best place to start, you lose out on alot, but they're good for fairly basic systems.

Go Up