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\", line 168:
    env.SConscript(item, exports="env")
  File "C:\Users\leif_\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\", line 598:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\leif_\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\", line 287:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "C:\Users\leif_\Desktop\MarlinFirmware\buildroot\share\PlatformIO\scripts\", line 311:
  File "C:\Users\leif_\Desktop\MarlinFirmware\buildroot\share\PlatformIO\scripts\", line 142:
    if not env.MarlinFeatureIsEnabled(feature):
  File "C:\Users\leif_\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\", line 219:
    return self.method(*nargs, **kwargs)
  File "C:\Users\leif_\Desktop\MarlinFirmware\buildroot\share\PlatformIO\scripts\", line 287:
  File "C:\Users\leif_\Desktop\MarlinFirmware\buildroot\share\PlatformIO\scripts\", line 275:
    define_list = subprocess.check_output(cmd, shell=True).splitlines()
  File "C:\Users\leif_\.platformio\python3\lib\", line 411:
  File "C:\Users\leif_\.platformio\python3\lib\", 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 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