Welcome! Log In Create A New Profile

Advanced

Help compiling Marlin for Anet A8

Posted by dbbarron 
Help compiling Marlin for Anet A8
March 07, 2020 03:58PM
I have been using a Marlin firmware on my A8 for over a year and just decided to make some firmware changes.
I loaded everything up into Arduino IDE and have been having compiler errors.
I am on IDE 1.8.12
Marlin 1.1.9
I have the Anet 1.0 board definitions loaded and selected.

I have attached my config files and the compiler error log is below:
Suggestions?

Arduino: 1.8.12 (Mac OS X), Board: "Anet V1.0"

In file included from sketch/endstops.cpp:35:0:
sketch/endstop_interrupts.h: In function 'void setup_endstop_interrupts()':
endstop_interrupts.h:121:7: error: non-constant condition for static assertion
static_assert(digitalPinToPCICR(X_MIN_PIN) != NULL, "X_MIN_PIN is not interrupt-capable");
^~~~~~~~~~~~~
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:258:0,
from sketch/HAL.h:36,
from sketch/MarlinConfig.h:39,
from sketch/Marlin.h:35,
from sketch/endstops.cpp:27:
/Users/dbarronRMBP/Documents/Arduino/hardware/anet/avr/variants/sanguino/pins_arduino.h:117:66: error: reinterpret_cast from integer to pointer
#define digitalPinToPCICR(p) ( (((p) >= 0) && ((p) <= 31)) ? (&PCICR) : ((uint8_t *)0) )
~^~~~~~~
sketch/endstop_interrupts.h:121:21: note: in expansion of macro 'digitalPinToPCICR'
static_assert(digitalPinToPCICR(X_MIN_PIN) != NULL, "X_MIN_PIN is not interrupt-capable");
^~~~~~~~~~~~~~~~~
In file included from sketch/endstops.cpp:35:0:
endstop_interrupts.h:141:7: error: non-constant condition for static assertion
static_assert(digitalPinToPCICR(Y_MIN_PIN) != NULL, "Y_MIN_PIN is not interrupt-capable");
^~~~~~~~~~~~~
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:258:0,
from sketch/HAL.h:36,
from sketch/MarlinConfig.h:39,
from sketch/Marlin.h:35,
from sketch/endstops.cpp:27:
/Users/dbarronRMBP/Documents/Arduino/hardware/anet/avr/variants/sanguino/pins_arduino.h:117:66: error: reinterpret_cast from integer to pointer
#define digitalPinToPCICR(p) ( (((p) >= 0) && ((p) <= 31)) ? (&PCICR) : ((uint8_t *)0) )
~^~~~~~~
sketch/endstop_interrupts.h:141:21: note: in expansion of macro 'digitalPinToPCICR'
static_assert(digitalPinToPCICR(Y_MIN_PIN) != NULL, "Y_MIN_PIN is not interrupt-capable");
^~~~~~~~~~~~~~~~~
In file included from sketch/endstops.cpp:35:0:
endstop_interrupts.h:161:1: error: 'a' was not declared in this scope
a static_assert(digitalPinToPCICR(Z_MIN_PIN) != NULL, "Z_MIN_PIN is not interrupt-capable");
^
exit status 1
non-constant condition for static assertion

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Attachments:
open | download - Configuration.h (70.3 KB)
open | download - Configuration_adv.h (67.3 KB)
Re: Help compiling Marlin for Anet A8
March 07, 2020 08:30PM
The error is self explanatory

"X_MIN_PIN is not interrupt-capable"

So disable the line that says to use interrupts for endstops.
ie #define ENDSTOP_INTERRUPTS_FEATURE
Sorry, only registered users may post in this forum.

Click here to login