I have connected the pins as following but I think something is off with the firmware of the board or smth.
TB4, Pin1 (GND) -> SPINX1A, Pin1 (GND)
TB4, Pin2 (STEP-) -> not connected
TB4, Pin3 (STEP+) -> SPINX1A, Pin3 (PWM)
TB4, Pin4 (DIR-) -> not connected
TB4, Pin5 (DIR+) -> SPINX1A, Pin5 (DIR)
TB4, Pin6 (+5v) -> SPINX1A, Pin6 (+5v)
TB5, Pin24 (Out5+) -> SPINX1A, Pin4 (ENA)
TB5, Pin23 (Out5-) -> SPINX1A, Pin2 (GND)
In hal I have added:
net spindir spindle.0.forward => hm2_7i95.0.gpio.009.out
Checked the pins in hal configuration, I can see the pwm being enabled, and I can see a value that changes as I change the spindle override. This value is either positive or negative depending on the spindle direction.
The problem is that the Speed LED on the SPINX board is always on. When I start the spindle in reverse it says on, when I move it forward it turns off. I think the Dir LED should behave like this not the speed pin.
The enable pin lights on when I start the spindle in any direction.
From what I read on a separate thread, the DIR led on the SPINX board should turn off in one of the directions. For me its the SPEED LED.
Also when I play with the spindle override the DIR pin dims when I increase the spindle speed and it lights up when I decrease the spindle speed. The dimming of the led proportional with the spindle I think its expected, but it should be the SPEED pin not the DIR pin.
I checked the wiring several times, so this leads me to believe that somehow the pin allocation on the mesa board is not correct.
I've used the firmware provided by you in the begining of this thread.
Please let me know your thoughts on this matter.