Replies: 74 comments
-
|
@ale-chronics @ale-chronics, you might find the attached bash script helpful. I've been using it for the past two years to keep my Klipper installation updated with the original Klipper while maintaining the Ender 6 patches from Desuuuu. Just run the script in the directory where your ./klipper/ is located. Also, remember that newer versions of Klipper may require updated firmware on the controller: |
Beta Was this translation helpful? Give feedback.
-
|
@xdadrm Will this work for CR10s pro. I have desuuuu's klipper installed on my board, rpi and the screen. Can you guide me how to update it? |
Beta Was this translation helpful? Give feedback.
-
|
I recently wrote this guide for installing upstream Klipper on an Ender 6. It just requires changing out the touchscreen: https://github.com/zimmertr/Ender-6-Klipper-Guide |
Beta Was this translation helpful? Give feedback.
-
@nipunarora8 As I do not have a CR10, I'll not say "it works and here's how" ...hope the following still helps : Klipper Software Klipper Firmware on the MCU Display @zimmertr |
Beta Was this translation helpful? Give feedback.
-
|
@xdadrm after adding the [t5uid1] section to printer.cfg (using your script), mainsail gives me an MCU Protocol error saying "mcu 'mcu': Unknown command: t5uid1_ping" at the end (and the screen stays on the klipper logo). could you please guide me in the right direction? I'm still new to klipper. once i remove the [t5uid1] section it doesn't give me an error anymore (but the screen still doesn't work). |
Beta Was this translation helpful? Give feedback.
-
|
@chirrupted if you had to add the [t5uid1[ section to your config that sounds like you were NOT running desuuuu's klipper on your setup before ?! **If that is the case, do not continue, revert back to your old klipper installation and look at @zimmertr 's approach. ** If you want to contine (and I don't know if the CR10s pro is the same as the Ender 6 - MCU and Display wise ..) : The error sounds like your MCU firmware is not up-to-date - you could check with "grep T5 klipper/.config" it should look like this : CONFIG_T5UID1_SERIAL=y if it is not, use make menuconfig to change the settings, make and then reflash the mcu with the new compiled binary. |
Beta Was this translation helpful? Give feedback.
-
|
@xdadrm I use an Ender 5 Plus. anyways, I got it to work (just forgot to flash to the printer :P) however I can't click on the Move button and retracting and advancing filament doesn't work. when printing, the screen doesn't change either (stays on homescreen). before using the script everything worked. |
Beta Was this translation helpful? Give feedback.
-
|
@chirrupted Hah, you got me there I've got you mixed up with @nipunarora8 :) Anyway, glad it 'semi-worked' for you - from your description, I can only imagine that these might be incorrect for your machine / MCU, CONFIG_STM32_T5UID1_SERIAL_USART3=y |
Beta Was this translation helpful? Give feedback.
-
|
@xdadrm thanks! though i think I'll be using an android phone instead :P sorry for wasting your time |
Beta Was this translation helpful? Give feedback.
-
|
@xdadrm Thank you for your ideas. CR10s pro has the same screen as the ender 6 (I guess). And if I am not wrong, desuuuu also has Cr10s pro (because it was his config which I took while setting up klipper). |
Beta Was this translation helpful? Give feedback.
-
|
Hey @xdadrm, I seem to use your script but no success. I put your script next to klipper folder, ran it, two scripts were having conflicts (src/atsamd/serial.c and src/atsamd/Kconfig) so I used the new version. The make and flashing went without errors. For flashing it generated a .elf file which I flashed using make flash FLASH_DEVICE=serial port Now my klipper version in mainsail says klipper -> v0.0.0-4766-gdgus-reloaded-230526-0-gbaae7f3a-dirty-inferred and I can't connect to mcu cuz I have an error gcode command SET_PRINT_STATS_INFO already registered Do you have an idea what can I do to make it work? |
Beta Was this translation helpful? Give feedback.
-
|
@nipunarora8 there should be no conflict, you can try moving your klipper directory to kipper.broken, and run the script again - that will pull mainline klipper and merge desuuuu's patches in and likely resolve the merge conflict as well as the SET_PRINT_STATS_INFO error. ( The script is 'dumb' and rather forcefully simply merges the two repositories together - often good enough but not failsafe ) Then, best copy your original .config (or kipper.broken/.config) to klipper/.config , rebuild and flash the firmware to be sure to have that match the klipper software. Good luck ! Looking for SET_PRINT_STATS_INFO in the klipper source shows that it is only used in a single file: klippy/extras/print_stats.py find . -type f -exec grep -l SET_PRINT_STATS_INFO {} + ./docs/Status_Reference.md |
Beta Was this translation helpful? Give feedback.
-
|
@xdadrm It worked, thank you soo much. The SET_PRINT_STATS_INFO was basically a problem because of mainsail.cfg. I updated mainsail and things went smooth. Thank's for helping. :) |
Beta Was this translation helpful? Give feedback.
-
|
@nipunarora8 great to hear, thanks for the feedback ! |
Beta Was this translation helpful? Give feedback.
-
I did update to latest with your script, script works ok and also no errors when building... But after flashing new firmware, move (middle) button, and some buttons in setup are not working. Anyone with same problems? My printer is Cr10sPro, with latest Desuuuu version of klipper screen was working Ok. |
Beta Was this translation helpful? Give feedback.
-
klipper.cfg? where should this be located? When going to klipper/config there is a ton of different printer.cfgs when I turned on advance config I make menuconfig and chose uart2 for t5uid I had an issue with pin conflict for some reason. and the screen was not working at all. but when just having basic and not applying any uart it's in this semistate of working. |
Beta Was this translation helpful? Give feedback.
-
|
this is the makefile if thats what you meant Klipper build systemCopyright (C) 2016-2020 Kevin O'Connor kevin@koconnor.netThis file may be distributed under the terms of the GNU GPLv3 license.Output directoryOUT=out/ Kconfig includesexport KCONFIG_CONFIG := $(CURDIR)/.config Common command definitionsCC=$(CROSS_PREFIX)gcc Source filessrc-y = Default compiler flagscc-option=$(shell if test -z " CFLAGS := -iquote OBJS_klipper.elf = CPPFLAGS = -I$(OUT) -P -MD -MT $@ Default targetstarget-y := $(OUT)klipper.elf all: Run with "make V=1" to see the actual compile commandsifdef V Include board specific makefileinclude src/Makefile ################ Main build rules
################ Compile time requests
################ Auto generation of "board/" include file link create-board-link: Hack to rebuild OUT directory and reload make dependencies on Kconfig change
################ Kconfig rules
$(KCONFIG_CONFIG) olddefconfig: src/Kconfig menuconfig: ################ Generic rules Make definitions.PHONY : all clean distclean olddefconfig menuconfig create-board-link FORCE all: $(target-y) clean: distclean: clean -include $(OUT).d $(patsubst %,$(OUT)%/.d,$(dirs-y)) |
Beta Was this translation helpful? Give feedback.
-
|
FINALLY! i flashed the screen for the 4th time and now its working! |
Beta Was this translation helpful? Give feedback.
-
Congrats ! - it's the .config file in the klipper directory that I meant, that is being created when you run make menuconfig. Great to hear that you've got things running :) |
Beta Was this translation helpful? Give feedback.
-
|
Dude, I've been so frustrated that I've reimaged Raspberry Pi OS twice and flashed my printer's firmware three times. I probably spent 30hours to get things working xD. Although, thanks for the help. |
Beta Was this translation helpful? Give feedback.
-
|
Tried out xdadrm's fork on my Ender 5 Plus and encountered this error when pressing the Move or Leveling buttons on the screen: Was able to fix it by replacing line 866 of return (self.probe is not None and self.probe.multi != "OFF")with multi_state = getattr(self.probe, "multi", "OFF")
return (self.probe is not None and multi_state != "OFF")and got it to work. |
Beta Was this translation helpful? Give feedback.
-
thanks @ramonimbao - this is probably the right way to address this, mind giving that a go and report back ? |
Beta Was this translation helpful? Give feedback.
-
@xdadrm Thank you! Still works for me. |
Beta Was this translation helpful? Give feedback.
-
Thanks for reporting back ! It's commited in xdadrm@9b88e68 |
Beta Was this translation helpful? Give feedback.
-
Are you by chance not using a BLTouch on that? The "multi" should exist. I can confirm tonight but on my Ender 5 Plus, I'm not getting this error which makes me wonder. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, I'm using Klicky PCB. |
Beta Was this translation helpful? Give feedback.
-
|
how is that configured in your klipper config file? I'm wondering what probe type klipper is trying to utilize as the fix above may not actually be detecting the busy state if it's using a different probe configuration |
Beta Was this translation helpful? Give feedback.
-
|
It's configured with |
Beta Was this translation helpful? Give feedback.
-
@Desterly - in THEORY the changes should work, please do let me know if this breaks things for you ! |
Beta Was this translation helpful? Give feedback.
-
Ah that explains it. "probe" doesn't have a multi element. it does have a multi_probe_pending which True/False which might be what you want to see if it's actually pending/busy.
Oh it work I'm sure.. I was more confused as to why it was failing when the element did exist, but it's not universal on all probe types.. I'll have to dig into it and see if there is a means to actually validate the busy status for different probe types. "probe" has multi_probe_pending instead of "multi", but not sure if it does exactly the same thing and not sure if bltouch has it too. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi !
Thanks again for your great work on this, I use it every day with my Ender 6 and I'd love for this project to remain active !
Would you be able to merge this with a more recent version of Klipper ?
Thanks a lot !
Beta Was this translation helpful? Give feedback.
All reactions