This is somewhat, a very interesting discussion…
For some reason, when setting up the klipper (printer.cfg), I can not tell klipper (with CAN bus) that my stepper motor is 256 microsteps, anything over 128 will stall the printer…
In the other hand… Every single sample config file has microstep set to 16.
Here is an example of a generic coreXY printer.cfg
# This file is an example config file for corexy (and also h-bot)
# style printers. One may copy and edit this file to configure a new
# corexy printer.
# DO NOT COPY THIS FILE WITHOUT CAREFULLY READING AND UPDATING IT
# FIRST. Incorrectly configured parameters may cause damage.
# See docs/Config_Reference.md for a description of parameters.
[stepper_x]
step_pin: PF0
dir_pin: PF1
enable_pin: !PD7
microsteps: 16
rotation_distance: 40
endstop_pin: ^PE5
position_endstop: 0
position_max: 200
homing_speed: 50
I’m running my printer.cfg with 128 microsteps, which is the max I able to run the printer at 100mm/s +
If I try 256 microsteps the printer stall and give me a communicating error.
[stepper_x]
step_pin: PE2
dir_pin: !PB4 #add ! to invert motor
enable_pin: !PC11
microsteps: 128 #was 16
rotation_distance: 32
full_steps_per_rotation: 200
endstop_pin: EBBCan: PB6
position_endstop: 0
position_max: 300
homing_speed: 100
I’m guessing that the EBB CAN bus communication does not have enough bandwidth to control 256 microsteps (10000000) CAN bus speed, the default is 500000