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.