On 6/4/2015 7:28 AM, Tomasz Cieśla wrote: > hi, > I'm doing that: > > #include <prussdrv.h> > #define PRU_NUM0 0 > #define PRU_NUM1 1 > #define AM33XX > prussdrv_init (); > prussdrv_open(PRU_EVTOUT_0); > prussdrv_open(PRU_EVTOUT_1); > prussdrv_exec_program (PRU_NUM0, "./text.bin"); > prussdrv_exec_program (PRU_NUM1, "./text1.bin"); > > but without enabling the PRU from the Linux: > | > echo BB-BONE-PRU-01 >/sys/devices/bone_capemgr.x/slots| > > prussdrv_open() returns an error
Unless you enable the PRU via a custom device tree or by loading an overlay, it's disabled. The BB-BONE-PRU-01 is one overlay that enables the PRU, but there are many others (like my universal overlay[1]), or you can create your own. [1] https://github.com/cdsteinkuehler/beaglebone-universal-io -- Charles Steinkuehler char...@steinkuehler.net -- 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 beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature