tronxy3d / F4xx-SIM480x320

STM32F446 or GD32F4xx [V2.18.0] {XY2-PRO, XY2_PRO_2E, XY2_PRO_3E, X5SA, X5SA_g, X5SA_MINI, X5SA_PRO, X5SA_2E, X5SA_PRO_3E, X5SA400, X5SA400_PRO, X5SA400_2E, X5SA500_2E, VEHO500, VEHO500_2E, XY3-PRO, XY3_PB, XY3-PRO-V2, XY3SE, XY3SE_2E, XY3SE_V2, D01, D01_PLUS, VEHO600, VEHO600_2E, C2}
GNU General Public License v3.0
32 stars 24 forks source link

Cant get it to compile/build #20

Open Blackcatswiskas opened 1 year ago

Blackcatswiskas commented 1 year ago

I am having real issues here I received a compiled bin file from someone for the X5sa 500pro with 466 bit it only turns on z motor so tried to compile myself only to get errors what am i doing wrong? RuntimeError: deque mutated during iteration: File "C:.platformio\penv\lib\site-packages\platformio\builder\main.py", line 181: env.SConscript(env.GetExtraScripts("post"), exports="env") File "D:.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 598: return _SConscript(self.fs, *files, **subst_kw) File "D:.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 285: exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals) File "C:\Users\tinas\Downloads\F4xx-SIM480x320-SIM480x320-2.18.0r\F4xx-SIM480x320-SIM480x320-2.18.0r\buildroot\share\PlatformIO\scripts\tronxy_scrypt.py", line 8: marlin.relocate_vtab(board.get('build.offset')) File "C:\Users\tinas\Downloads\F4xx-SIM480x320-SIM480x320-2.18.0r\F4xx-SIM480x320-SIM480x320-2.18.0r\buildroot\share\PlatformIO\scripts\marlin.py", line 30: replace_define("VECT_TAB_OFFSET", address) File "C:\Users\tinas\Downloads\F4xx-SIM480x320-SIM480x320-2.18.0r\F4xx-SIM480x320-SIM480x320-2.18.0r\buildroot\share\PlatformIO\scripts\marlin.py", line 19: for define in env['CPPDEFINES']:

EQNish commented 1 year ago

Same, just tried to compile and get the exact same errors `FIGURATION: https://docs.platformio.org/page/boards/ststm32/tronxy_stm32f446zet.html PLATFORM: ST STM32 (12.1.1) > STM32F446ZE (128k RAM. 512k Flash) HARDWARE: STM32F446ZET6 180MHz, 128KB RAM, 512KB Flash DEBUG: Current (blackmagic) External (blackmagic, jlink, stlink) PACKAGES:

Environment Status Duration`

Tukamok commented 1 year ago

I'm getting the same. I have had prior success with getting this to build, but something has changed recently and I'm not sure exactly what.

Tukamok commented 1 year ago

The issue appears to be related to an update to PlatformIO. Since it autoupdates rolling back might be difficult, but there appears to be a fix here

specifically maxgerhardt's second response:

replace

def replace_define in line 16 (or so) in buildroot/share/PlatformIO/scripts/marlin.py

with

def replace_define(field, value): envdefs = env['CPPDEFINES'].copy() for define in envdefs: if define[0] == field: env['CPPDEFINES'].remove(define) env['CPPDEFINES'].append((field, value))