Hello,
I try to run my milling machine with a Beaglebone black. I got the setup for all 3 axes but I am struggling with the spindle. I would like the PWM on the gpio P8.12, but whatever I try, LinuxCNC doesn't start anymore.
Here my spindle setup in the HAL:
loadrt pwmgen output_type=0
addf pwmgen.update servo-thread
#addf pwmgen.make-pulses base-thread
net spindle-cmd <= motion.spindle-speed-out => pwmgen.0.value
net spindle-enable <= motion.spindle-on => pwmgen.0.enable
net spindle-pwm <= pwmgen.0.pwm
#net spindle-pwm pwmgen.0.pwm => parport.0.pin-09-out
#net spindle-pwm pwmgen.0.pwm => bb_gpio.p8.out-12
setp pwmgen.0.pwm-freq 2000.0
setp pwmgen.0.scale 10000.0
setp pwmgen.0.offset 0.0
setp pwmgen.0.dither-pwm true
net spindle-cw <= motion.spindle-forward
net spindle-brake <= motion.spindle-brake
#setp pwmgen.0.pwm 0x4C
#setp pwmgen.0.pwm => bb_gpio.p8.out-12
#setp pwmgen.0.pin 0x4C
#setp [PRUCONF](DRIVER).pwmgen.0.pin 0x4C
#net spindle-pwm => bb_gpio.p8.out-12
Could anyone help me please? I would really appreciate since I'm trying a while now.
Thank you!
Alex