Problem with build

Hi.
For a few days I have problem with build. I didn’t have one before problem.

Warning! Ignore unknown configuration option monitor_flags in section [env]
*** [.pio\build\LPC1768\src\src\HAL\LPC1768\u8g\u8g_com_HAL_LPC1768_sw_spi.cpp.o] Error 4294967295
*** [.pio\build\LPC1768\src\src\HAL\LPC1768\u8g\u8g_com_HAL_LPC1768_st7920_sw_spi.cpp.o] Error 4294967295
========================================================================================= [FAILED] Took 15.33 seconds =========================================================================================

Environment Status Duration


LPC1768 FAILED 00:00:15.333
==================================================================================== 1 failed, 0 succeeded in 00:00:15.333 ====================================================================================

Does anyone know what is causing it and how to fix it?

Monitor flags has been removed from PlatformIO some ago, this indicates you’re trying to compile a heavily outdated version Marlin.

Try removing all packages (C:\Users\<user>\.platformio\packages) and cache (``C:\Users<user>.platformio`) and build again. Make sure antivirus does not interfere.

I was using version 2.0.9.5 but on 2.1.1 is the same problem. I removed packages and cache but it didn’t help.

Marlin 2.1.1
*** [.pio\build\LPC1768\src\src\HAL\LPC1768\u8g\u8g_com_HAL_LPC1768_st7920_sw_spi.cpp.o] Error 4294967295
*** [.pio\build\LPC1768\src\src\HAL\LPC1768\u8g\u8g_com_HAL_LPC1768_sw_spi.cpp.o] Error 4294967295

What were the changes since it worked last time?

Do previous files compiles fine and it’s only these ones? If yes, you might want to enable win32 long paths.

The changes don’t matter because the back up with the older configuration didn’t compile, but I was adding an inductive sensor and I set auto leveling. Enabling win32 long paths did nothing.