PlatformIO cannot compile Marlin for the LPC1769 environment

I’m trying to flash Marlin to my BigTreeTech SKR 1.4 Turbo main board, and have yet to comile a successful build.

I have searched for forums and have yet to find someone with the same problem as me.

It compiles just fine for any other board.

This is what the terminal spits out.

    Verbose mode can be enabled via `-v, --verbose` option
'"CC"' is not recognized as an internal or external command,
operable program or batch file.
CalledProcessError: Command '"CC" -D__MARLIN_FIRMWARE__ -DU8G_HAL_LINKS -D__MARLIN_DEPS__ -w -dM -E -x c++ buildroot/share/PlatformIO/scripts/common-dependencies.h' returned non-zero exit status 1.:
  File "C:\Users\leif_\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 168:
    env.SConscript(item, exports="env")
  File "C:\Users\leif_\.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\leif_\.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 "C:\Users\leif_\Desktop\MarlinFirmware\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 311:
    apply_features_config()
  File "C:\Users\leif_\Desktop\MarlinFirmware\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 142:
    if not env.MarlinFeatureIsEnabled(feature):
  File "C:\Users\leif_\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
    return self.method(*nargs, **kwargs)
  File "C:\Users\leif_\Desktop\MarlinFirmware\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 287:
    load_marlin_features()
  File "C:\Users\leif_\Desktop\MarlinFirmware\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 275:
    define_list = subprocess.check_output(cmd, shell=True).splitlines()
  File "C:\Users\leif_\.platformio\python3\lib\subprocess.py", line 411:
    **kwargs).stdout
  File "C:\Users\leif_\.platformio\python3\lib\subprocess.py", line 512:
=================================================================== [FAILED] Took 0.69 seconds ===================================================================

Environment    Status    Duration
-------------  --------  ------------
LPC1769        FAILED    00:00:00.691
============================================================= 1 failed, 0 succeeded in 00:00:00.691 ============================================================= 
PS C:\Users\leif_\Desktop\MarlinFirmware> echo "done" >C:\Users\leif_\AppData\Local\Temp\ipc
PS C:\Users\leif_\Desktop\MarlinFirmware>

I do remember this error message in a very long and complicated thread Why do I get this error everytime I try to build the new marlin firmware - #13 by NormanDunbar.

As a quick test, can you install http://mingw-w64.org/doku.php/download/mingw-builds and add it to your PATH so that gcc is executable from the commandline (ref)? Reboot your PC after that and retry compilation.

Another cause could be an outtdated Marlin version.

Thank you.

This worked perfectly.

1 Like