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] Can't compile firmware for Creality V4.5.2 #353

Open
Byrnes9 opened this issue Mar 11, 2025 · 6 comments
Open

[BUG] Can't compile firmware for Creality V4.5.2 #353

Byrnes9 opened this issue Mar 11, 2025 · 6 comments

Comments

@Byrnes9
Copy link

Byrnes9 commented Mar 11, 2025

Did you test the latest extui code or prerelease?

Yes, and the problem still exists.

Bug Description

Trying to compile firmware, getting error:

Warning! src_filter configuration option in section [env:DUE] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:esp32] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_build_flags configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_flags instead
Warning! src_filter configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:SAMD51_grandcentral_m4] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:malyan_M300] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy31] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy35] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy36] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy41] is deprecated and will be removed in the next release! Please use build_src_filter instead
Processing STM32F103RET6_creality (platform: ststm32@~12.1; board: genericSTM32F103RE; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------MissingPackageManifestError: Could not find one of 'package.json' manifest files in the package

  • The terminal process "C:.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
  • Terminal will be reused by tasks, press any key to close it.

Bug Timeline

n/a

Expected behavior

Firmware to compile successfully

Actual behavior

Firmware is failing with this error:
Warning! src_filter configuration option in section [env:DUE] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:esp32] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_build_flags configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_flags instead
Warning! src_filter configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:SAMD51_grandcentral_m4] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:malyan_M300] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy31] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy35] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy36] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy41] is deprecated and will be removed in the next release! Please use build_src_filter instead
Processing STM32F103RET6_creality (platform: ststm32@~12.1; board: genericSTM32F103RE; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------MissingPackageManifestError: Could not find one of 'package.json' manifest files in the package

  • The terminal process "C:.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
  • Terminal will be reused by tasks, press any key to close it.

Marlin-2.0.8.1-cr6-community-release-6.1.zip

Steps to Reproduce

  1. Open VScode
  2. Put creality board into platformio.ini and configuration
  3. try to compile

Version of CR6Community Firmware

6.1

Printer model

Creality CR-6 SE

Motherboard

Creality v4.5.2

Display

Creality CR-6 stock touch screen

Mods

Microswiss hotend

Add-ons

No response

Bed Leveling

ABL Bilinear mesh

Your Slicer

Prusa Slicer

Host Software

None

@lifendel
Copy link

This is a known issue as there were changes in some of the syntax for compilation that prevents the older Marlin code from compiling with the latest platformIO. To fix this, you must do the following:

You edit marlin.py in the following folder:

buildroot/share/PlatformIO/scripts/marlin.py

Go to line 19 for the following:

def replace_define(field, value):
for define in env['CPPDEFINES']:
if define[0] == field:

Edit and replace the second line with the two lines as shown below:

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

Save that and you can now compile the CF6.1 source.

@Byrnes9
Copy link
Author

Byrnes9 commented Mar 11, 2025

I did replace the Marlin.py file with the recommended one.

I was able to get it to compile by deleting the .platformio folder in my C drive and reinstalling the extension.

Thank you for your help though.

@Byrnes9 Byrnes9 closed this as completed Mar 11, 2025
@Byrnes9 Byrnes9 reopened this Mar 11, 2025
@Byrnes9
Copy link
Author

Byrnes9 commented Mar 11, 2025

Another issue has come up

When I select reset factory settings, the screen freezes and I have to hard reset the machine, I haven't changed the files beyond replacing the Marlin.py and setting my motherboard in platform io.

If I use precompiled firmware, this issue goes away.

Marlin-2.0.8.1-cr6-community-release-6.1.zip

@lifendel
Copy link

Which screen firmware do you have? You should have the firmware bundled from one of the 6.1 firmwares or the re-factored firmware for it to be compatible. What are you changing in the Configuration.h?

@Byrnes9
Copy link
Author

Byrnes9 commented Mar 12, 2025

I'm currently using the refactored screen firmware. I haven't changed anything in configuration.h other than using the 4.5.2 config provided in the source code file.

@Byrnes9
Copy link
Author

Byrnes9 commented Mar 13, 2025

The goal for changing it is to inverse the extruder stepper cables for the LMG lite and to stop the heaters from turning off when leveling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants