bdring / Grbl_Esp32

A port of Grbl CNC Firmware for ESP32
GNU General Public License v3.0
1.71k stars 531 forks source link

Help please - 4 axis microsteps issue #1388

Open FlyerLife22 opened 1 year ago

FlyerLife22 commented 1 year ago

I am looking to use one of my older 4 pack boards to run a small 4 axis machine with the TMC5160 plug in drivers. I have an issue where everything works, but any update to the microsteps for the Z axis are being applied to the A axis and vice versa. I know this code isnt maintained any more, but would someone be able to point me to the correct file(s) to start looking at for the bug? Seems like it is probably a labeling error somewhere that should be a quick fix once I know where to look.

Thanks!

MitchBradley commented 1 year ago

It's hard to know exactly which board you are talking about because "4 pack" is not the name of any board I know of.

Even if you manage to sort out the addressing problem, you will not get correct results because there is a serious bug in the way that Grbl_Esp32 handles 5160s - it uses the 2160 code in the TMCStepper library to access 5160 registers, resulting in incorrect settings. We fixed it in FluidNC a long time ago.