Errors when compiling with dev branch

Related to the development libraries, released by Curt Binder
Post Reply
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Errors when compiling with dev branch

Post by rimai »

Can you send me a screen shot of File->Preferences window of your Arduino IDE?
Roberto.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Errors when compiling with dev branch

Post by sbidny »

Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Errors when compiling with dev branch

Post by rimai »

is the sketchbook location where you placed the dev branch?
Can you send me a screenshot of your folder structure?
Roberto.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Errors when compiling with dev branch

Post by sbidny »

Yes, it’s the location where I put the dev libraries. Here’s the structure:

/Users/sbidny/Documents/Arduino 1.8.6/libraries/

I will grab a screenshot when I get a chance as well.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Errors when compiling with dev branch

Post by sbidny »

It's definitely picking up the dev libraries, FWIW, since the call to ReefAngel.StandardHeater1() is working. The older libraries did not support this call. I believe they required ReefAngel.StandardHeater().
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Errors when compiling with dev branch

Post by sbidny »

Screenshot of folder structure:

Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Errors when compiling with dev branch

Post by rimai »

Light bulb turned on.
I think you are also missing the updated features file.
https://github.com/reefangel/FeaturesAndUpdateFiles
Update the files on your folder /Users/sbidny/Documents/Arduino 1.8.6/libraries/update
Roberto.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Errors when compiling with dev branch

Post by sbidny »

That seemed to do it. I am now able to compile. Will try to upload using the Bluetooth adapter when I get home tonight. Thanks!
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Errors when compiling with dev branch

Post by sbidny »

I was able to upload using the Bluetooth adapter. However, I am now seeing tons of trailing random characters on the display. Seems as if it’s using uninitialized character buffers for strings.

Could it be that the prior version automatically initialized allocated buffers and that the new version requires an explicit initialization?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Errors when compiling with dev branch

Post by rimai »

Is it the plus or star board?
Roberto.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Errors when compiling with dev branch

Post by sbidny »

Plus
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Errors when compiling with dev branch

Post by rimai »

Can you post your code?
Roberto.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Errors when compiling with dev branch

Post by sbidny »

Just playing around right now, so there's not much to it. Basically, all it's doing is setting the 0-10v ports to 100%.

Code: Select all

#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 <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <Salinity.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <DCPump.h>
#include <PAR.h>
#include <ReefAngel.h>

void setup()
{
    // This must be the first line
    ReefAngel.Init();  //Initialize controller
    ReefAngel.AddStandardMenu();  // Add Standard Menu
    ReefAngel.Use2014Screen();  // Let's use 2014 Screen
}

void loop()
{
    ReefAngel.PWM.SetDaylight(100);
    ReefAngel.PWM.SetActinic(100);

    ReefAngel.Portal("sbidny");
    ReefAngel.CloudPortal();
    ReefAngel.DDNS("reef"); // Your DDNS is sbidny-reef.myreefangel.com
    // This should always be the last line
    ReefAngel.ShowInterface();
}

sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Errors when compiling with dev branch

Post by sbidny »

FYI, when I upload the same (minus the ReefAngel.CloudPortal() call) via Arduino 1.0.1, I don't see the same issue with trailing characters.

I'll try uploading using 1.8.6 without the CloudPortal() call.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Errors when compiling with dev branch

Post by sbidny »

Same issue.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Errors when compiling with dev branch

Post by rimai »

I wonder if this is a MacOSX issue only.
I'm not able to replicate.
lnevo, can you report if you have this issue?
Roberto.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Errors when compiling with dev branch

Post by sbidny »

I’ll try to get it going from Windows and see if the problem persists.
Post Reply