Teknic-ClearPath / ClearPath-Arduino-Step-And-Direction

24 stars 21 forks source link

Adafruit Grand Central M4 Express compile issues #1

Closed youcangetme closed 4 years ago

youcangetme commented 4 years ago

Just an FYI, the Adafruit Grand Central Express is a Arduino MEGA 2560 form factor board powered by the SAMD51. A 32 bit MEGA 2560 board basically with a fast execution time. Anyways, when you try to compile the ClearPath library you get the following;

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathMotorSD.cpp: In member function 'void ClearPathMotorSD::stopMove()':

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathMotorSD.cpp:300:2: error: 'cli' was not declared in this scope

cli();

^~~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathMotorSD.cpp:300:2: note: suggested alternative: 'Mclk'

cli();

^~~

Mclk

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathMotorSD.cpp:311:2: error: 'sei' was not declared in this scope

sei();

^~~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathMotorSD.cpp:311:2: note: suggested alternative: 'Qspi'

sei();

^~~

Qspi

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathMotorSD.cpp: In member function 'boolean ClearPathMotorSD::moveFast(long int)':

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathMotorSD.cpp:364:5: error: 'cli' was not declared in this scope

 cli();

 ^~~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathMotorSD.cpp:364:5: note: suggested alternative: 'Mclk'

 cli();

 ^~~

 Mclk

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathMotorSD.cpp:367:5: error: 'sei' was not declared in this scope

 sei();

 ^~~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathMotorSD.cpp:367:5: note: suggested alternative: 'Qspi'

 sei();

 ^~~

 Qspi

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathMotorSD.cpp:377:4: error: 'cli' was not declared in this scope

cli();

^~~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathMotorSD.cpp:377:4: note: suggested alternative: 'Mclk'

cli();

^~~

Mclk

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathMotorSD.cpp:380:4: error: 'sei' was not declared in this scope

sei();

^~~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathMotorSD.cpp:380:4: note: suggested alternative: 'Qspi'

sei();

^~~

Qspi

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:55:4: error: expected constructor, destructor, or type conversion before '(' token

ISR(TIMER2_COMPA_vect)

^

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp: In member function 'void ClearPathStepGen::Start()':

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:295:2: error: 'cli' was not declared in this scope

cli();//stop interrupts

^~~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:295:2: note: suggested alternative: 'Mclk'

cli();//stop interrupts

^~~

Mclk

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:298:4: error: 'TCCR2A' was not declared in this scope

TCCR2A = 0;// set entire TCCR2A register to 0

^~~~~~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:298:4: note: suggested alternative: 'TCC2'

TCCR2A = 0;// set entire TCCR2A register to 0

^~~~~~

TCC2

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:299:3: error: 'TCCR2B' was not declared in this scope

TCCR2B = 0;// same for TCCR2B

^~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:299:3: note: suggested alternative: 'TCC2'

TCCR2B = 0;// same for TCCR2B

^~

TCC2

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:300:3: error: 'TCNT2' was not declared in this scope

TCNT2 = 0;//initialize counter value to 0

^~~~~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:300:3: note: suggested alternative: 'TCC2'

TCNT2 = 0;//initialize counter value to 0

^~~~~

TCC2

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:303:3: error: 'OCR2A' was not declared in this scope

OCR2A = time;// time should be 249, 1-256 will produce different frequencies

^~~~~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:306:19: error: 'WGM21' was not declared in this scope

TCCR2A |= (1 << WGM21);

               ^~~~~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:310:19: error: 'CS01' was not declared in this scope

TCCR2B |= (1 << CS01) | (1 << CS00);

               ^~~~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:310:19: note: suggested alternative: 'SS1'

TCCR2B |= (1 << CS01) | (1 << CS00);

               ^~~~

               SS1

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:310:33: error: 'CS00' was not declared in this scope

TCCR2B |= (1 << CS01) | (1 << CS00);

                             ^~~~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:310:33: note: suggested alternative: 'B100'

TCCR2B |= (1 << CS01) | (1 << CS00);

                             ^~~~

                             B100

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:313:3: error: 'TIMSK2' was not declared in this scope

TIMSK2=0;

^~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:314:19: error: 'OCIE2A' was not declared in this scope

TIMSK2 |= (1 << OCIE2A);

               ^~~~~~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:316:3: error: 'sei' was not declared in this scope

sei();//allow interrupts

^~~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:316:3: note: suggested alternative: 'Qspi'

sei();//allow interrupts

^~~

Qspi

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp: In member function 'void ClearPathStepGen::Stop()':

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:326:2: error: 'cli' was not declared in this scope

cli();//stop interrupts

^~~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:326:2: note: suggested alternative: 'Mclk'

cli();//stop interrupts

^~~

Mclk

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:329:2: error: 'TCCR2A' was not declared in this scope

TCCR2A = 0;// set entire TCCR2A register to 0

^~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:329:2: note: suggested alternative: 'TCC2'

TCCR2A = 0;// set entire TCCR2A register to 0

^~

TCC2

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:330:3: error: 'TCCR2B' was not declared in this scope

TCCR2B = 0;// same for TCCR2B

^~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:330:3: note: suggested alternative: 'TCC2'

TCCR2B = 0;// same for TCCR2B

^~

TCC2

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:331:3: error: 'TCNT2' was not declared in this scope

TCNT2 = 0;//initialize counter value to 0

^~~~~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:331:3: note: suggested alternative: 'TCC2'

TCNT2 = 0;//initialize counter value to 0

^~~~~

TCC2

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:333:3: error: 'sei' was not declared in this scope

sei();//allow interrupts

^~~

C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen\ClearPathStepGen.cpp:333:3: note: suggested alternative: 'Qspi'

sei();//allow interrupts

^~~

Qspi

Multiple libraries were found for "Adafruit_NeoPixel.h" Used: C:\Users\youca\Documents\Arduino\libraries\Adafruit_NeoPixel Multiple libraries were found for "ClearPathMotorSD.h" Used: C:\Users\youca\Documents\Arduino\libraries\ClearPathStepGen exit status 1 Error compiling for board Adafruit Grand Central M4 (SAMD51).

``

youcangetme commented 4 years ago

I will try to get around to this issue and see if I can do the port myself.

youcangetme commented 4 years ago

Ended up using the AccelStepper library instead.