CR-6 SE SOURCE CODE and Tutorial Video update



  • Please post your source code on Github..... Where it belongs.



  • This is quite embarrassing, there's been a month and you haven't got the new firmware posted as a bin-file yet. What is taking so long? I'm a software developer and if I would be this lazy I'd be fired, and I live in a country where firing people is quite hard.

    Post the new firmware now and tell us what changes are included.



  • @GroovyDrifter there are quite a few dependencies needed to compile the creality version of the firmware that is not documented.



  • @ncbob Thank you, but I cannot change anything on precompiled code. Anyway to my surprise, I installed all the same in Windows 10 and then it worked ok. Not just that, I put the source in a drive that can be accessed from both OS's and after a successfull compilation on Windows it also compiled ok in MacOS. Looks like there is something that is not downloaded in the Mac side...



  • @igotfits I posted a link to the compiled bin below a few days ago, and it's still available for download.



  • @ncbob Hi! I did as you say but still failing to compile from source, I get errors in terminal:

    > Executing task: platformio run <
    
    Processing creality (board: genericSTM32F103RE; platform: ststm32; framework: arduino)
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Verbose mode can be enabled via `-v, --verbose` option
    CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103RE.html
    PLATFORM: ST STM32 (8.1.0) > STM32F103RE (64k RAM. 512k Flash)
    HARDWARE: STM32F103RET6 72MHz, 64KB RAM, 512KB Flash
    DEBUG: Current (jlink) External (blackmagic, jlink, stlink)
    PACKAGES: 
     - framework-arduinoststm32-maple 2.10000.200103 (1.0.0) 
     - toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
    Converting Marlin.ino
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 37 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- <U8glib-HAL> 0.4.1
    |   |-- <Wire> 1.0
    |-- <LiquidCrystal> 1.3.4
    |   |-- <Wire> 1.0
    |-- <TMCStepper> 0.7.1
    |-- <LiquidTWI2> 1.2.7
    |   |-- <Wire> 1.0
    |-- <Arduino-L6470> 0.7.0
    |-- <SailfishLCD> 0.0.0+20201004200504
    |-- <SailfishRGB_LED> 0.0.0+20201004200504
    |   |-- <Wire> 1.0
    |-- <SlowSoftI2CMaster> 0.0.0+20201004200504
    |-- <STM32ADC> 1.0
    |-- <USBComposite for STM32F1> 0.91
    |-- <EEPROM>
    |-- <Wire> 1.0
    Building in release mode
    Compiling .pio/build/creality/FrameworkArduinoVariant/board.cpp.o
    Compiling .pio/build/creality/FrameworkArduinoVariant/wirish/boards.cpp.o
    Compiling .pio/build/creality/FrameworkArduinoVariant/wirish/boards_setup.cpp.o
    Compiling .pio/build/creality/FrameworkArduinoVariant/wirish/start.S.o
    Compiling .pio/build/creality/FrameworkArduinoVariant/wirish/start_c.c.o
    Compiling .pio/build/creality/FrameworkArduinoVariant/wirish/syscalls.c.o
    Compiling .pio/build/creality/FrameworkArduino/HardwareSerial.cpp.o
    Compiling .pio/build/creality/FrameworkArduino/HardwareTimer.cpp.o
    Compiling .pio/build/creality/FrameworkArduino/IPAddress.cpp.o
    Compiling .pio/build/creality/FrameworkArduino/Print.cpp.o
    Compiling .pio/build/creality/FrameworkArduino/Stream.cpp.o
    Compiling .pio/build/creality/FrameworkArduino/WString.cpp.o
    Compiling .pio/build/creality/FrameworkArduino/avr/dtostrf.c.o
    Compiling .pio/build/creality/FrameworkArduino/cxxabi-compat.cpp.o
    Compiling .pio/build/creality/FrameworkArduino/ext_interrupts.cpp.o
    Compiling .pio/build/creality/FrameworkArduino/hooks.c.o
    Compiling .pio/build/creality/FrameworkArduino/itoa.c.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/adc.c.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/adc_f1.c.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/bkp_f1.c.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/dac.c.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/dma.c.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/dma_f1.c.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/exc.S.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/exti.c.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/exti_f1.c.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/flash.c.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/fsmc_f1.c.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/gpio.c.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/gpio_f1.c.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/i2c.c.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/i2c_f1.c.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/iwdg.c.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/nvic.c.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/pwr.c.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/rcc.c.o
    Compiling .pio/build/creality/FrameworkArduino/libmaple/rcc_f1.c.o
    /Users/groovydrifter/.platformio/packages/framework-arduinoststm32-maple/STM32F1/cores/maple/libmaple/pwr.c:41:1: fatal error: opening dependency file .pio/build/creality/FrameworkArduino/libmaple/pwr.c.d: No such file or directory
     }
     ^
    compilation terminated.
    *** [.pio/build/creality/FrameworkArduino/libmaple/pwr.c.o] Error 1
    /Users/groovydrifter/.platformio/packages/framework-arduinoststm32-maple/STM32F1/cores/maple/libmaple/i2c.c:520:1: fatal error: opening dependency file .pio/build/creality/FrameworkArduino/libmaple/i2c.c.d: No such file or directory
     }
     ^
    compilation terminated.
    *** [.pio/build/creality/FrameworkArduino/libmaple/i2c.c.o] Error 1
    /Users/groovydrifter/.platformio/packages/framework-arduinoststm32-maple/STM32F1/cores/maple/libmaple/rcc.c:169:1: fatal error: opening dependency file .pio/build/creality/FrameworkArduino/libmaple/rcc.c.d: No such file or directory
     }
     ^
    compilation terminated.
    *** [.pio/build/creality/FrameworkArduino/libmaple/rcc.c.o] Error 1
    /Users/groovydrifter/.platformio/packages/framework-arduinoststm32-maple/STM32F1/cores/maple/WString.cpp:747:1: fatal error: opening dependency file .pio/build/creality/FrameworkArduino/WString.cpp.d: No such file or directory
     }
     ^
    compilation terminated.
    *** [.pio/build/creality/FrameworkArduino/WString.cpp.o] Error 1
    /Users/groovydrifter/.platformio/packages/framework-arduinoststm32-maple/STM32F1/cores/maple/libmaple/rcc_f1.c:181:1: fatal error: opening dependency file .pio/build/creality/FrameworkArduino/libmaple/rcc_f1.c.d: No such file or directory
     }
     ^
    compilation terminated.
    *** [.pio/build/creality/FrameworkArduino/libmaple/rcc_f1.c.o] Error 1
    FileNotFoundError: [Errno 2] No such file or directory: '/Volumes/Nada/CR-6SE-Marlin-2.0.1- 20200916 - V1.0.3.6/.pio/build/creality/.sconsign38.tmp':
      File "/Users/groovydrifter/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/Script/Main.py", line 1391:
        _exec_main(parser, values)
      File "/Users/groovydrifter/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/Script/Main.py", line 1355:
        _main(parser)
      File "/Users/groovydrifter/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/Script/Main.py", line 1126:
        nodes = _build_targets(fs, options, targets, target_top)
      File "/Users/groovydrifter/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/Script/Main.py", line 1329:
        jobs.run(postfunc = jobs_postfunc)
      File "/Users/groovydrifter/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/Job.py", line 113:
        postfunc()
      File "/Users/groovydrifter/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/Script/Main.py", line 1326:
        SCons.SConsign.write()
      File "/Users/groovydrifter/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/SConsign.py", line 114:
        syncmethod()
      File "/Users/groovydrifter/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/dblite.py", line 130:
        f = self._open(self._tmp_name, "wb", self._mode)
    Exception ignored in: <function dblite.__del__ at 0x105e0a160>
    Traceback (most recent call last):
      File "/Users/groovydrifter/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/dblite.py", line 126, in __del__
      File "/Users/groovydrifter/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/dblite.py", line 123, in close
      File "/Users/groovydrifter/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/dblite.py", line 130, in sync
    FileNotFoundError: [Errno 2] No such file or directory: '/Volumes/Nada/CR-6SE-Marlin-2.0.1- 20200916 - V1.0.3.6/.pio/build/creality/.sconsign38.tmp'
    ================================================================================================== [FAILED] Took 3.95 seconds ==================================================================================================
    
    Environment    Status    Duration
    -------------  --------  ------------
    creality       FAILED    00:00:03.949
    ============================================================================================= 1 failed, 0 succeeded in 00:00:03.949 =============================================================================================
    The terminal process "platformio 'run'" terminated with exit code: 1.
    
    Terminal will be reused by tasks, press any key to close it.
    

    I removed everything from .pio too. Can you help me? I would like to be able to compile it by myself to change things.



  • @S7EN +1



  • Yeap, Can we get a proper compiled .bin. Seems like alot of us are having issues.



  • @admin No reply? Could you PLEASE upload a compiled ready to flash .bin File for the newer Firmware and for the Screen?



  • @Crazyheaven it's in the .rar file



  • @ncbob I applaud your initiative. I wish I had programming experience outside of VBA.



  • @ncbob Okay thank you, i do not flash newer firmware until it get's released for direct flash. The printer runs good with some litte bugs so i can wait.



  • @S7EN honestly I’m not sure what they changed, I do like that I can make my own changes if needed and see what they have done and how things are configured. I mostly did it to try and get my printer working, mine is one where the steppers won’t move.

    Now when I try to home it doesn’t halt anymore, but it still doesn’t work.



  • @ncbob Is it worth it? I mean, whats better?



  • Here's a link to the 1.0.3.6 firmware bin file:
    firmware.bin V1.0.3.6



  • @admin this tutorial is so vague... i formatted card, copied .bin file, inserted in printer, staqrted printer, and it stays on the creality boot screen.. nothing loads



  • Oh one other thing after you make those changes clean out the .pio directory in the root of the project before you do another build.



  • I was finally able to compile the 1.0.3.6. version of the firmware.
    These are the changes I made to platformio.ini file
    I added this line:
    board_build.core = maple
    to the [env:STM32F1_base] section

    I had to comment out this line:
    Adafruit_MAX31865=https://github.com/adafruit/Adafruit_MAX31865/archive/master.zip
    in the [common] section

    Going to get a small 8gb sd card and then try to flash it and see if it fixes anything.



  • I do not see the video tutorial. Am I missing something?



  • How about getting the .bin file uploaded for the new V1.0.3.6 ?


Log in to reply