You likely need to configure the pin multiplexing for the pins you wish
to use so they can be controlled by the PRU. This is typically done via
a device-tree overlay, or something like cape-universal and the
config-pin utility if you don't like making device-tree files:
https://github.com/cdsteinkuehler/beaglebone-universal-io
On 5/15/2023 1:18 PM, fogl wrote:
>
> Hello everybody,
>
> I am still trying to run the stepper motor with Machinekit. I configured
> the hal and i was expecting some step/dir signal on the output pins, but
> nothing happens (i am monitoring with the oscilloscope).
>
> I tried to generate steps by changing the hpg.stepgen.00.position-cmd
> signal. I could see the hpg.stepgen.00.position-fb signal that was
> folowing. So everything seems fine here.
>
> The problem seems to be in the output pin configuration. I tried different
> kind of options:
> - to change the pru number from pru=0 to pru=1
> - i tried to change the pin location
>
> Can you please suggest what could be the problem,
> Regards
> Klemen
>
> *my .hal configuration*
> *halcmd: show pin hpg.*
> *$ uname -a*
> Linux beaglebone 4.19.120-bone-rt-r50 #1stretch PREEMPT RT Fri May 8
> 22:45:31 UTC 2020 armv7l GNU/Linux
>
> *$ ls /proc/device-tree/chosen/overlays/*
> AM335X-PRU-UIO-00A0 BB-ADC-00A0 BB-BONE-eMMC1-01-00A0
> BB-HDMI-TDA998x-00A0 name
>
--
Charles Steinkuehler
cha...@steinkuehler.net