aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* config: SKR3, update for second chip choice (#6153)JamesH19782023-04-071-1/+3
| | | | | | | As found on the discord by user Qtin, this board now ships with one of STM32H743 or STM32H723 Example config updated to reflect this. This has been tested on the users board. To note, the H743 bin will flash to the H723 chip, but will not work. Signed-off-by: James Hartley <james@hartleyns.com>
* scripts: Fix flash linux when OUT argument provided (#6133)visilya2023-04-072-2/+9
| | | Signed-off-by: Ilya Vislotsky <write2ilya@gmail.com>
* stm32: Improve ifdef indent in hard_pwm.cKevin O'Connor2023-04-071-4/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Prefer "MACH_STM32F1" test over "MACH_STM32F103 || MACH_N32G45x"Kevin O'Connor2023-04-072-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Update comment header in printer-voxelab-aquila-2021.cfgKevin O'Connor2023-04-071-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Add support for Nation N32G45x mcus (#6116)Alexey2023-04-0710-10/+845
| | | | | N32G452/G455 are mostly compatible with STM32F103 but have M4 core and different ADC. Signed-off-by: Alexey Golyshin <stas2z@gmail.com>
* docs: Measuring_Resonances.md improved information on I2C accelerometers and ↵Dr. Matthew Swabey2023-04-071-38/+161
| | | | | | | | | AVR support (#6132) More information on I2C accelerometers. Added in table of MCUs with 400kbit/s I2C support Signed-off-by: Matthew Swabey <matthew@swabey.org>
* docs: Fix typo in docs (#6147)Alex Voinea2023-03-301-1/+1
| | | Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
* tmc: DUMP_TMC optional REGISTER parameterAlex Voinea2023-03-302-12/+28
| | | | | | Add an optional REGISTER parameter to DUMP_TMC so that the output is more filtered/cleaner for manual TMC calibration. Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
* config: Fix motor4 comment in manta m8p configsKevin O'Connor2023-03-292-2/+2
| | | | | | Reported by @jakep82. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add config printer-sovol-sv05-2022.cfg (#6122)spinixguy2023-03-292-0/+145
| | | | | Adding Sovol SV06 printer config Signed-off-by: Joseph Spainhour <spinixguy@gmail.com>
* config: Add Ratrig V-Minion (#6120)bbro442023-03-292-0/+181
| | | | | This adds support for the stock configuration of the V-Minion printer from Ratrig, based on the Octopus v1.1 (STM32F446) Signed-off-by: Benjamin Lesher <bbro44@protonmail.com>
* linux: Lock Memory and Increase Priority (#6131)Dr. Matthew Swabey2023-03-271-2/+9
| | | | | | | | | | | | | | | | | Realtime programming best practice is to lock realtime code memory to prevent paging which will lead to unbounded latencies. The Linux MCU process has well bounded memory and small RAM footprint so locking the entire process' RAM has no downsides and will improve behavior when the system comes under memory pressure. (See bootlin training and Linux Foundation documentation linked below.) RT process priority ranges from 0-99 (although POSIX only requires 32), boost MCU process priority to half the max/2 to improve robustness when the system comes under pressure from other RT Kernel or user processes. Reference links: bootlin: https://bootlin.com/doc/training/preempt-rt/preempt-rt-slides.pdf Linux Foundation: https://wiki.linuxfoundation.org/realtime/documentation/howto/applications/application_base#howto_build_a_simple_rt_application Signed-off-by: Matthew Swabey <matthew@swabey.org>
* stm32: Enable I2C on stm32h7 (#6130)BIGTREETECH2023-03-273-1/+13
| | | Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
* tmc: Enable sg_angle_offset for smooth switching from Stealthchop to ↵BIGTREETECH2023-03-272-0/+3
| | | | | Spreadcycle (#6123) Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
* scripts: add install script for Ubuntu 22.04 Jammy (#6112)Jess2023-03-271-0/+102
| | | | | python-dev package is not available on Jammy; specifies python3-dev. Signed-off-by: Jess Sullivan <jess@sulliwood.org>
* docs: Document how to connect ADXL345 to Pico then on to Pi. (#5996)Chris Thompson2023-03-274-1/+88
| | | | | | This is based on documentation from: https://klipper.discourse.group/t/raspberry-pi-pico-adxl345-portable-resonance-measurement/1757 Signed-off-by: Christopher Thompson <chris@hypocrite.org>
* stale-issue-bot: Update github lock-threads action to v4Kevin O'Connor2023-03-271-1/+1
| | | | | | Update to latest version in hopes it will reduce failure reports. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Update printer-anycubic-vyper-2021.cfg (#6113)Robert2023-03-211-0/+4
| | | | | Having the controller fan PA14 in the config is important for the stepper drivers not to overheat and skip steps. Signed-off-by: Robert Lilienthal <13837429+RobLil@users.noreply.github.com>
* avr: Allow I2C bus speed to be set by Klipper (#6111)Dr. Matthew Swabey2023-03-212-28/+24
| | | | | Allow I2C bus speed to be set by appropriate Klipper commands. Signed-off-by: Matthew Swabey <matthew@swabey.org>
* config: Add Fysetc Cheetah V2.0 (#6119)bbro442023-03-202-0/+139
| | | | | This adds support for the Cheetah v2.0 mainboard from Fysetc. Signed-off-by: Benjamin Lesher <bbro44@protonmail.com>
* tmc: SET_TMC_FIELD VELOCITYAlex Voinea2023-03-209-10/+37
| | | | | Ability to specify `VELOCITY` as a parameter for SET_TMC_FIELD. Useful for configuring at runtime the TSTEP based fields of the driver. Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
* tmc: Implement TMCtstepHelperAlex Voinea2023-03-201-7/+20
| | | | | Implement a helper for calculating velocity based thresholds for tmc drivers. This code was written in such a way that it can be used with more fields than just tpwmthrs. Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
* tmc: Initialize self.coolthrs in TMCVirtualPinHelper constructorKevin O'Connor2023-03-151-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* 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>