I'm trying to swap out the 2209 drivers for my X/Y with 5160T pro v1s on my Octopus and I have got to the point where i am able to move but I can't seem to figure out why sensorless homing isn't working, it was working just fine with the 2209s. I have the jumpers in the spots for both SPI and stallgaurd so I assume its just a config issue at this point. I followed the guides to invert the diag pin on the 5160 section of the klipper config page but I don't think that the board is actually sensing anything, when attempting to home the tool head just hits the end and stalls until the firmware stops it for no endstop detection I have tried all sorts of driver_SGT settings along with swapping defining DIAG1 and DIAG0 with no luck. Any input as to how my config could be wrong would be appreciated.
My homing macros just in case.
[homing_override]
set_position_z: 0
axes: xyz
gcode:
G1 Z20 F4000
SENSORLESS_HOME_X
SENSORLESS_HOME_Y
G90
G1 X150 Y150 F10000
G28 Z
G1 Z10 F4000
[gcode_macro SENSORLESS_HOME_X]
gcode:
{% set HOME_CUR = 0.700 %}
#{% set driver_config = printer.configfile.settings['tmc2209 stepper_x'] %}
{% set driver_config = printer.configfile.settings['tmc5160 stepper_x'] %}
{% set RUN_CUR = driver_config.run_current %}
SET_TMC_CURRENT STEPPER=stepper_x CURRENT={HOME_CUR}
G4 P1000
G28 X0
G90
G1 X298 F2000
SET_TMC_CURRENT STEPPER=stepper_x CURRENT={RUN_CUR}
[gcode_macro SENSORLESS_HOME_Y]
gcode:
{% set HOME_CUR = 0.700 %}
#{% set driver_config = printer.configfile.settings['tmc2209 stepper_y'] %}
{% set driver_config = printer.configfile.settings['tmc5160 stepper_y'] %}
{% set RUN_CUR = driver_config.run_current %}
SET_TMC_CURRENT STEPPER=stepper_y CURRENT={HOME_CUR}
G4 P1000
G28 Y0
G90
G1 Y298 F2000
SET_TMC_CURRENT STEPPER=stepper_y CURRENT={RUN_CUR}