Hello,
First of all many thanks to MX_Master for this project. I already have it installed on orangePi H3 board with 1GB RAM, and it drives steppers flawlessly. Back to the questions: What is the status of "encoder" module for H3?
I've tried to set it up (without real machine, using function generator as input) and instantly got following error:
HAL: ERROR: pin_new(arisc.encoder.0.A-all-edges) called with already-initialized memory
HAL: ERROR: pin_new(arisc.encoder.0.A-all-edges) called with already-initialized memory
Quick check of the code pointed me to "arisc.c" from github, line 521 & 522, 529 & 530:
Code:
EXPORT_PIN(HAL_IN,a_inv,"A-invert", 0);
EXPORT_PIN(HAL_IN,a_inv,"A-all-edges", 0);
Is that correct? Shouldn't it rather be:
Code:
EXPORT_PIN(HAL_IN,a_inv,"A-invert", 0);
EXPORT_PIN(HAL_IN,a_all,"A-all-edges", 0);
I will try to check it myself, but I need to prepare devel environment on orangePi to compile linuxcnc & drivers and H3 is slow.
PS.
Compiled the module and found another problem (line 917):
Code:
for (ch = pwm_ch_cnt; ch--; )
That caused instant rtapi error with signal 11, definitely it should be:
Code:
for (ch = enc_ch_cnt; ch--; )
Now linuxcnc works, however it does not read spindle speed or position (both values are 0). Either my hal config is wrong or encoder module is not ready yet. Please point me to the right direction.
Thanks, Michael Widlok.