I’ve gotten myself some TMC2130 to replace the loud old DRV8825 drivers.
So the new drivers have a SPI bus that can be connected to, and I wonder if the K8400 board have some spar pins that can be assigned to act as a SPI bus for the drivers.
if you have a look on the circuit diagram you can find two interfaces directly served by the CPU: ICSP on the right side and a non commented connection on the left side. I can suggest which connectors are the right one on the motherboard, but I haven’t verified this.
On the ICSP connector you have a full SPI interface except the chip select signal. This must be provided by the other free ports. I have seen, the SPI driver libraries are quite flexible for the usage of the CS pin. However, you have to do some programming in the firmware.
So you verified the HW SPI interface. The other issue is the Firmware. In the original Vellemann firmware there is no File pins_RAMPS.h. You can define some mnemonics for the free pins on the left connector in Pins.h for the u as CS-Pins. The Vellemann hardware doesn’t know any CS for the stepper driver, so doesn’t the firmware. However, the main challenge is the proper implementation of a driver routine in the firmware.
First of all I don’t follow the Marlin updates since they are related only to newer hardware, and the K8400 do not support these new drivers. That’s just one reason why I will not implement this feature in my firmware flavor (at least at the moment).
I haven’t checked Marlin 1.1.8, but with 1.1.6 you can find a lot of configuration files for different printers. If you have a running firmware configuration based on Marlin 1.1.8 I believe that you are using the configuration examples provided for K8400 and the file “pins_K8400.h”. So this would be the proper source to be modified, not the RAMPS file. You may can get some ideas from that, but finally you has to modify the correct, active source!