libraries not working with sparkfun redboard turbo

Hey all,

I’m currently trying to use an interpolation library to do some data manipulation. I’ve downloaded the library for arduino IDE, but everytime I try to compile the code I get an error. It basically says it cannot compile due to an error in the actual library code, I’m not sure if there is a way around because the library works just fine if the IDE is set to arduino UNO, but gives an error if I use the redboard turbo. Not sure what to do, but any help would be greatly appreciated. Further down is the error message

C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:10:114: error: default argument given for parameter 5 of ‘static double Interpolation::Step(double*, double*, int, double, double)’ [-fpermissive]

double Interpolation::Step(double xValues, double yValues, int numValues, double pointX, double threshold = 1)

^

In file included from C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:8:0:

C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.h:66:16: error: after previous specification in ‘static double Interpolation::Step(double*, double*, int, double, double)’ [-fpermissive]

static double Step(double xValues, double yValues, int numValues, double pointX, double threshold = 1);

^

C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:24:112: error: default argument given for parameter 5 of ‘static double Interpolation::Linear(double*, double*, int, double, bool)’ [-fpermissive]

double Interpolation::Linear(double xValues, double yValues, int numValues, double pointX, bool trim = true)

^

In file included from C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:8:0:

C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.h:70:16: error: after previous specification in ‘static double Interpolation::Linear(double*, double*, int, double, bool)’ [-fpermissive]

static double Linear(double xValues, double yValues, int numValues, double pointX, bool trim = true);

^

C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:56:116: error: default argument given for parameter 5 of ‘static double Interpolation::SmoothStep(double*, double*, int, double, bool)’ [-fpermissive]

double Interpolation::SmoothStep(double xValues, double yValues, int numValues, double pointX, bool trim = true)

^

In file included from C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:8:0:

C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.h:72:16: error: after previous specification in ‘static double Interpolation::SmoothStep(double*, double*, int, double, bool)’ [-fpermissive]

static double SmoothStep(double xValues, double yValues, int numValues, double pointX, bool trim = true);

^

C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:75:119: error: default argument given for parameter 5 of ‘static double Interpolation::CatmullSpline(double*, double*, int, double, bool)’ [-fpermissive]

double Interpolation::CatmullSpline(double xValues, double yValues, int numValues, double pointX, bool trim = true)

^

In file included from C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:8:0:

C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.h:73:16: error: after previous specification in ‘static double Interpolation::CatmullSpline(double*, double*, int, double, bool)’ [-fpermissive]

static double CatmullSpline(double xValues, double yValues, int numValues, double pointX, bool trim = true);

^

C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:131:123: error: default argument given for parameter 5 of ‘static double Interpolation::ConstrainedSpline(double*, double*, int, double, bool)’ [-fpermissive]

double Interpolation::ConstrainedSpline(double xValues, double yValues, int numValues, double pointX, bool trim = true)

^

In file included from C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:8:0:

C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.h:74:16: error: after previous specification in ‘static double Interpolation::ConstrainedSpline(double*, double*, int, double, bool)’ [-fpermissive]

static double ConstrainedSpline(double xValues, double yValues, int numValues, double pointX, bool trim = true);

^

exit status 1

Error compiling for board SparkFun RedBoard Turbo.

I think you need to update the board definitions through Arduino IDE and try again.

Ok I’ll try again

In my case, the IDE 2 can’t find Serial. This stub works fine on Zero:

void setup() {

Serial.begin(9600);

}

void loop() {

delay(1000);

Serial.println(“hello, world”);

}

But, when it’s compiled with RedBoard Turbo, I get this error message:

C:\Users\kels\AppData\Local\Temp\arduino\sketches\B255FF406E7A217ED08B6D6B9533FF74\sketch\sketch_nov1a.ino.cpp.o: In function `loop’:

C:\Users\kels\OneDrive\Documents\Arduino\Dave\sketch_nov1a/sketch_nov1a.ino:8: undefined reference to `Serial’

C:\Users\kels\AppData\Local\Temp\arduino\sketches\B255FF406E7A217ED08B6D6B9533FF74\sketch\sketch_nov1a.ino.cpp.o: In function `setup’:

C:\Users\kels\OneDrive\Documents\Arduino\Dave\sketch_nov1a/sketch_nov1a.ino:3: undefined reference to `Serial’

collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

Any ideas?

The Redboard Turbo uses SERCOM for serial; check out this section of our guide https://learn.sparkfun.com/tutorials/re … rial-ports