I am also struggling to get an encoder working on PRU0 / QEP0 on the 
PocketBeagle.  Like Brijen, the walkthroughs posted are geared toward the 
BeagleBone Black and Blue, which appear to work well out-of-the-box.  I am 
running the latest  "Debian 9.5 2018-10-07 4GB SD IoT " release.  Then, 
walked through the two links provided by Jaremy.
   My encoder A and B signals are connected to PocketBeagle pins P1-31 
(QEP0 A) and P2-24 (QEP0 B).  Then I run the following:

debian@beaglebone:~$ config-pin P1_31 qep
debian@beaglebone:~$ config-pin P2_34 qep
debian@beaglebone:~$ config-pin -q P2_34
P2_34 Mode: qep
debian@beaglebone:~$ config-pin -q P1_31
P1_31 Mode: qep
debian@beaglebone:~$ ls /sys/devices/platform/ocp/48300000.epwmss/
48300200.pwm  driver  driver_override  modalias  of_node  power  subsystem  
uevent

Note that the '48300180.eqep/' directory isn't there, even though the pins 
appear to be in QEP mode.  I feel I'm missing something simple, ideas on 
what it may be?

Thanks,
Aaron




On Wednesday, September 12, 2018 at 12:14:08 PM UTC-4, Jaremy Creechley 
wrote:
>
> It's easiest to start off with the uboot overlay setup:
>
> https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays
>
> And configure the pins as PRU pins: 
>
>
> http://derekmolloy.ie/gpios-on-the-beaglebone-black-using-device-tree-overlays/
>
> Best, Jaremy
>
>
>
> Jaremy Creechley
> [email protected] <javascript:>
> το ευαγγελιον
>
>
> On Mon, Sep 10, 2018 at 6:08 AM <[email protected] <javascript:>> wrote:
>
>> Hello PRU experts,
>>
>> Newcomers like myself struggle getting the PRUs enabled on PocketBeagle. 
>>
>> (1) I've downloaded the image Debian 9.4 2018-06-17 4GB SD IoT  
>> <http://debian.beagleboard.org/images/bone-debian-9.4-iot-armhf-2018-06-17-4gb.img.xz>
>>  from 
>> website (https://beagleboard.org/latest-images)
>>
>> Do we have steps of what to do from this clean installion point, that 
>> would allow me to toggle a GPIO pin using a PRU?
>>
>> Many Thanks,
>> Brijen
>>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" 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/beagleboard/66e219c6-5570-4169-86c4-b4c996ac4f71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to