Platform.io making a mess all of a sudden

Suddenly getting this error with marlin 2.0 builds ??

Processing LPC1768 (platform: https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.3.zip; board: nxp_lpc1768; framework: arduino)
--------------------------------------------------------------------------------
In file included from buildroot/share/PlatformIO/scripts/common-dependencies.h:63:
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/Conditionals_post.h:1639:1: error: user-defined literal in preprocessor expression
 1639 | #if _HAS_STOP(X,MIN)
      | ^~~~~~~~~
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/Conditionals_post.h:1642:1: error: user-defined literal in preprocessor expression
 1642 | #if _HAS_STOP(X,MAX)
      | ^~~~~~~~~
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/Conditionals_post.h:1645:1: error: user-defined literal in preprocessor expression
 1645 | #if _HAS_STOP(Y,MIN)
      | ^~~~~~~~~
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/Conditionals_post.h:1648:1: error: user-defined literal in preprocessor expression
 1648 | #if _HAS_STOP(Y,MAX)
      | ^~~~~~~~~
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/Conditionals_post.h:1651:1: error: user-defined literal in preprocessor expression
 1651 | #if _HAS_STOP(Z,MIN)
      | ^~~~~~~~~
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/Conditionals_post.h:1654:1: error: user-defined literal in preprocessor expression
 1654 | #if _HAS_STOP(Z,MAX)
      | ^~~~~~~~~
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/Conditionals_post.h:1657:1: error: user-defined literal in preprocessor expression
 1657 | #if _HAS_STOP(X,STOP)
      | ^~~~~~~~~~
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/Conditionals_post.h:1660:1: error: user-defined literal in preprocessor expression
 1660 | #if _HAS_STOP(Y,STOP)
      | ^~~~~~~~~~
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/Conditionals_post.h:1663:1: error: user-defined literal in preprocessor expression
 1663 | #if _HAS_STOP(Z,STOP)
      | ^~~~~~~~~~
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/Conditionals_post.h:1696:1: error: user-defined literal in preprocessor expression
 1696 | #if HAS_CUSTOM_PROBE_PIN && PIN_EXISTS(Z_MIN_PROBE)
      | ^~~~~~~~~~~~~~~
CalledProcessError: Command 'arm-none-eabi-g++.exe -D__MARLIN_FIRMWARE__ -DU8G_HAL_LINKS -D__MARLIN_PREBUILD__ -w -dM -E -x c++ buildroot/share/PlatformIO/scripts/common-dependencies.h' returned non-zero exit status 1.:
  File "C:\users\webbe\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 167:
    env.SConscript(item, exports="env")
  File "C:\Users\webbe\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 598:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\webbe\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 287:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "E:\Google Drev\3D Print info og id�er\DADSON 3D Printer Project\DADSON_101020_Marlin-2.0.6\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 280:
    apply_features_config()
  File "E:\Google Drev\3D Print info og id�er\DADSON 3D Printer Project\DADSON_101020_Marlin-2.0.6\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 112:
    if not env.MarlinFeatureIsEnabled(feature):
  File "C:\Users\webbe\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
    return self.method(*nargs, **kwargs)
  File "E:\Google Drev\3D Print info og id�er\DADSON 3D Printer Project\DADSON_101020_Marlin-2.0.6\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 256:
    load_marlin_features()
  File "E:\Google Drev\3D Print info og id�er\DADSON 3D Printer Project\DADSON_101020_Marlin-2.0.6\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 244:
    define_list = subprocess.check_output(cmd, shell=True).splitlines()
  File "C:\Users\webbe\.platformio\python3\lib\subprocess.py", line 411:
    **kwargs).stdout
  File "C:\Users\webbe\.platformio\python3\lib\subprocess.py", line 512:
    output=stdout, stderr=stderr)
========================== [FAILED] Took 0.59 seconds ==========================

Define suddenly. Was your PIO core version or the PIO platform updated? Did you change your board configuration header files?

Does upgrading the code to the latest marlin 2.0.7.1 help?

Searching up on this error message refers to a lot of issues stemming from incorrect board config files, e.g. in Marlin 2.0 can't complain when enabling neopixel · Issue #15386 · MarlinFirmware/Marlin · GitHub and need help with autobedleveling · Issue #5213 · MarlinFirmware/Marlin · GitHub.

What are your definitions for things like X_MIN_PIN? You’re e.g. referring to pins as not e.g. 2_00 but P2_00, right?

I’ll find my own way out :man_facepalming:

I was missing a P in the pin for the z axis probe P2.00 - I found out just by going through every change i made to the new marlin version. DOOOH

It is building and uploading now - but no homing or movement AT ALL on the steppers after the new marlin 2.0.7 ???

Okay, so very interestingely it was exactly as I had forseen :smiley:

As these are the PlatformIO forums, we might not have the Marlin configuration experts here (I certainly am not). Only advice I’m able to give here is triple check every pin and configuration settings, or adding some observable debug output in the firmware to check what pins for the stepper control chip it’s using (and what driver chip overall). I’m sure the people over at Issues · MarlinFirmware/Marlin · GitHub have more insight to offer there.