Anyone setup sensorless homing on the Sovol Zero?

As above, I have gotten as far as configuring in software but I’m unsure of pins etc

3:45:00 $ DUMP_TMC STEPPER=stepper_x
13:45:00 // ========== Write-only registers ==========
13:45:00 // GLOBALSCALER: 000000c3 globalscaler=195
13:45:00 // IHOLD_IRUN: 00061f1f ihold=31 irun=31 iholddelay=6
13:45:00 // MSLUT0: aaaab554 mslut0=2863314260
13:45:00 // MSLUT1: 4a9554aa mslut1=1251300522
13:45:00 // MSLUT2: 24492929 mslut2=608774441
13:45:00 // MSLUT3: 10104222 mslut3=269500962
13:45:00 // MSLUT4: fbffffff mslut4=4227858431
13:45:00 // MSLUT5: b5bb777d mslut5=3048961917
13:45:00 // MSLUT6: 49295556 mslut6=1227445590
13:45:00 // MSLUT7: 00404222 mslut7=4211234
13:45:00 // MSLUTSEL: ffff8056 w0=2 w1=1 w2=1 w3=1 x1=128 x2=255 x3=255
13:45:00 // MSLUTSTART: 00f70000 start_sin90=247
13:45:00 // TPWMTHRS: 000fffff tpwmthrs=1048575
13:45:00 // TCOOLTHRS: 00000000
13:45:00 // THIGH: 00000000
13:45:01 // COOLCONF: 00010000 sgt=1
13:45:01 // DRV_CONF: 00000400 bbmclks=4
13:45:01 // PWMCONF: c40c001e pwm_ofs=30 pwm_autoscale=1 pwm_autograd=1 pwm_reg=4 pwm_lim=12
13:45:01 // TPOWERDOWN: 0000000a tpowerdown=10
13:45:01 // ========== Queried registers ==========
13:45:01 // GCONF: 00000008 multistep_filt=1
13:45:01 // CHOPCONF: 23410153 toff=3 hstrt=5 hend=2 tbl=2 tpfd=4 mres=3(32usteps) dedge=1
13:45:01 // GSTAT: 00000005 reset=1(Reset) uv_cp=1(Undervoltage!)
13:45:01 // DRV_STATUS: 801f0000 cs_actual=31 stst=1
13:45:01 // FACTORY_CONF: 0000000e factory_conf=14
13:45:01 // IOIN: 300000d0 drv_enn=1 sd_mode=1 swcomp_in=1 version=0x30
13:45:01 // LOST_STEPS: 00000000
13:45:01 // MSCNT: 00000004 mscnt=4
13:45:01 // MSCURACT: 00f70006 cur_a=6 cur_b=247
13:45:01 // OTP_READ: 0000000e otp_fclktrim=14
13:45:01 // PWM_SCALE: 0000001d pwm_scale_sum=29
13:45:01 // PWM_AUTO: 0000001d pwm_ofs_auto=29
13:45:01 // TSTEP: 000fffff tstep=1048575

The furthest I’ve got is a printer that detects a stall right away, but even if I decrese sensitivity by 1 (yes 1) it wont stall

I have to ask… WHY?

Sensorless homing on a coreXY printer is (while doable) sub optimal as both motors have to stall to at the same time. That is why Sovol put switches in in the first place.

You may find this to be useful:

Also expand your search to include Voron as well as the Zero.

Because I’d like so set up the board the way i’d….LIKE…..

Besides I have four corexy’s running sensorless without problems.

The reason for my question is the lack of a jumper for the diag pin, the lack of a jumper led me to hope the 5160’s could have diag enabled some other way.

Just thought if anyone else had gone down this path before I get into datasheets and start making my own soloution.

It may be possible to monitor stallguard over SPI. See:

The SPI message DRV_STATUS contains SG_RESULT which should mirror the DIAG pin (with minor delay due to bus delays). I can’t find a method to map it to virtual_endstop. I recommend you ask for help here:

If you want a hardware solution, I’d start by using a continuity tester from pin 26 on the driver chip to the MCU pins. It is possible there is an (undocumented) trace on the board.

It would be feasible to solder a wire to pin 26 on the driver and plug the other end into the appropriate limit switch creating your own “jumper”