CR-6 SE SOURCE CODE and Tutorial Video update



  • Dear All,

    We have CR-6 SE SOURCE CODE and Tutorial Video for the motherboard firmware update on our website, please check and download if you need it.

    https://www.creality.com/download

    985c5def-193c-464c-85b4-c1aa83aae204-image.png



  • Dear All,

    we will have the update firmware next week, please be patient and Admin will make everybody noticed about it. Thanks for supporting Creality



  • With the changes I have suggested, this is what you should get in the VSCode terminal output:

    > Executing task: platformio run --environment creality <
    
    Processing creality (board: genericSTM32F103RE; platform: ststm32@<6.2.0; framework: arduino)
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Verbose mode can be enabled via `-v, --verbose` option
    CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103RE.html
    PLATFORM: ST STM32 (6.1.1) > 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 39 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
    |-- <Adafruit MAX31865 library> 1.1.0
    |-- <LiquidTWI2> 1.2.7
    |   |-- <Wire> 1.0
    |-- <Arduino-L6470> 0.7.0
    |-- <SailfishLCD> 0.0.0+20201015131029
    |-- <SailfishRGB_LED> 0.0.0+20201015131029
    |   |-- <Wire> 1.0
    |-- <SlowSoftI2CMaster> 0.0.0+20201015131029
    |-- <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
    ... {{ BUNCH OF STUFF SNIPPED TO SAVE SPACE IN THE POST }} ...
    Compiling .pio/build/creality/lib35d/STM32ADC/utility/util_adc.c.o
    Compiling .pio/build/creality/lib49b/USBComposite/AbsMouse.cpp.o
    /Users/martin/.platformio/packages/framework-arduinoststm32-maple/STM32F1/libraries/STM32ADC/src/utility/util_adc.c:10:30: warning: 'adc_result' initialized and declared 'extern'
     extern volatile unsigned int adc_result = 0;
                                  ^~~~~~~~~~
    Compiling .pio/build/creality/lib49b/USBComposite/Consumer.cpp.o
    Compiling .pio/build/creality/lib49b/USBComposite/HIDReports.cpp.o
    Compiling .pio/build/creality/lib49b/USBComposite/Joystick.cpp.o
    Archiving .pio/build/creality/lib690/libAdafruit_MAX31865.a
    Compiling .pio/build/creality/lib49b/USBComposite/Keyboard.cpp.o
    Indexing .pio/build/creality/lib690/libAdafruit_MAX31865.a
    Archiving .pio/build/creality/lib46e/libSailfishRGB_LED.a
    Archiving .pio/build/creality/libd04/libSlowSoftI2CMaster.a
    Indexing .pio/build/creality/lib46e/libSailfishRGB_LED.a
    Indexing .pio/build/creality/libd04/libSlowSoftI2CMaster.a
    Archiving .pio/build/creality/lib35d/libSTM32ADC.a
    Archiving .pio/build/creality/libb7f/libTMCStepper.a
    Indexing .pio/build/creality/lib35d/libSTM32ADC.a
    Compiling .pio/build/creality/lib49b/USBComposite/MinSysex.c.o
    Indexing .pio/build/creality/libb7f/libTMCStepper.a
    Compiling .pio/build/creality/lib49b/USBComposite/Mouse.cpp.o
    Compiling .pio/build/creality/lib49b/USBComposite/USBComposite.cpp.o
    Archiving .pio/build/creality/lib79a/libSailfishLCD.a
    Archiving .pio/build/creality/libb65/libArduino-L6470.a
    Indexing .pio/build/creality/lib79a/libSailfishLCD.a
    Archiving .pio/build/creality/libadc/libLiquidTWI2.a
    Indexing .pio/build/creality/libb65/libArduino-L6470.a
    Indexing .pio/build/creality/libadc/libLiquidTWI2.a
    Compiling .pio/build/creality/lib49b/USBComposite/USBCompositeSerial.cpp.o
    Compiling .pio/build/creality/lib49b/USBComposite/USBHID.cpp.o
    Compiling .pio/build/creality/lib49b/USBComposite/USBMIDI.cpp.o
    Compiling .pio/build/creality/lib49b/USBComposite/USBMassStorage.cpp.o
    Compiling .pio/build/creality/lib49b/USBComposite/USBXBox360.cpp.o
    Compiling .pio/build/creality/lib49b/USBComposite/usb_composite_serial.c.o
    Compiling .pio/build/creality/lib49b/USBComposite/usb_generic.c.o
    Compiling .pio/build/creality/lib49b/USBComposite/usb_hid.c.o
    Compiling .pio/build/creality/lib49b/USBComposite/usb_mass.c.o
    Compiling .pio/build/creality/lib49b/USBComposite/usb_mass_mal.c.o
    Compiling .pio/build/creality/lib49b/USBComposite/usb_midi_device.c.o
    Compiling .pio/build/creality/lib49b/USBComposite/usb_scsi.c.o
    Compiling .pio/build/creality/lib49b/USBComposite/usb_scsi_data.c.o
    Compiling .pio/build/creality/lib49b/USBComposite/usb_setup.cpp.o
    Compiling .pio/build/creality/lib49b/USBComposite/usb_x360.c.o
    Compiling .pio/build/creality/lib988/EEPROM/EEPROM.cpp.o
    Compiling .pio/build/creality/lib988/EEPROM/flash_stm32.c.o
    Archiving .pio/build/creality/lib49b/libUSBComposite.a
    Indexing .pio/build/creality/lib49b/libUSBComposite.a
    Archiving .pio/build/creality/lib988/libEEPROM.a
    Indexing .pio/build/creality/lib988/libEEPROM.a
    Archiving .pio/build/creality/lib905/libU8glib-HAL.a
    Indexing .pio/build/creality/lib905/libU8glib-HAL.a
    Linking .pio/build/creality/firmware.elf
    Building .pio/build/creality/firmware.bin
    Checking size .pio/build/creality/firmware.elf
    Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
    RAM:   [==        ]  23.8% (used 15600 bytes from 65536 bytes)
    Flash: [====      ]  35.5% (used 186140 bytes from 524288 bytes)
    ========================================================================================================== [SUCCESS] Took 18.01 seconds ==========================================================================================================
    
    Environment    Status    Duration
    -------------  --------  ------------
    creality       SUCCESS   00:00:18.006
    =========================================================================================================== 1 succeeded in 00:00:18.006 ===========================================================================================================
    
    Terminal will be reused by tasks, press any key to close it.
    


  • to get the firmware to compile cleanly under VSCode + PlatformIO you need to change two things:

    • Change the name of the directory to something like "CR6_SE_FIRMWARE" because PlatformIO/VSCode does not handle the double space well. I changed my top directory to "creality_source_code" and the directory containing the Marlin source to "CR-6SE-Marlin-2.0.1-V1.0.3.6"

    • Change two lines in platformio.ini

    Line 32:

    Adafruit_MAX31865=https://github.com/adafruit/Adafruit_MAX31865/archive/1.1.0.zip

    Line 200:

    platform = ststm32@<6.2.0

    The firmware should then compile more or less cleanly. After that you will find the compiled firmware in a (hidden) directory called .pio/build/creality/firmware.bin



  • @megasxlr01
    I figured it out. One of the folders in the zip file has two spaces where the script expects only one. The errormessage states that it expects the file C:\Users\megas\Downloads\CR-6 SE -source code V1.0.3.6\CR-6SE-Marlin-2.0.1- 20200916 - V1.0.3.6.pio\build\creality\FrameworkArduinoVariant\PeripheralPins.c' to exist. I bet that the file does exist but in this location:

    C:\Users\megas\Downloads\CR-6 SE -source code V1.0.3.6\CR-6SE-Marlin-2.0.1- 20200916 - V1.0.3.6.pio\build\creality\FrameworkArduinoVariant\PeripheralPins.c'

    The difference with the errormessage is very subtle. Look here:
    this is the folder in the installation script:

    C:\Users\megas\Downloads\CR-6 SE -source code V1.0.3.6
    

    this is the folder on your harddrive

    C:\Users\megas\Downloads\CR-6 SE -source code  V1.0.3.6
    

    If you remove one of the spaces between 'code' and 'V1.0.3.6' it should work.



  • @ncbob everything is working fine including being able to save everything on EEPROM.

    If anyone wants to compile it and is having trouble let me know and we can do a zoom meeting and I’ll help you troubleshoot it.



  • @S7EN Ok, now that I FINALLY got a working motherboard from Creality after 3 1/2 weeks my printer is running, and I found the reason to update the firmware to this version.

    In the stock firmware it comes with the EEPROM is not enabled so you have to do leveling, PID tuning etc every time you power the machine off and on or reset things.

    I'm uploading it and doing some testing, then I'll post that it's working for me or not.



  • 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.


Log in to reply
 

Copyright © 2020 Shenzhen Creality 3D Technology Co., Ltd All Rights Reserved.