Open Spirit9580 opened 4 weeks ago
The reason is that in Marlin/buildroot/share/PlatformIO/scripts/marlin.py the iterated environment is getting modified during the iteration in the replace_define() function, update it as follows and the error will be gone:
def replace_define(field, value): found_define = None for define in env['CPPDEFINES']: if define[0] == field: found_define = define break if found_define: env['CPPDEFINES'].remove(found_define) env['CPPDEFINES'].append((field, value))
Hello!!! Is available Tronxy xy2 PRO, motherboard cxy-v6-191017, STM F103.... I don't understand Visual Studio Code well, but I've already compiled marlin version 2.0 several times.... but I can't handle this version. I tried to compile on different devices, but it gives an error. Please help me figure out the reason.