You forgot to attach the .bbio file and you didn't mention what files you are editing
There is no magic copying of files going on behind the scenes. all files used should be located in the same directory and be referred as ./filename or with absolute path step 1 configure the Pins as input output ... whatever that is done by config-pin utility that takes the .bbio file as input step 2 loadrt hal_bb_gpio output_pins=XXX,XXX,XXX... input_pins=XXX,XXX,XXX... does define the pins used in your config as input or output Pins used direct by pru_generic (stepgen) shouldn't appear on that line step 3 assign the pru pins to stepgen setp hpg.stepgen.XX.steppin XXX setp hpg.stepgen.XX.dirpin XXX then it should work as expected Axis Z in your .hal file uses setp hpg.stepgen.02.steppin 816 # P8.29 PRU1.out9 setp hpg.stepgen.02.dirpin 818 but also configures those pins in bbio loadrt hal_bb_gpio output_pins=816,818,819 input_pins=807,808,809,810,817 On Tuesday, February 18, 2020 at 6:38:28 PM UTC-5, Sergio Alejandro Salinas wrote: > > I hope you are doing well, I have been working in this problem some time > now. > > So, I am using *LinuxCNC/Machinekit* in a *Beaglebone* with a *Probotix > PBX-BB rev 5.2*. I am trying to use *three *axis, with its *dir *and *step > *signal. > > At first I had the problem that the motor was moving in* one direction* > only. This was solved by* removing the pins* used (812, 813, 814, 815) > from the line from the .hal > > loadrt hal_bb_gpio output_pins=816,818,819 input_pins=807,808,809,810,817 > (so it was a pin conflict between both drivers, the gpio and the pru) > > If I *add *the pins (812, 813, 814, 815) to the previous line, it moves > in one direction, then if I edit the file to remove then, it moves as > desired, but when rebooting, it stops working, and I need to do the > previous steps (add and remove the pins). > > I think the hal_bb_gpio is copying the configuration file to a directory > the pru driver is not able to do alone, as consequence of how I have the > configuration. > > > I attached my .hal .ini .bbio, and setup.h (until now, I have been working > over the CRAMPS files). > > > What are your thoughts? > > > Thanks in advance > > > Sergio Salinas > -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/machinekit/ef15dd4f-647c-47fc-989e-df3784a43f56%40googlegroups.com.
