tronxy3d / F103_PIC480x320

STM32F103ZET { XY2-PRO|XY2_PRO_2E|XY3_PRO|XY3_PRO_V2|X5SA|X5SA_g|X5SA_PRO|X5SA_2E|X5SA400_PRO|X5SA400_2E|XY3SE|XY3SE_2E|XY3SE_V2|D01|D01_PLUS|C2 }
GNU General Public License v3.0
12 stars 6 forks source link

Compilation error #9

Open Spirit9580 opened 4 weeks ago

Spirit9580 commented 4 weeks ago

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. Снимок экрана 2024-11-03 232208

Maker-Paul commented 1 week 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))