makerbase-mks / MKS-SKIPR

MKS SKIPR is an all-in-one board launched by Makerbase for running Klipper. It integrates the RK3328 SOC running the Klipper host and the STM32F407VET6 MCU responsible for executing specific machine actions. It meets the use of most 3D printers.
GNU General Public License v3.0
88 stars 14 forks source link

TMC2240 SPI #58

Open vtr1000a opened 9 months ago

vtr1000a commented 9 months ago

Hello, does anyone have a working configuration with sensorless homing for the TMC2240 drivers. My engines are turning. But sensorless homing doesn't work.

[stepper_x] step_pin:PC14 dir_pin:!PC13 enable_pin:!PC15 microsteps: 16 rotation_distance: 40 full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper endstop_pin:tmc2240_stepper_x:virtual_endstop position_min: 0
position_endstop: 230 position_max: 230 homing_speed:30 homing_retract_dist:0 homing_positive_dir:true step_pulse_duration:0.000008

[tmc2240 stepper_x]

spi_bus: spi4

cs_pin: PE6 spi_software_sclk_pin: PE12 spi_software_mosi_pin: PE14 spi_software_miso_pin: PE13 diag1_pin: !PA14 run_current: 0.800 hold_current: 0.500 stealthchop_threshold: 1 driver_SGT:2