Unable to write tmc spi 'stepper_x' register GCONF

Manta M8P V2
CB2
TMC5160 for X and Y
TMC2209 for Z

Klippy Log.zip (83.7 KB)

I’m currenty building a custom 3D Printer based on CoreXY. The TMC2209 drivers work fine, but the TMC5160 don’t. When i try to home them, i receive the following error: Unable to write tmc spi ‘stepper_x’ register GCONF. I tried it with all four TMC5160, but not a single one works. After hour’s of trying i’m kinda clueless now.

Well, generally, it means a wrong connection, a wrong SPI bus, or something similar.
DUMP_TMC STEPPER=... should be enough to get the idea, ffffff in read fields would mean the driver is not connected. 00000 would mean, something is probably wrong.
It would be expected that jumpers are set correctly.


And there is a motor power.

spi1 by mcu definition is BUS_PINS_spi1=PA6,PA7,PA5

[tmc5160 stepper_x]
cs_pin = PE3
diag1_pin = PF3
driver_sgt = -64
run_current = 0.800
sense_resistor = 0.022
spi_speed = 3200000
spi_bus = spi1

But,

There are no such pins for HW SPI.

MCU 'mcu' config: ADC_MAX=4095 BUS_PINS_i2c1_PB6_PB7=PB6,PB7 BUS_PINS_i2c1_PB8_PB9=PB8,PB9 BUS_PINS_i2c2_PB10_PB11=PB10,PB11 BUS_PINS_i2c3_PA8_PC9=PA8,PC9 BUS_PINS_spi1=PA6,PA7,PA5 BUS_PINS_spi1a=PB4,PB5,PB3 BUS_PINS_spi2=PB14,PB15,PB13 BUS_PINS_spi2a=PC2,PC3,PB10 BUS_PINS_spi3a=PC11,PC12,PC10 BUS_PINS_spi4=PE13,PE14,PE12 BUS_PINS_spi5=PF8,PF9,PF7 BUS_PINS_spi5a=PH7,PF11,PH6 BUS_PINS_spi6=PG12,PG14,PG13 CANBUS_BRIDGE=1 CLOCK_FREQ=400000000 MCU=stm32h723xx PWM_MAX=257 RECEIVE_WINDOW=192 RESERVE_PINS_CAN=PB0,PB1 RESERVE_PINS_USB=PA11,PA12 RESERVE_PINS_crystal=PH0,PH1 STATS_SUMSQ_BASE=256

So, probably, you should use SW SPI.

Hope that helps.


Looks like there is just no HW spi for those pins.

I already tried both methods, but neither worked.
Maybe i forgot some jumpers? For testing reasons are M1, M5 TMC2209 and M3 TMC5160, so we could check every single TMC5160, but none of the 5160 are working.

At the moment i’m pretty sure that something with the SPI is causing the error. But i can’t figure it out, what exactly the problem is.