Set SPI mode with TMC2130 - makerbase-mks/MKS-Robin-E3-E3D GitHub Wiki
Board jumper set
Use 3 jumper cap to short the SPI / UART side and all the pin. You can also check the silkscreen on the back of the motherboard about the Mode jumper settings
Need to use SPI mode axis, use jumper cap to connect accordingly
We use TMC2130 SPI mode for X Y Z E0 axis, as follows:
Firmware set
Set DRIVER_TYPE in configuration.h file
#define X_DRIVER_TYPE TMC2130
#define Y_DRIVER_TYPE TMC2130
#define Z_DRIVER_TYPE TMC2130
#define E0_DRIVER_TYPE TMC2130
ENABLE TMC_USE_SW_SPI in configuration_adv.h file
Set CURRENT in configuration_adv.h file
Search for HAS_TRINAMIC_CONFIG
Set X Y Z E axis current, we are use default
Use SENSORLESS_HOMING function (X and Y AXIS)
Enable SENSORLESS_HOMING
Set #define X_STALL_SENSITIVITY 8 and #define Y_STALL_SENSITIVITY 8