Also now I checked whether I can load the overlay successfully, here is the
output:
root@beaglebone:/home/xsentius# cat $PINS|grep 'pin 13\|14'
registered pins: 142
...
pin 13 (44e10834.0) 00000027 pinctrl-single
pin 14 (44e10838.0) 00000027 pinctrl-single
...
root@beaglebone:/home/xsentius# sudo sh -c "echo PRU-GPIO-EXAMPLE > $SLOTS"
root@beaglebone:/home/xsentius# cat $PINS|grep 'pin 13\|14'
registered pins: 142
...
pin 13 (44e10834.0) 00000006 pinctrl-single
pin 14 (44e10838.0) 00000026 pinctrl-single
...
Pins values are changed as required.
On Tuesday, April 5, 2016 at 9:04:10 AM UTC+3, Xsentius wrote:
>
> I am working on a PRU example, and when I run it it gives me
> prussdrv_open() failed error. Here is the part of the C code that gives me
> the error:
>
> prussdrv_init();
> if (prussdrv_open(PRU_EVTOUT_0) == -1) {
> printf("prussdrv_open() failed\n");
> return 1;
> }
>
> Here is what I did:
>
>
> root@beaglebone:/home/xsentius/2# echo PRU-GPIO-EXAMPLE > $SLOTS
> root@beaglebone:/home/xsentius/2# cat $SLOTS
> 0: PF---- -1
> 1: PF---- -1
> 2: PF---- -1
> 3: PF---- -1
> 8: P-O-L- 0 Override Board Name,00A0,Override Manuf,PRU-GPIO-EXAMPLE
> root@beaglebone:/home/xsentius/2# ls
> pru_egp_output.bin pru_egp_output.p PRU-GPIO-EXAMPLE-00A0.dts
> pru_loader pru_loader.c
> root@beaglebone:/home/xsentius/2# sudo ./pru_loader pru_egp_output.bin
> prussdrv_open() failed
>
>
> Any ideas?
> Some system properties:
>
> root@beaglebone:/home/xsentius/2# lsmod
> Module Size Used by
> c_can_platform 6410 0
> c_can 9553 1 c_can_platform
> can_dev 11401 1 c_can
> uio_pruss 4582 0
> root@beaglebone:/home/xsentius/2# uname -a
> Linux beaglebone 4.1.20-bone-rt-r20 #1 Sat Mar 19 06:28:47 UTC 2016
> armv7l GNU/Linux
>
>
>
>
--
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].
For more options, visit https://groups.google.com/d/optout.