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
T.
On 04/06/2015 07:30, Karteek YV wrote:
use function in examples provided in the package
prussdrv_exec_program (PRU_NUM, "./text.bin");
PRU_NUM is defined as 0 in the example, you can use other notation to
define both pru0 and pru1
#define PRU_NUM0 0
#define PRU_NUM1 1
.....
.....
prussdrv_exec_program (PRU_NUM0, "./text1.bin"); //text1.bin for pru0
prussdrv_exec_program (PRU_NUM1, "./text2.bin"); //text2.bin for pru1
...
...
On Tuesday, 2 June 2015 15:03:54 UTC+5:30, ciesla...@gmail.com wrote:
I've got one question - how can I switch on the PRU (both of them)
on the BeagleBone so I can access them using "am335x pru package".
Nowadays I'm using Debian and in order to enable them I'm using
the PRU cape:
|echo BB-BONE-PRU-01 >/sys/devices/bone_capemgr.x/slots|
Is it the only way to do that? Since I remember the cape is
muxxing by default some I/O to the PRU.
--
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.