Binary size too big

Hello everybody, finally managed to join and hope to get my first posting right.

Hello everybody,

finally managed to join and hope to get my first posting right.

About six weeks ago after discovering this group, fascinated by the ongoing projects aquired built and got the emonGLCD, emonTX and nanodeRF going. Apart from occasional loss of time synchronisation and the led only getting litr green on excess PV production everything seemed to be running as advertised.

Today I tried to replicate compilation of the latest emonGLCD Solar PV monitor example - compatiable with Arduino 1.0 code from GitHub and it fails with Binary sketch size: 31,452 bytes (of a 30,720 byte maximum) processing.app.debug.

RunnerException: Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it. at processing.app.Sketch.size(Sketch.java:1693) at processing.app.Sketch.build(Sketch.java:1626) at processing.app.Sketch.build(Sketch.java:1602) at processing.app.Editor$DefaultRunHandler.run(Editor.java:1863) at java.lang.Thread.run(Thread.java:679)

The reccomanded site for size problems did not get me any wiser. Assuming that it works for everyone else, I must be missing some elementary bits. Appreciate all the help I can get.

Regards,

Erich

stuart's picture

Re: Binary size too big

What Arduino board are you targetting?

Some bootloaders leave more available memory than others.

Although, this does seem to be a large sketch!

daremonpv's picture

Re: Binary size too big

 

selecting target  duemilanove/ATmega328, was the problem

the sketch is from GitHub latest emonGLCD SolarPV example

the arduino 1.0.1 environment compiles emonGLCD SolarPV for arduino uno without complaint 

 

thanks for reply,

Erich

PS, seems Firefox on Ubuntu fails to submit replies. Windows7/chrome looks more promising

Robert Wall's picture

Re: Binary size too big

"PS, seems Firefox on Ubuntu fails to submit replies."

Is it Firefox 15 you are using? I'm having the same trouble under Windows XP and PCLinuxOS, but Firefox up to and including V14 was fine under both. (I'm back on V14 to send this!).

glyn.hudson's picture

Re: Binary size too big

 Hi Erich,

Good work getting your system up and running. 

The solar PV emonGLCD sketch needs th Uno bootloder since space is getting pretty tight! The uno bootloder has more space available for sketches. It's possible to use another Arudino to load on the bootloader,  there are lots of instructions for this on the web, but it can be a bit fiddly to wire up. If you like we can send you an Atmega328 with Uno pre-loaded for £5 + £1 shiping. Just oder 6 x customised payment items from the specials section of the shop and leave a not at checkout. 

The latest version of the solar PV emonGLCD example should have fixed the bug which was stopping the red LED lighting up. 

Best of luck,

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.