Jump to content

Recommended Posts

Posted

I'm trying to configure the motherboard Firmware with marlin and visual studio.

In platform.ini the env is default_envs= STM32G0B1RE_btt and in configuration.h the motherboard is BOARD_BTT_SKR_MINI_E3_V3_0

Unfortunaly the firmaware can not be build. I already tried to  copy the stable version firmware variant_MARLIN_STM32G0B1RE.cpp, variant_MARLIN_STM32G0B1RE.h, ldscript.ld, PeripheralPins.c from your link located in the path buildroot/share/PlatformIO/variants to the library directory of our machine in C:\Users\Administrator.platformio\packages\framework-arduinoststm32\variants\STM32G0xx\G0B1R (BCE) (IT) xN_G0C1R (CE) (IT) xN.

But I obtain always the same error:

Executing task in folder Marlin-2.0.x: C:\.platformio\penv\Scripts\platformio.exe run --environment STM32G0B1RE_btt <

Processing STM32G0B1RE_btt (platform: ststm32@~14.1.0; board: marlin_STM32G0B1RE; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

ModuleNotFoundError: No module named 'elftools.common':
  File "C:\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 97:
    env = DefaultEnvironment(**DEFAULT_ENV_OPTIONS)
  File "C:\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Defaults.py", line 84:
    _default_env = SCons.Environment.Environment(*args, **kw)
  File "C:\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Environment.py", line 1010:
    apply_tools(self, tools, toolpath)
  File "C:\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Environment.py", line 116:
    _ = env.Tool(tool)
  File "C:\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Environment.py", line 1878:
    tool = SCons.Tool.Tool(tool, toolpath, **kwargs)
  File "C:\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Tool\__init__.py", line 120:
    module = self._tool_module()
  File "C:\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Tool\__init__.py", line 209:
    module = spec.loader.load_module(spec.name)
  File "<frozen importlib._bootstrap_external>", line 407:
    
  File "<frozen importlib._bootstrap_external>", line 907:
    
  File "<frozen importlib._bootstrap_external>", line 732:
    
  File "<frozen importlib._bootstrap>", line 265:
    
  File "<frozen importlib._bootstrap>", line 696:
    
  File "<frozen importlib._bootstrap>", line 677:
    
  File "<frozen importlib._bootstrap_external>", line 728:
    
  File "<frozen importlib._bootstrap>", line 219:
    
  File "C:\.platformio\penv\lib\site-packages\platformio\builder\tools\piosize.py", line 24:
    from elftools.elf.descriptions import describe_sh_flags
  File "C:\.platformio\penv\lib\site-packages\elftools\elf\descriptions.py", line 9:
    from .enums import (
  File "C:\.platformio\penv\lib\site-packages\elftools\elf\enums.py", line 9:
    from ..common.utils import merge_dicts
====================================================================================== [FAILED] Took 0.86 seconds ======================================================================================

Environment      Status    Duration
---------------  --------  ------------
STM32G0B1RE_btt  FAILED    00:00:00.864
================================================================================= 1 failed, 0 succeeded in 00:00:00.864 =================================================================================

The terminal process "C:\.platformio\penv\Scripts\platformio.exe 'run', '--environment', 'STM32G0B1RE_btt'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

Posted

For anyone who culd have the same problem. I fixed it creating the directory C:\Users\Administrator.platformio\packages\framework-arduinoststm32\variants\STM32G0xx\MARLIN_G0B1RE
and inside it I placed the file from the link https://github.com/bigtreetech/Marlin/tree/SKR-mini-E3-V3.0-G0B1/buildroot/share/PlatformIO/variants/STM32G0xx/MARLIN_G0B1RE

Pay attention that the ldscript.ld is saved as a .ld file and not a .ld.text file

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...