Pages: [1]   Go Down
Author Topic: standardFirmata example sketch too big ?  (Read 1274 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 644
Posts: 50512
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 12
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You probably need to upgrade to a ATmega168 or ATmega328.
Logged

Spokane, Washington
Offline Offline
God Member
*****
Karma: 1
Posts: 686
My name is Bob, and I'm an addict.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Or choose the right board, of course! smiley 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.
« Last Edit: November 15, 2009, 06:03:15 pm by thoed » Logged

Pages: [1]   Go Up
Jump to: