TMC5160HV on Octopus Pro V1.0 Sensorless Homing

Hi folks, I'm having a heck of a time getting my X and Y working with sensorless homing on an Octopus Pro 1.0 (446). Relevant section of config:
endstop_pin: tmc5160_stepper_x:virtual_endstop
position_min: -1
position_endstop: -1
homing_retract_dist: 0

[stepper_y]
endstop_pin: tmc5160_stepper_y:virtual_endstop
position_min: 0
position_endstop: 0
homing_retract_dist: 0

[tmc5160 stepper_x]
diag1_pin: ^!x_diag_pin
driver_SGT: -64 # Stall guard threshold, this is your X sensitivity, to adjust, copy this section and override it in printer.cfg.

[tmc5160 stepper_y]
diag1_pin: ^!y_diag_pin
driver_SGT: -64 # Stall guard threshold, this is your Y sensitivity, to adjust, copy this section and override it in printer.cfg.

[gcode_macro RatOS]
variable_homing: "sensorless"
variable_sensorless_x_current: 0.6
variable_sensorless_y_current: 0.9
endstop_pin: tmc5160_stepper_x:virtual_endstop
position_min: -1
position_endstop: -1
homing_retract_dist: 0

[stepper_y]
endstop_pin: tmc5160_stepper_y:virtual_endstop
position_min: 0
position_endstop: 0
homing_retract_dist: 0

[tmc5160 stepper_x]
diag1_pin: ^!x_diag_pin
driver_SGT: -64 # Stall guard threshold, this is your X sensitivity, to adjust, copy this section and override it in printer.cfg.

[tmc5160 stepper_y]
diag1_pin: ^!y_diag_pin
driver_SGT: -64 # Stall guard threshold, this is your Y sensitivity, to adjust, copy this section and override it in printer.cfg.

[gcode_macro RatOS]
variable_homing: "sensorless"
variable_sensorless_x_current: 0.6
variable_sensorless_y_current: 0.9
x_diag_pin is PG6, y_diag_pin is PG9 both in my config as well as the pinout PDF from BTT... Any suggestions? I've tried values of driver_sgt from -64 to 63
1 Reply
conscious-sapphire
conscious-sapphire10mo ago
UPDATE: Figured it out! TMC5160HV have a DIAG0 output not DIAG1; changing config to use diag0_pin instead of diag1_pin causes it to work perfectly now. So far I've not found a single reference to this anywhere online or in this discord. All the TMC5160 references use diag1_pin