Jump to content

MANTA M8P V1.0 CB1 + TMC5160


Pock

Recommended Posts

I can't start the hardware SPI for Klipper

The recommended configuration does not work:

[tmc5160 stepper_x]
cs_pin: PC10
spi_bus: spi1
#diag1_pin: PF3
run_current: 1.270
hold_current: 0.800
sense_resistor: 0.033

Error pops up:

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

with the SPI software - works properly:

[tmc5160 stepper_x]
cs_pin: PC10
spi_software_sclk_pin: PA5
spi_software_miso_pin: PA6
spi_software_mosi_pin: PA7
#diag1_pin: PF3
run_current: 1.270
hold_current: 0.800
sense_resistor: 0.033

How to correctly configure hardware SPI?

 

 

Link to comment
Share on other sites

  • 2 weeks later...

spoiler alert: 😄 it doesn't work.

Klipper cfg:


#Motor 1
[stepper_x]
step_pin: PE2
dir_pin: PB4
enable_pin: !PC11
microsteps: 128
rotation_distance: 40
#endstop_pin: ^!PF3
position_endstop: 0
endstop_pin: tmc5160_stepper_x:virtual_endstop
position_min: 0
position_max: 295
homing_speed: 30
second_homing_speed: 15
homing_retract_dist: 0


#Motor 2
[stepper_y]
step_pin: PF12
dir_pin: PF11
enable_pin: !PB3
microsteps: 128
rotation_distance: 40
#endstop_pin: ^!PF4
position_endstop: 295
endstop_pin: tmc5160_stepper_y:virtual_endstop
position_min: 0
position_max: 295
homing_speed: 30
second_homing_speed: 15
homing_retract_dist: 0

[tmc5160 stepper_x]
cs_pin: PC10
#spi_bus: spi1
diag1_pin: ^!PF3
run_current: 0.850
#stealthchop_threshold: 999999
driver_SGT : -60  
sense_resistor: 0.075
interpolate: False
spi_software_sclk_pin: PA5
spi_software_mosi_pin: PA7
spi_software_miso_pin: PA6


[tmc5160 stepper_y]
cs_pin: PF13
#spi_bus: spi1
diag1_pin: ^!PF4
run_current: 0.850
#stealthchop_threshold: 999999
driver_SGT : -60  
sense_resistor: 0.075
interpolate: False
spi_software_sclk_pin: PA5
spi_software_mosi_pin: PA7
spi_software_miso_pin: PA6

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...