MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.28k stars 19.24k forks source link

[BUG] runtime error during build #25823

Closed riccalisci closed 1 year ago

riccalisci commented 1 year ago

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

Platformio don't build the firmware for my FLSUN Q5(2021-x), i have a motherboard mks robin nano v1.3(stock).

I've changed the motherboard in the Configuration.h file to BOARD_MKS_ROBIN_NANO_V1_3_F4 and i've changed the enviroment of platformio in the platformio.ini file to mks_robin_nano_v1_3_f4 (also changed in drop down menù).

if i change motherboard to mks robin nano v1.2 there isn't error during build.

Bug Timeline

No response

Expected behavior

No response

Actual behavior

No response

Steps to Reproduce

-changed env in the platformio.ini file to mks_robin_nano_v1_3_f4 -changed the mobo version to "BOARD_MKS_ROBIN_NANO_V1_3_F4" in Configuration.h -start building -Runtime error stop the build: RuntimeError: deque mutated during iteration: File "C:\Users\ricca\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 181: env.SConscript(env.GetExtraScripts("post"), exports="env") File "C:\Users\ricca\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 598: return _SConscript(self.fs, *files, **subst_kw) File "C:\Users\ricca\.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\ricca\Desktop\Marlin-2.1.2\buildroot\share\PlatformIO\scripts\offset_and_rename.py", line 28: marlin.replace_define('STM32_FLASH_SIZE', maximum_flash_size) File "C:\Users\ricca\Desktop\Marlin-2.1.2\buildroot\share\PlatformIO\scripts\marlin.py", line 19: for define in env['CPPDEFINES']:

Version of Marlin Firmware

2.1.2

Printer model

Flsun Q5

Electronics

MKS robin nano v1.3

Add-ons

TMC226 UART

Bed Leveling

UBL Bilinear mesh

Your Slicer

Prusa Slicer

Host Software

None

Don't forget to include

Additional information & file uploads

No response

riccalisci commented 1 year ago

Configuration.zip

thisiskeithb commented 1 year ago

define CONFIGURATION_H_VERSION 02010200

You did not test this with the latest version of Marlin.

define CONFIG_EXAMPLES_DIR "delta/FLSUN/Q5-nano_v1"

Using the current bugfix-2.1.x config from https://github.com/MarlinFirmware/Configurations/tree/bugfix-2.1.x/config/examples/delta/FLSUN/Q5-nano_v1, this builds fine:

details:

```prolog Linking .pio/build/mks_robin_nano_v1v2/firmware.elf Checking size .pio/build/mks_robin_nano_v1v2/firmware.elf Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [=== ] 33.6% (used 22044 bytes from 65536 bytes) Flash: [==== ] 44.0% (used 230472 bytes from 524288 bytes) Building .pio/build/mks_robin_nano_v1v2/firmware.bin encrypt([".pio/build/mks_robin_nano_v1v2/firmware.bin"], [".pio/build/mks_robin_nano_v1v2/firmware.elf"]) ==================================== [SUCCESS] Took 119.66 seconds ==================================== Environment Status Duration ------------------- -------- ------------ mks_robin_nano_v1v2 SUCCESS 00:01:59.664 ===================================== 1 succeeded in 00:01:59.664 ===================================== ```


Delete the hidden .pio folder at the root of your Marlin project and try compiling again.

If that doesn't work:

  1. Delete the hidden .platformio folder from your User directory:

    • Windows: %USERPROFILE%\.platformio\
    • macOS, Unix, Unix-like: ~/.platformio/
  2. Re-install PlatformIO.

    This Issue Queue is for Marlin bug reports and development-related issues, and we prefer not to handle user-support questions here. (As noted on this page.) For best results getting help with configuration and troubleshooting, please use the following resources:

riccalisci commented 1 year ago

Seem that you build for mks robin nano v1.2, right? I have a problem with v1.3 "BOARD_MKS_ROBIN_NANO_V1_3_F4"

thisiskeithb commented 1 year ago
mks_robin_nano_v1_3_f4 also builds fine:

```prolog Linking .pio/build/mks_robin_nano_v1_3_f4/firmware.elf Checking size .pio/build/mks_robin_nano_v1_3_f4/firmware.elf Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [=== ] 27.9% (used 36572 bytes from 131072 bytes) Flash: [== ] 21.8% (used 228804 bytes from 1048576 bytes) Building .pio/build/mks_robin_nano_v1_3_f4/firmware.bin rename_target([".pio/build/mks_robin_nano_v1_3_f4/firmware.bin"], [".pio/build/mks_robin_nano_v1_3_f4/firmware.elf"]) ==================================== [SUCCESS] Took 130.87 seconds ==================================== Environment Status Duration ---------------------- -------- ------------ mks_robin_nano_v1_3_f4 SUCCESS 00:02:10.868 ===================================== 1 succeeded in 00:02:10.868 ===================================== ```

riccalisci commented 1 year ago

ok, i will try. thanks a lot. i will let you know!

riccalisci commented 1 year ago

Works! Thank you very much!

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.