Welcome! Log In Create A New Profile

Advanced

Marlin 2.1.x Bugfix on GT2560 rev A+ Error compiling

Posted by Use Less UK 
Marlin 2.1.x Bugfix on GT2560 rev A+ Error compiling
February 09, 2024 01:44PM
Greetings,

I get the following errors when trying to compile Marlin in VS Code
Processing mega2560 (board: megaatmega2560; platform: atmelavr@~4.0.1; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
In file included from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfigPre.h:39:0,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfig.h:28,
                 from buildroot/share/PlatformIO/scripts/common-dependencies.h:29:
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration.h:284:11: error: missing binary operator before token "("
 #if EITHER(PARKING_EXTRUDER, MAGNETIC_PARKING_EXTRUDER)
           ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration.h:991:11: error: missing binary operator before token "("
 #if EITHER(MORGAN_SCARA, MP_SCARA)
           ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration.h:1798:11: error: missing binary operator before token "("
 #if EITHER(MIN_SOFTWARE_ENDSTOPS, MAX_SOFTWARE_ENDSTOPS)
           ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration.h:2000:11: error: missing binary operator before token "("
 #if EITHER(AUTO_BED_LEVELING_LINEAR, AUTO_BED_LEVELING_BILINEAR)
           ^
In file included from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfigPre.h:39:0,
                 from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfig.h:28,
                 from buildroot/share/PlatformIO/scripts/common-dependencies.h:29:
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration.h:3047:11: error: missing binary operator before token "("
 #if EITHER(ANYCUBIC_LCD_I3MEGA, ANYCUBIC_LCD_CHIRON)
           ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration.h:3335:11: error: missing binary operator before token "("
 #if EITHER(RGB_LED, RGBW_LED)
           ^
Error: Failed to parse Marlin features. See previous error messages.

I've checked the `Marlin->src->core->macros.h` file and there's no sign of a define for EITHER

Anyone any ideas on how to fix this issue?

Edited 1 time(s). Last edit at 02/09/2024 05:07PM by Use Less UK.
Re: Marlin 2.1.x Bugfix on GT2560 rev A+ Error compiling
February 09, 2024 09:44PM
Your using miss matched config and code versions

Your code does not have EITHER macro as used in the Config files you have.

EITHER and BOTH macros where removed as a unnecessary duplication of others macros that already existed

Get matching versions of code and config files

Or update your config files, replace EITHER with ANY and replace BOTH with ALL, and fix any and all other changes required (which are probably numerous)

Edited 2 time(s). Last edit at 02/10/2024 02:15AM by Dust.
Re: Marlin 2.1.x Bugfix on GT2560 rev A+ Error compiling
February 10, 2024 12:13PM
Thanks for the response ... even using V2.1.2.2 which will compile although it still doesn't work correctly as it fails to home Z.

Last version that worked for me on this printer was v2.0.7.3 all version after that which I've tried all fail to home z, after the first time the BLTouch probe is triggered the extruder is not raised again and the BLTouch probe is extended which cannot then trigger as it's not been moved up at all.

See these videos for a better understanding;

Marlin v2.1.2.2 [www.youtube.com]

Marlin v2.0.7.3 [www.youtube.com]
Re: Marlin 2.1.x Bugfix on GT2560 rev A+ Error compiling
February 11, 2024 03:18AM
Please try out [reprap.org] as requested 4 months ago

Updated bugfix 2.1.x configs Configuration.zip
Re: Marlin 2.1.x Bugfix on GT2560 rev A+ Error compiling
February 11, 2024 04:50AM
Quote
Dust
Please try out [reprap.org] as requested 4 months ago

Updated bugfix 2.1.x configs [attachment 120803 Configuration.zip]

I did ... I couldn't find the configurations for the 2.1.x bugfix version.

However, with some tweaks ... changed stepper drivers and a couple of other things verion 2.1.x bugfix compiles and successfully homes.
Sorry, only registered users may post in this forum.

Click here to login