Problem trying to compile marlin for rearm

hey guys i need a little help. im trying to build my marlin 2.0x for a ramps1.4 with rearm but when trying to build i get this error i have tried to search but havent found the issue if anyone can helo be very grateful

Error from atom


PLATFORM: NXP Arduino LPC176x 0.1.1 > NXP LPC1768

HARDWARE: LPC1768 100MHz, 31.97KB RAM, 464KB Flash

DEBUG: Current (cmsis-dap) On-board (cmsis-dap) External (blackmagic, jlink)

PACKAGES: toolchain-gccarmnoneeabi 1.80201.190214 (8.2.1), framework-arduino-lpc176x 0.2.2

Converting Marlin.ino

'arm-none-eabi-g++' is not recognized as an internal or external command,

operable program or batch file.

*** Error 1

AssertionError: :

File "C:\Users\mltdo\.platformio\penv\lib\site-packages\platformio\builder\", line 151:


File "C:\Users\mltdo\.platformio\packages\tool-scons\script\..\engine\SCons\Script\", line 605:

return _SConscript(self.fs, *files, **subst_kw)

File "C:\Users\mltdo\.platformio\packages\tool-scons\script\..\engine\SCons\Script\", line 286:

exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)

File "C:\Users\mltdo\.platformio\platforms\nxplpc-arduino-lpc176x\builder\", line 148:

target_elf = env.BuildProgram()

File "C:\Users\mltdo\.platformio\packages\tool-scons\script\..\engine\SCons\", line 224:

return self.method(*nargs, **kwargs)

File "C:\Users\mltdo\.platformio\penv\lib\site-packages\platformio\builder\tools\", line 115:


File "C:\Users\mltdo\.platformio\packages\tool-scons\script\..\engine\SCons\", line 224:

return self.method(*nargs, **kwargs)

File "C:\Users\mltdo\.platformio\penv\lib\site-packages\platformio\builder\tools\", line 316:


File "C:\Users\mltdo\.platformio\packages\tool-scons\script\..\engine\SCons\", line 224:

return self.method(*nargs, **kwargs)

File "C:\Users\mltdo\.platformio\penv\lib\site-packages\platformio\builder\tools\", line 207:

out_file = c.convert(ino_nodes)

File "C:\Users\mltdo\.platformio\penv\lib\site-packages\platformio\builder\tools\", line 59:

return self.process(contents)

File "C:\Users\mltdo\.platformio\penv\lib\site-packages\platformio\builder\tools\", line 80:

assert self._gcc_preprocess(contents, out_file)

========================== [FAILED] Took 7.74 seconds ==========================

This topic is discussed here: Can not compile: arm-none-eabi-g++: command not found - #8 by maxgerhardt

The problem lies that the 3rd-party platform you’re using attempts to use a Linux 64-bit compiler for your Windows system, which of course doesn’t work. As a first fix, you should force the usage of a compiler for Windows by adding:

platform_packages = toolchain-gccarmnoneeabi@

in the environment you’re compiling for in the platformio.ini.

1 Like