BTT Octopus Max EZ SPI not working

I am having problems getting the TMC5160 drivers to work on the BTT Octopus Max EZ.

Whenever I define “spi_bus = spi4” in the Klipper config, the board crashes. In the log file you can see the message “b’Got EOF when reading from device’”.

In the attached log is the first start with the config “spi_bus = spi4”.
and the second start without the spi_bus config.

If the spi_bus parameter is not present the board works normally.

The drivers themselves work in a BTT SKR 3 EZ without problems.

Can someone help me to find the error?

klippy_without_spi_bus.log (5.4 KB)

Is this a configuration bug, a Klipper bug or a hardware bug?

Hi , i have the same problem with same Board
i want to use 6 numbers of EZ5160 drivers, but in klipper its giving error, wven if i add single EZ5160 driver
[tmc5160 stepper_x]
cs_pin: PG14
spi_bus: spi4
run_current: 1.272
stealthchop_threshold: 999999

Does it work without the spi_bus: spi4 statement?

when using soft spi, it works.
maybe lcd/5160 will fail, and sd/adxl345 will works with spi4, need to be comfirmed

[tmc5160 stepper_x]
cs_pin: PG14
spi_speed: 500000
spi_software_sclk_pin: PE12
spi_software_mosi_pin: PE14
spi_software_miso_pin: PE13
sense_resistor: 0.075
interpolate: True
run_current: 1.272
hold_current: 0.600
stealthchop_threshold: 999999

it is working when i use this

BTT recently submitted a change (commit b2178f49) that may improve results on the “BTT Octopus Max EZ” board. You may want to retry with the latest code (and be sure to reflash the board with the latest code).

-Kevin

I tried now every solution i could find, but nothing worked…
Did any of you get the Max EZ working with the soft spi?
I used gsuresh2u’s config, but this only throwed a new error:
“Unable to write tmc spi ‘stepper_x’ register GLOBALSCALER”

Is there maybe something that needs to be disabled?

Edit:
now everything works. When you have 3 out of 6 of the EZ5160 dead on arrival it drives you crazy…
→ only soft SPI pins need to be declared, nothing more. No speed settings etc. for the EZ5160

# Motor-3
[stepper_z]
step_pin: PE1
dir_pin: PE0
enable_pin: !PE2
microsteps: 32
rotation_distance: 8
endstop_pin: PF4
position_endstop: -0.5
position_max: 200

[tmc5160 stepper_z]
cs_pin: PG12
spi_software_miso_pin: PE13
spi_software_mosi_pin: PE14
spi_software_sclk_pin: PE12
interpolate: True
run_current: 0.80
#hold_current: 0.2
sense_resistor: 0.075
stealthchop_threshold: 0
#spi_speed: 8000000 #3500000

Hi everyone

I am having the axact same problem but I cant get any of these solutions to work.

If I use the software SPI settings I get an error that says “pin PE13 is reserved for spi4”
If I use the spi_bus = spi4 setting I get “TMC stepper_x failed to init: Unable to read tmc uart ‘stepper_x’ register IFCNT”

does anyone have any new info on this?

I also have a problem trying to use the max31865 modules with PT1000 sensors and they use SPI too. They error out when the part cooling fan kicks on. Is this config or is something defective?

The same board works fine with 2209 drivers. I just wanted to use 48V on Motor1 and Motor2