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

CONFIGURATION: [https://docs.platformio.org/page/boards/nxplpc-arduino-lpc176x/nxp_lpc1768.html](https://docs.platformio.org/page/boards/nxplpc-arduino-lpc176x/nxp_lpc1768.html?fbclid=IwAR3y8Hj7_s-lbaI6WevD9lwRSmOkHAUDAtxv_lO5qMzyitPLSJv21RIGWAE)

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\main.py", line 151:

env.SConscript("$BUILD_SCRIPT")

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

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

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

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

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

target_elf = env.BuildProgram()

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

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

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

env.BuildFrameworks(env.get("PIOFRAMEWORK"))

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

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

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

env.ConvertInoToCpp()

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

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

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

out_file = c.convert(ino_nodes)

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

return self.process(contents)

File "C:\Users\mltdo\.platformio\penv\lib\site-packages\platformio\builder\tools\piomisc.py", 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@http://dl.platformio.org/packages/toolchain-gccarmnoneeabi-windows_x86-1.80201.190214.tar.gz

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

1 Like