TOO LARGE

New members questions
Post Reply
Govertical19
Posts: 27
Joined: Wed Feb 15, 2012 6:52 am

TOO LARGE

Post by Govertical19 »

First I would like to say thanks to Roberto for all the help last nite!

I am trying to upload a file and it keeps giving me this error

Binary sketch size: 33280 bytes (of a 32256 byte maximum)
processing.app.debug.RunnerException: Sketch too big; see /Troubleshooting#size for tips on reducing it.
at processing.app.Sketch.size(Sketch.java:1651)
at processing.app.Sketch.build(Sketch.java:1570)
at processing.app.Sketch.exportApplet(Sketch.java:1610)
at processing.app.Sketch.exportApplet(Sketch.java:1578)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2314)
at java.lang.Thread.run(Thread.java:619)

The only thing I added to RAgen was to add PVM slope I really have not changed anything on the relays or anything. I did add to display PVm on the display and the date time setup.

What would I be doing incorrect?

Thanks
Bob
Govertical19
Posts: 27
Joined: Wed Feb 15, 2012 6:52 am

Re: TOO LARGE

Post by Govertical19 »

// Autogenerated file by RAGen (v1.2.0.152), (02/15/2012 09:04)
// RA_021512_0904.ino
//
// This version designed for v0.9.0 or later

/* The following features are enabled for this File:
#define DateTimeSetup
#define DisplayLEDPWM
#define wifi
#define WDT
#define SIMPLE_MENU
*/


#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <ReefAngel.h>


void setup()
{
ReefAngel.Init(); //Initialize controller

// Ports that are always on
ReefAngel.Relay.On(Port8);
}

void loop()
{
// Specific functions
ReefAngel.StandardATO(Port1);
ReefAngel.StandardLights(Port2);
ReefAngel.MHLights(Port3);
ReefAngel.StandardFan(Port4);
ReefAngel.Wavemaker1(Port5);
ReefAngel.Wavemaker2(Port6);
ReefAngel.StandardHeater(Port7);
ReefAngel.Portal("Govertical19");

ReefAngel.PWM.ActinicPWMSlope();
ReefAngel.PWM.DaylightPWMSlope();

ReefAngel.ShowInterface();
}


Here is the code
Govertical19
Posts: 27
Joined: Wed Feb 15, 2012 6:52 am

Re: TOO LARGE

Post by Govertical19 »

Tried to change some ports to see if that would work, it did not. Still say to big

// Autogenerated file by RAGen (v1.2.0.152), (02/15/2012 09:15)
// RA_021512_0915.ino
//
// This version designed for v0.9.0 or later

/* The following features are enabled for this File:
#define DateTimeSetup
#define DisplayLEDPWM
#define wifi
#define WDT
#define SIMPLE_MENU
*/


#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <ReefAngel.h>


void setup()
{
ReefAngel.Init(); //Initialize controller

// Ports that are always on
ReefAngel.Relay.On(Port8);
}

void loop()
{
// Specific functions
ReefAngel.StandardHeater(Port1);
ReefAngel.StandardLights(Port2);
ReefAngel.StandardLights(Port3);
ReefAngel.SingleATOLow(Port4);
ReefAngel.DosingPump1(Port5);
ReefAngel.DosingPump2(Port6);
ReefAngel.StandardHeater(Port7);
ReefAngel.Portal("Govertical19");

ReefAngel.PWM.ActinicPWMSlope();
ReefAngel.PWM.DaylightPWMSlope();

ReefAngel.ShowInterface();
}
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: TOO LARGE

Post by binder »

a suggestion is to remove the date time setup. point blank it is a memory hog. if you have wifi enabled, just use one if the apps to set the date and time. wifi is also another memory hog.
Govertical19
Posts: 27
Joined: Wed Feb 15, 2012 6:52 am

Re: TOO LARGE

Post by Govertical19 »

That worked Thanks!

Now when it says display LED PVM is that on the Graph or under the option menu? Cause I do not see it under the menus on the controller?

Ok, next thing. I tried to setup the intermal memory after that work and this is the error I get when it goes to upload the generated code.

The code:

// Autogenerated file by RAGen (v1.2.0.152), (02/15/2012 10:35)
// Memory_021512_1035.ino
//
// This file sets the default values to the Internal Memory
//


#include <ReefAngel_Features.h>
#include <Globals.h>
#include <Time.h>
#include <OneWire.h>
#include <RA_NokiaLCD.h>
#include <avr/pgmspace.h>
#include <InternalEEPROM.h>
#include <Wire.h>
#include <Memory.h>


RA_NokiaLCD e;

void setup()
{
e.lcd_init();
e.lcd_clear(COLOR_WHITE,0,0,132,132);
e.lcd_BacklightOn();

InternalMemory.MHOnHour_write(8);
InternalMemory.MHOnMinute_write(0);
InternalMemory.MHOffHour_write(15);
InternalMemory.MHOffMinute_write(0);
InternalMemory.MHDelay_write(5);
InternalMemory.StdLightsOnHour_write(11);
InternalMemory.StdLightsOnMinute_write(0);
InternalMemory.StdLightsOffHour_write(23);
InternalMemory.StdLightsOffMinute_write(0);
InternalMemory.DP1OnHour_write(20);
InternalMemory.DP1OnMinute_write(0);
InternalMemory.DP2OnHour_write(22);
InternalMemory.DP2OnMinute_write(30);
InternalMemory.DP1Timer_write(10);
InternalMemory.DP2Timer_write(10);
InternalMemory.DP1RepeatInterval_write(60);
InternalMemory.DP2RepeatInterval_write(60);
InternalMemory.ATOTimeout_write(60);
InternalMemory.ATOHighTimeout_write(60);
InternalMemory.ATOHourInterval_write(0);
InternalMemory.ATOHighHourInterval_write(0);
InternalMemory.FeedingTimer_write(900);
InternalMemory.LCDTimer_write(600);
InternalMemory.LEDPWMActinic_write(20);
InternalMemory.LEDPWMDaylight_write(20);
InternalMemory.WM1Timer_write(0);
InternalMemory.WM2Timer_write(0);
InternalMemory.HeaterTempOn_write(765);
InternalMemory.HeaterTempOff_write(775);
InternalMemory.ChillerTempOn_write(810);
InternalMemory.ChillerTempOff_write(785);
InternalMemory.OverheatTemp_write(1500);
InternalMemory.PHMax_write(840);
InternalMemory.PHMin_write(550);
InternalMemory.SalMax_write(2550);
InternalMemory.RFMode_write(Constant);
InternalMemory.RFSpeed_write(140);
InternalMemory.RFDuration_write(8);
InternalMemory.RFDuration_write(8);
InternalMemory.PWMSlopeStartD_write(15);
InternalMemory.PWMSlopeEndD_write(128);
InternalMemory.PWMSlopeDurationD_write(60);
InternalMemory.PWMSlopeStartA_write(15);
InternalMemory.PWMSlopeEndA_write(128);
InternalMemory.PWMSlopeDurationA_write(60);
InternalMemory.IMCheck_write(0x5241494D);
}

void loop()
{
// display the values
char buf[128];
sprintf(buf, "MH %2d:%02d-%2d:%02d,%d", InternalMemory.MHOnHour_read(), InternalMemory.MHOnMinute_read(),
InternalMemory.MHOffHour_read(), InternalMemory.MHOffMinute_read(),
InternalMemory.MHDelay_read());
e.lcd_draw_text(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW, buf);
sprintf(buf, "Std %2d:%02d-%2d:%02d", InternalMemory.StdLightsOnHour_read(), InternalMemory.StdLightsOnMinute_read(),
InternalMemory.StdLightsOffHour_read(), InternalMemory.StdLightsOffMinute_read());
e.lcd_draw_text(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*2, buf);
sprintf(buf, "LED A: %d%% D: %d%%", InternalMemory.LEDPWMActinic_read(), InternalMemory.LEDPWMDaylight_read());
e.lcd_draw_text(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*3, buf);
sprintf(buf, "WM1: %ds", InternalMemory.WM1Timer_read());
e.lcd_draw_text(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*4, buf);
sprintf(buf, "WM2: %ds", InternalMemory.WM2Timer_read());
e.lcd_draw_text(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*5, buf);
sprintf(buf, "F: %ds", InternalMemory.FeedingTimer_read());
e.lcd_draw_text(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*6, buf);
sprintf(buf, "S: %ds", InternalMemory.LCDTimer_read());
e.lcd_draw_text(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*7, buf);
sprintf(buf, "H On: %d -> %d", InternalMemory.HeaterTempOn_read(), InternalMemory.HeaterTempOff_read());
e.lcd_draw_text(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*9, buf);
sprintf(buf, "C On: %d -> %d", InternalMemory.ChillerTempOn_read(), InternalMemory.ChillerTempOff_read());
e.lcd_draw_text(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*10, buf);
sprintf(buf, "PH %d - %d", InternalMemory.PHMax_read(), InternalMemory.PHMin_read());
e.lcd_draw_text(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*11, buf);

delay(10000);
e.lcd_clear(COLOR_WHITE,0,0,132,132);

sprintf(buf, "OH: %dF", InternalMemory.OverheatTemp_read());
e.lcd_draw_text(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW, buf);
sprintf(buf, "ATO L: %ds (%dh)", InternalMemory.ATOTimeout_read(), InternalMemory.ATOHourInterval_read());
e.lcd_draw_text(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*2, buf);
sprintf(buf, "ATO H: %ds (%dh)", InternalMemory.ATOHighTimeout_read(), InternalMemory.ATOHighHourInterval_read());
e.lcd_draw_text(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*3, buf);

sprintf(buf, "DP1: %2d:%02d", InternalMemory.DP1OnHour_read(), InternalMemory.DP1OnMinute_read());
e.lcd_draw_text(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*5, buf);
sprintf(buf, " %ds", InternalMemory.DP1Timer_read());
e.lcd_draw_text(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*6, buf);
sprintf(buf, "DP2: %2d:%02d", InternalMemory.DP2OnHour_read(), InternalMemory.DP2OnMinute_read());
e.lcd_draw_text(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*7, buf);
sprintf(buf, " %ds", InternalMemory.DP2Timer_read());
e.lcd_draw_text(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*8, buf);

delay(10000);
e.lcd_clear(COLOR_WHITE,0,0,132,132);
}


The error:

Memory_021512_1035:106: error: 'class RA_NokiaLCD' has no member named 'lcd_draw_text'
Memory_021512_1035:108: error: 'class RA_NokiaLCD' has no member named 'lcd_draw_text'
Memory_021512_1035:110: error: 'class RA_NokiaLCD' has no member named 'lcd_draw_text'
Memory_021512_1035:113: error: 'class RA_NokiaLCD' has no member named 'lcd_draw_text'
Memory_021512_1035:115: error: 'class RA_NokiaLCD' has no member named 'lcd_draw_text'
Memory_021512_1035:117: error: 'class RA_NokiaLCD' has no member named 'lcd_draw_text'
Memory_021512_1035:119: error: 'class RA_NokiaLCD' has no member named 'lcd_draw_text'
Memory_021512_1035:122: error: 'class RA_NokiaLCD' has no member named 'lcd_clear'
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: TOO LARGE

Post by rimai »

The DisplayLEDPWM will place the AP and DP on the side of the temperature readigns.
The graph is only for temp and pH.
The error is related to a bug on RAGen. Please see this post:
http://forum.reefangel.com/viewtopic.php?p=5927#p5927
Roberto.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: TOO LARGE

Post by rimai »

An alternative is to use the InitialInternalMemory on your example codes and just change it to fit your settings.
Roberto.
Govertical19
Posts: 27
Joined: Wed Feb 15, 2012 6:52 am

Re: TOO LARGE

Post by Govertical19 »

so in theory could I just copy and paste the difference in the code? Like line by line ?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: TOO LARGE

Post by rimai »

You can do that.
Roberto.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: TOO LARGE

Post by rimai »

I'm sure Curt will have this fixed in no time though :)
Roberto.
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: TOO LARGE

Post by binder »

rimai wrote:I'm sure Curt will have this fixed in no time though :)
Yes, I most certainly will. My "goal" is to get it fixed tonight when I get home. :ugeek:
Govertical19
Posts: 27
Joined: Wed Feb 15, 2012 6:52 am

Re: TOO LARGE

Post by Govertical19 »

Nice! I can not wait!
rossbryant1956
Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD

Re: TOO LARGE

Post by rossbryant1956 »

The pressure...the pressure!

;>

Thx to all for a great product
Roscoe's Reefs - Starting Over Again:

Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: TOO LARGE

Post by binder »

Post Reply