TMC5160 PRO + Octopus 1.1 @24V Sensorless homing not working

Hello,
I have RR V-Core 3.1, Octopus 1.1 24V. I've been running sensorless homing on my XY TMC 2209 drivers with no problems. Now I've swapped XY drivers to BTT TMC5160 PRO (running @24V). The axes move as they should so the drivers should be working fine. BUT my Homing does not work and after "G28 X0" or calling the macro directly "HOME_X_SENSORLESS" I get this error:
Error evaluating 'gcode_macro HOME_X_SENSORLESS:gcode': jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'tmc2209 stepper_x'
I tried searching this discord and found a german thread and a MK3S thread where the fix was a corrected homing macro that is the same as I have....
Any ideas what to do to get the sensorless homing working please?

I've done the following:
Hardware:
  1. removed 2209's
  2. added jumpers as per BTT guide for SPI mode (4 total per driver)
  3. insert 5160's
  4. left the two jumpers enabling sensorless homing in the two bottom right
    Software:
  5. I deleted everything from STEPPER MOTORS, DRIVERS & SPEED LIMITS, except for [include RatOS/printers/v-core-3/steppers.cfg]
  6. I created override_steppers.cfg that is called in USER OVERRIDES section of printer.cfg. This cfg is a combination of [tmc5160] and [stepper] configs for X and Y and it copy pastes the Z steppers configs. 5160 diag0_pin is the same position as 2209 diag_pin acc to pin maps for drivers.
    See below for x stepper config.
image.png
Was this page helpful?