MAX31865 and TMC5160 not working after update.

I have 2 xTMC5160 at 50v Hotend sensor PT100 working on MAX31865 Octopus pro F446 After doing update to RatOS and klipper i cant do anything with this 3 parts. Even disabling Max31865 i keep getting the error: "Unable to write tmc spi 'stepper_x' register GLOBALSCALER Once the underlying issue is corrected, use the "FIRMWARE_RESTART" command to reset the firmware, reload the config, and restart the host software. Printer is shutdown" Any ideias?
17 Replies
blacksmithforlife
Looks like someone else has the same issue but no resolution. https://github.com/FYSETC/FYSETC-SPIDER/issues/40
GitHub
"Can't write to TMC SPI "stepper_x/y/extruder register, GLOBALSCALE...
Getting this error.. Example of my configs [stepper_x] step_pin: PE11 dir_pin: PE10 enable_pin: !PE9 microsteps: 16 rotation_distance: 40 endstop_pin: PB14 # PA1 for X-max position_endstop: 0 posit...
fascinating-indigo
fascinating-indigo2y ago
Thanks, but this fix is for fystec board, my is BTT octopus Pro F446.
miklschmidt
miklschmidt2y ago
Doesn’t matter. This error occurs when Klipper can’t communicate with the driver over SPI.
fascinating-indigo
fascinating-indigo2y ago
there a option "spi_bus: spi4" klipper reports error. im instaling ratos 1 to check it, i don´t know if its a coincidence or not, after update the Ratos 2 i loose my drivers and the MaX31865. if i need to buy another board and drives i'm thinking to get another BTT octopus pro f446 and the BTT 5160 pro V1.3, any suggestions?
miklschmidt
miklschmidt2y ago
please post your klipper.log, i’ll take a look
fascinating-indigo
fascinating-indigo2y ago
Reverting to ratos v1.2.4-1-ge155499, the tmc5160 24V works and the MAX31865 don't, using the drivers TMC2209 on uart , max 31865 works. I try the setting propose, but i get the error "Option 'spi_bus' is not valid in section 'tmc5160 stepper_x'", any ideia, please?
fascinating-indigo
fascinating-indigo2y ago
miklschmidt
miklschmidt2y ago
You need to run software spi on everything for multi device SPI to work That includes the MAX31865 It's a klipper thing. (ie, use spi_software_*_pin and no spi_bus)
[temperature_sensor Extrusor]
sensor_type = MAX31865
sensor_pin = PF8
spi_software_mosi_pin = stepper_spi_mosi_pin
spi_software_miso_pin = stepper_spi_miso_pin
spi_software_sclk_pin = stepper_spi_sclk_pin
rtd_nominal_r = 100
rtd_num_of_wires = 2
rtd_reference_r = 430
rtd_use_50hz_filter = True
[temperature_sensor Extrusor]
sensor_type = MAX31865
sensor_pin = PF8
spi_software_mosi_pin = stepper_spi_mosi_pin
spi_software_miso_pin = stepper_spi_miso_pin
spi_software_sclk_pin = stepper_spi_sclk_pin
rtd_nominal_r = 100
rtd_num_of_wires = 2
rtd_reference_r = 430
rtd_use_50hz_filter = True
that's not how you do it btw your max31865 settings go under [extruder] remove the spi_bus parameter under [tmc5160 stepper_x] there's no difference between ratos 1 and 2 here btw, you just got the config wrong in different ways
fascinating-indigo
fascinating-indigo2y ago
The interesting it's reversing to Ratos 1 , the Max31865 works and the drivers also works, but not at same time, I will try. I just bought another board Octopus pro f446 and the news TMC5160 Pro what you think about it?
miklschmidt
miklschmidt2y ago
also get rid of all this crap:
driver_iholddelay = 10
driver_tpowerdown = 128
driver_fd3 = 0
driver_tpfd = 0
driver_chm = 0
driver_vhighfs = 0
driver_vhighchm = 0
driver_diss2g = 0
driver_diss2vs = 0
driver_pwm_autoscale = True
driver_pwm_autograd = True
driver_pwm_freq = 1
driver_freewheel = 0
driver_pwm_grad = 14
driver_pwm_ofs = 36
driver_pwm_reg = 8
driver_pwm_lim = 12
driver_sgt = 0
driver_semin = 0
driver_seup = 0
driver_semax = 0
driver_sedn = 0
driver_seimin = 0
driver_sfilt = 0
driver_iholddelay = 10
driver_tpowerdown = 128
driver_fd3 = 0
driver_tpfd = 0
driver_chm = 0
driver_vhighfs = 0
driver_vhighchm = 0
driver_diss2g = 0
driver_diss2vs = 0
driver_pwm_autoscale = True
driver_pwm_autograd = True
driver_pwm_freq = 1
driver_freewheel = 0
driver_pwm_grad = 14
driver_pwm_ofs = 36
driver_pwm_reg = 8
driver_pwm_lim = 12
driver_sgt = 0
driver_semin = 0
driver_seup = 0
driver_semax = 0
driver_sedn = 0
driver_seimin = 0
driver_sfilt = 0
It's not the RatOS version, it's your manual configuration
fascinating-indigo
fascinating-indigo2y ago
That settings I use on skr pro 1.2 with normal tmc5160, they work nice.
miklschmidt
miklschmidt2y ago
Do you have any idea what they do?
fascinating-indigo
fascinating-indigo2y ago
No, but some time ago I was getting problems with the drivers, so I copy from marlin and the problems finish , and my FDM starts working very nice and very finish prints.
miklschmidt
miklschmidt2y ago
Don't copy paste settings like these they're very specific to the stepper and current used You can't just copy paste stuff like this. Leave it at the default klipper values or go through proper calibration.
fascinating-indigo
fascinating-indigo2y ago
Yes , I know, the drives work at 24v. The drives on vcore 3 works at 50v , I use the Ratos settimgs Sorry I didn't copy from marlin, I copyed from a person how as the same configuration. Thanks anyway. Tonight I test your ideia and give the feedback. thank you, it´s working, looks like i toast my tmc5160hv drivers, any suggestion to replace, brand?
miklschmidt
miklschmidt2y ago
I prefer to match the brand of the board and drivers. So BTT 5160 Pro
fascinating-indigo
fascinating-indigo2y ago
Thanks