aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* tmc: Do not override tcoolthrs if it is configuredAlex Voinea2023-03-151-10/+8
| | | | | | | | | | | If tcoolthrs is configured (not the default 0), then do not force the value of tcoolthrs=0xfffff during homing. This way, tcoolthrs can be set to a custom value during homing. `tpwmthrs` and `en_pwm_mode`/`en_spreadcycle` are now also correctly restored if they were changed after startup. Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
* docs: Update reviewers in CONTRIBUTING.mdKevin O'Connor2023-03-151-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc: Enable `multistep_filt` for drivers that support itAlex Voinea2023-03-152-0/+2
| | | | | | | `multistep_filt` was not configured at all on tmc2240 and tmc5160. As such, it would default to the value of 0 when the GCONF field was sent to the driver. However, that field has a default value of 1 in the driver, so klipper was overriding the defaults by accident. This field improves the stability of velocity based thresholds (it's effectively TSTEP filtering) and it also improves the current regulation stability in stealthchop2 (according to the datasheet). This field was already set to 1 correctly in the tmc2208/tmc2209 driver code. Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
* tmc2209: Remove duplicate `pdn_disable` initializationAlex Voinea2023-03-151-1/+0
| | | Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
* reactor: Fix typoD4SK2023-03-141-2/+2
| | | | Signed-off-by: Konstantin Vogel <konstantin.vogel@gmx.net>
* reactor: Fix typoD4SK2023-03-141-2/+2
| | | Signed-off-by: Konstantin Vogel <konstantin.vogel@gmx.net>
* docs: Remove comment about default profile loadingMaurice Breit2023-03-141-3/+1
| | | | | | Remove outdated comment that the "default" profile is loaded automatically when klipper starts Signed-off-by: Maurice Breit <github@mauricebreit.de>
* probe: expose name on status reportPedro Lamas2023-03-142-1/+3
| | | | Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
* docs: addition of slicer specific gcode for START_PRINT (#6063)JamesH19782023-03-142-1/+35
| | | Signed-off-by: James Hartley <james@hartleyns.com>
* config: Add Ender 3 v2 Neo base config (#6103)Sam2023-03-142-0/+156
| | | | | | Add the default base config for the Ender 3 v2 Neo (as released 2022). This config also works with the newer D32F303 based 4.2.2 boards. Signed-off-by: Sam McLeod <sammcj@users.noreply.github.com>
* linux: Fast Linux MCU i2c_read() with I2C_RDRW (#6101)Dr. Matthew Swabey2023-03-142-8/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | Reading an I2C device from the Linux MCU used a separate write(2) to select the target register & read(2) to get the value(s). This implementation uses ioctl(file, I2C_RDWR, ...) to skip a large bus idle period and extra process sleep by combining them like the stm32. I2C_RDRW requires I2C_FUNC_I2C flag in the I2C driver. I2C_FUNC_I2C is defined in: BCM2835: Pi 1 Models A, A+, B, B+, the Raspberry Pi Zero, the Raspberry Pi Zero W, and the Raspberry Pi Compute Module 1 BCM2836: Pi 2 Model B Identical to BCM2835 except Cortex BCM2837: Pi 3 Model B, later models of the Raspberry Pi 2 Model B, and the Raspberry Pi Compute Module 3 BCM2837B0: Pi 3 Models A+, B+, and the Raspberry Pi Compute Module 3+ BCM2711: Pi 4 Model B, the Raspberry Pi 400, and the Raspberry Pi Compute Module 4 RK3xxx: Rockchips SoCs NanoPi, RockPi, Tinker, etc. SUNXI: H2, H3, etc. Orange Pi AMLOGIC: S905x, Banana Pi, Odroid, etc. TEGRA: NVidia Jetson etc. MediaTek: Several SBCs in other ranges Signed-off-by: Matthew Swabey <matthew@swabey.org>
* probe: Allow overriding horizontal_move_z on gcodeLasse Dalegaard2023-03-142-37/+46
| | | | Signed-off-by: Lasse Dalegaard <dalegaard@gmail.com>
* config: Add Anycubic Kobra Plus (#6084)Derek Kaser2023-03-143-0/+204
| | | Signed-off-by: Derek Kaser <derek.kaser@gmail.com>
* config: Add printer-elegoo-neptune3-pro configuration (#5965)Koz Ross2023-03-142-0/+127
| | | | | Adds a configuration for the Elegoo Neptune 3 Pro. Signed-off-by: Koz Ross <koz.ross@retro-freedom.nz>
* config: Example config file for Creality CR5 Pro HT (#6089)Brandon Baker2023-03-112-0/+153
| | | Signed-off-by: Brandon Baker <bakerbrandond@gmail.com>
* tmc: Beautify initialization codeAlex Voinea2023-03-074-5/+19
| | | | | Purely esthetic. Make all tmc driver init code similar to one another. The various fields were grouped based on the register which they affect or the function they perform. Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
* tmc5160: allow changing the globalscaler at runtimeAlex Voinea2023-03-073-11/+24
| | | | | | | | | Previously, the globalscaler was calculated during the config parsing and set to a fixed value. If the current was changed for any reason after the initialization, only IRUN and IHOLD would be changed. This however caused issues: - If the new current was lower, then the resolution of the possible current values would be low since there are only 32 IRUN/IHOLD steps. - If the new current was higher, it wouldn't actually work since IRUN and IHOLD are capped at 31, so it wouldn't be possible to increase the current without increasing globalscaler. With this commit, the globalscaler is recalculated whenever necessary in order to ensure the correct range of IRUN/IHOLD is used. Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
* tmc: Fix s2vs field formattersAlex Voinea2023-03-073-3/+7
| | | | | Rename the field formatter text for tmc2208/tmc2209 and implement it also for tmc5160. Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
* stm32h7: Restore the RCC set in the bootloader to the default value (#6092)BIGTREETECH2023-03-061-0/+6
| | | Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
* tmc2240: initial implementationAlex Voinea2023-03-016-2/+535
| | | | | Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Update printer-sunlu-t3-2022.cfg (#6040)dahliamoth2023-02-281-14/+13
| | | | | | | | | | | Fix filament sensor and remove unneeded config changes in extruder The filament sensor on the printer used for initial testing had been removed prior to flashing klipper to it. Only a basic test to see it if triggered or not was preformed. It was discovered by someone else doing some testing on another printer that it would frequently pause. This was a simple oversight, assuming it was a runout switch. Removed section of config related to filament runout switch and replaced with basic config for filament motion so they printer will simply pause when no more motion is detected. Also notated to add CLEAR_PAUSE to start gcode if using this sensor as it will trigger a paused state when loading or unloading filament. If printer is in a paused state at the start of the print, the attempt to pause will cause the printer to rapidly pause and unpause itself. Removed min_extruder_temp and max_extrude_only_distance from the extruder section, as they were there only for macros on a test system that is not put into this sample config Signed-off-by: Zachary Welvaert <zwelvaert@gmail.com>
* config: Update and rename generic-th3d-ezboard-lite-v2.0.cfg to ↵Apulo2023-02-232-2/+2
| | | | | | | generic-th3d-… (#6070) The actual board name is EZBoard V2 without the lite. Renaming the file and correcting the intro text to reflect the actual board name. Signed-off-by: Anthony Dellett <anthony.dellett@gmail.com>
* scripts: Update flash-linux.sh to restart new systemd service (#6049)JamesH19782023-02-231-0/+5
| | | | | This is an update to the script that looks for the new systemd service and restarts it if appropriate. Signed-off-by: James Hartley <james@hartleyns.com>
* scripts: Fixed potential undefined var error in graph_accelerometer.pyDmitry Butyugin2023-02-231-2/+4
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* scripts: Support multiple inputs in graph_accelerometer.py raw modeDmitry Butyugin2023-02-231-16/+21
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* scripts: Support resonances files in graph_accelerometer.pyDmitry Butyugin2023-02-231-4/+15
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* mcu: Move lookup_command_tag() to CommandWrapper classKevin O'Connor2023-02-223-14/+24
| | | | | | | | Use mcu.lookup_command().get_command_tag() instead of mcu.lookup_command_tag(). This improves error reporting on a protocol mismatch. It also enables support for a msgtag that is negative. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Code movement in mcu.pyKevin O'Connor2023-02-221-73/+88
| | | | | | This is code movement and comment updates only - no code changes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: use correct mpu9250 i2c_bus (#6064)Thijs Triemstra2023-02-201-1/+1
| | | Signed-off-by: Thijs Triemstra <info@collab.nl>
* ar100: Support for ar100 (#6054)Elias Bakken2023-02-2025-0/+3715
| | | | | Add files to support AR100 Signed-off-by: Elias Bakken <elias@iagent.no>
* stm32: Add sdio supportH. Gregor Molter2023-02-2012-11/+1050
| | | | | | | | Adds sdio support for the stm32f4 to allow for SD card flash updates without power cycling some boards, e.g. BTT Octopus Pro. Signed-off-by: H. Gregor Molter <gregor.molter@secretlab.de> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Fix typos (#6032)Thijs Triemstra2023-02-2010-37/+37
| | | Signed-off-by: Thijs Triemstra <info@collab.nl>
* config: Add printer sovol sv06 config file (#6056)spinixguy2023-02-142-0/+160
| | | Signed-off-by: Joseph Spainhour <spinixguy@gmail.com>
* scripts: update_chitu.py python env version (#6055)JamesH19782023-02-131-1/+1
| | | | | Change script to use Python 3 instead of Python 2, in line with changes to update_mks_robin.py Signed-off-by: James Hartley <james@hartleyns.com>
* stepper_enable: report statusPedro Lamas2023-02-132-0/+10
| | | | Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
* hc32f460: Add support for hc32f460 micro-controllersSteven Gotthardt2023-02-1311-0/+928
| | | | Signed-off-by: Steven Gotthardt <gotthardt@gmail.com>
* lib: Add hc32f460 definitionsSteven Gotthardt2023-02-1387-0/+80723
| | | | Signed-off-by: Steven Gotthardt <gotthardt@gmail.com>
* configfile: Make getlists return an empty list on empty string. (#6042)Jordan Woyak2023-02-091-2/+6
| | | Signed-off-by: Jordan Woyak <jordan.woyak@gmail.com>
* workflows: Convert to Ubuntu 20.04 for build testKevin O'Connor2023-02-092-4/+4
| | | | | | This also updates to the latest version of pru-gcc. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy-requirements: Update to greenlet v2.0.2Kevin O'Connor2023-02-091-1/+1
| | | | | | Improves compatibility with Python v3.11. Reported by @flaviut. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* extruder: store currently sync'ed motion queue namePedro Lamas2023-02-092-1/+8
| | | | Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
* scripts: update_mks_robin.py python env version (#6043)JamesH19782023-02-091-1/+1
| | | | | | | The recent PR to change this to say `#!/usr/bin/env python` instead of `#!/usr/bin/env python2` can cause issues on non rpi based OS's where `python` is not mapped to `python3`. `#!/usr/bin/env python3` should work in both situations. Signed-off-by: James Hartley <james@hartleyns.com>
* docs: Fix 'screw_thread' explanation in 'screws_tilt_adjust' section. (#6039)Bassam Husain2023-02-091-5/+5
| | | Signed-off-by: Bassam Husain <bassam.husain@gmail.com>
* docs: Fixed wording in 'Bed_Mesh.md', fade_target section. (#6025)Bassam Husain2023-02-031-2/+2
| | | Signed-off-by: Bassam Husain <bassam.husain@gmail.com>
* extruder: Add extruder name to extruder_stepper respond message (#6020)CODeRUS2023-02-031-2/+4
| | | Signed-off-by: Andrei Kozhevnikov <coderusinbox@gmail.com>
* screws_tilt_adjust: status result as dictionaryPedro Lamas2023-02-033-12/+15
| | | | Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
* config: Avoid spaces between mcu name and pin nameKevin O'Connor2023-02-035-26/+26
| | | | | | Prefer "option: mcu:pin" instead of "option: mcu: pin". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add BigTreeTech EBB V1.2 / EBB SB V1.0 / E3EZ / M5P / M8P V1.1 / ↵bigtreetech2023-02-0313-25/+1215
| | | | | | | Octopus Max EZ Signed-off-by: Alan.Ma from BigTreeTech tech@biqu3d.com Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: add PB12/PB13 FDCAN2 support STM32G0B1bigtreetech2023-02-032-3/+8
| | | | | Signed-off-by: Alan.Ma from BigTreeTech tech@biqu3d.com Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add config for Kingroon KP3S (#6021)JamesH19782023-02-032-0/+109
| | | | | A config that describes a Kingroon KP3S with the STM32F103 Robin Mini/Nano clone Signed-off-by: James Hartley <james@hartleyns.com>