Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all articles
Browse latest Browse all 2831

Help compiling Marlin for Anet A8 (no replies)

$
0
0
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.

Viewing all articles
Browse latest Browse all 2831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>