Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] STM32F103RET6_creality fails to compile for Ender 3 V2 #23829

Closed
BradA1234 opened this issue Mar 1, 2022 · 3 comments
Closed

[BUG] STM32F103RET6_creality fails to compile for Ender 3 V2 #23829

BradA1234 opened this issue Mar 1, 2022 · 3 comments

Comments

@BradA1234
Copy link

BradA1234 commented Mar 1, 2022

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

Yes, and the problem still exists.

Bug Description

STM32F103RET6_creality fails to compile for ender 3 V2. I am following a YouTube video to add in BLtouch/ filament sensor. please see time 8:00-10:00 for what is changed from default. https://www.youtube.com/watch?v=neS7lB7fCww

any direction is appreciated, I'm new to this

Error code:

Log Output
 Executing task: C:\Users\BradA\.platformio\penv\Scripts\platformio.exe run <

Processing STM32F103RET6_creality (platform: native; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
'"CC"' is not recognized as an internal or external command,
operable program or batch file.
CalledProcessError: Command '"CC" -D__MARLIN_FIRMWARE__ -DNDEBUG -D__MARLIN_DEPS__ -w -dM -E -x c++ buildroot/share/PlatformIO/scripts/common-dependencies.h' returned non-zero exit status 1.:
  File "C:\Users\BradA\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 179:
    env.SConscript(item, exports="env")
  File "C:\Users\BradA\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\SConscript.py", line 597:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\BradA\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\SConscript.py", line 285:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "C:\Users\BradA\Downloads\Marlin-bugfix-2.0.x\Marlin-bugfix-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", 
line 247:
    apply_features_config()
  File "C:\Users\BradA\Downloads\Marlin-bugfix-2.0.x\Marlin-bugfix-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", 
line 133:
    if not env.MarlinFeatureIsEnabled(feature):
  File "C:\Users\BradA\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Util.py", line 742:
    return self.method(*nargs, **kwargs)
  File "C:\Users\BradA\Downloads\Marlin-bugfix-2.0.x\Marlin-bugfix-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", 
line 216:
    load_marlin_features()
  File "C:\Users\BradA\Downloads\Marlin-bugfix-2.0.x\Marlin-bugfix-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", 
line 204:
    define_list = run_preprocessor(env)
  File "C:\Users\BradA\Downloads\Marlin-bugfix-2.0.x\Marlin-bugfix-2.0.x\buildroot\share\PlatformIO\scripts\preprocessor.py", line 42:
    define_list = subprocess.check_output(cmd, shell=True).splitlines()
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2800.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 424: 
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2800.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 528: 
    raise CalledProcessError(retcode, process.args,
==================================================== [FAILED] Took 0.54 seconds ====================================================

Environment             Status    Duration
----------------------  --------  ------------
STM32F103RET6_creality  FAILED    00:00:00.538
=============================================== 1 failed, 0 succeeded in 00:00:00.538 ===============================================The terminal process "C:\Users\BradA\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.
![image](https://user-images.githubusercontent.com/100664272/156108520-09594143-dec5-42e3-b650-6c7489be776d.png)

Expected behavior

I expect it to compile

Actual behavior

failed

Version of Marlin Firmware

MARLIN-BUGFIX-2.0.X

Printer model

ender 3 V@ 4.2.7

@ellensp ellensp closed this as completed Mar 1, 2022
@ellensp
Copy link
Contributor

ellensp commented Mar 1, 2022

STM32F103RET6_creality is STM32F103RE_creality in bugfix and future marlins

@ellensp
Copy link
Contributor

ellensp commented Mar 1, 2022

This was actually a bug in bugfix,
It should have handled attempting to use a retired environment name much better than this error.

I have submitted a request to have this fixed.

Once this is added to the code It will now say

Error: Build environment 'STM32F103RET6_creality' is incompatible with BOARD_CREALITY_V4. Use one of these: STM32F103RE_creality, STM32F103RE_creality_xfer, STM32F103RC_creality, STM32F103RC_creality_xfer, STM32F103RE_creality_maple

@thinkyhead thinkyhead changed the title [BUG] (bug summary) STM32F103RET6_creality fails to compile for ender 3 V2. [BUG] STM32F103RET6_creality fails to compile for Ender 3 V2 Apr 10, 2022
@github-actions
Copy link

github-actions bot commented Jun 9, 2022

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.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants