Add new comment

I'm getting a compile error with the code1.1.9+Bug release

/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/rwillett/Library/Arduino15/packages/Sanguino/hardware/avr/1.0.3/variants/sanguino -I/Users/rwillett/Documents/Arduino/libraries/U8glib/src /var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/sketch/power_loss_recovery.cpp -o /var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/sketch/power_loss_recovery.cpp.o
In file included from /var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/sketch/endstops.cpp:35:0:
/var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/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");
       ^~~~~~~~~~~~~
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/rwillett/Library/Arduino15/packages/Sanguino/hardware/avr/1.0.3/variants/sanguino -I/Users/rwillett/Documents/Arduino/libraries/U8glib/src /var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/sketch/servo.cpp -o /var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/sketch/servo.cpp.o
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:258:0,
                 from /var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/sketch/HAL.h:36,
                 from /var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/sketch/MarlinConfig.h:39,
                 from /var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/sketch/Marlin.h:35,
                 from /var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/sketch/endstops.cpp:27:
/Users/rwillett/Library/Arduino15/packages/Sanguino/hardware/avr/1.0.3/variants/sanguino/pins_arduino.h:112:70: error: reinterpret_cast from integer to pointer
 #define digitalPinToPCICR(p)        ( (((p) >= 0) && ((p) <= 31)) ? (&PCICR) : ((uint8_t *)0) )
                                                                     ~^~~~~~~
/var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/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 /var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/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 /var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/sketch/HAL.h:36,
                 from /var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/sketch/MarlinConfig.h:39,
                 from /var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/sketch/Marlin.h:35,
                 from /var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/sketch/endstops.cpp:27:
/Users/rwillett/Library/Arduino15/packages/Sanguino/hardware/avr/1.0.3/variants/sanguino/pins_arduino.h:112:70: error: reinterpret_cast from integer to pointer
 #define digitalPinToPCICR(p)        ( (((p) >= 0) && ((p) <= 31)) ? (&PCICR) : ((uint8_t *)0) )
                                                                     ~^~~~~~~
/var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/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 /var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/sketch/endstops.cpp:35:0:
endstop_interrupts.h:161:7: error: non-constant condition for static assertion
       static_assert(digitalPinToPCICR(Z_MIN_PIN) != NULL, "Z_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 /var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/sketch/HAL.h:36,
                 from /var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/sketch/MarlinConfig.h:39,
                 from /var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/sketch/Marlin.h:35,
                 from /var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/sketch/endstops.cpp:27:
/Users/rwillett/Library/Arduino15/packages/Sanguino/hardware/avr/1.0.3/variants/sanguino/pins_arduino.h:112:70: error: reinterpret_cast from integer to pointer
 #define digitalPinToPCICR(p)        ( (((p) >= 0) && ((p) <= 31)) ? (&PCICR) : ((uint8_t *)0) )
                                                                     ~^~~~~~~
/var/folders/6b/cdzfwv0j0mdgpg60zgl5k9n80000gn/T/arduino_build_238352/sketch/endstop_interrupts.h:161:21: note: in expansion of macro 'digitalPinToPCICR'
       static_assert(digitalPinToPCICR(Z_MIN_PIN) != NULL, "Z_MIN_PIN is not interrupt-capable");

Do you want to setup a github repository and I can help debug and compile? Your call.

Also happy to take this offline to avoid polluting this board.

Rob

The content of this field is kept private and will not be shown publicly.