Trouble in getting started with PRU

Hi guys,

I am having some problems in getting started with PRU.

So, first of all, I installed one PRU compiler (CSS) (I follow this article:

After having the compiled the file, and from what I’ve read throughout the internet, I thought that in order to run a program into the PRU I should simply do:

  • cp mycode.out /lib/firmware/am335x-pru0-fw
  • echo ‘start’ > /sys/class/remoteproc/remoteproc1/state

However, If I try it with a code to blink a led it does nothing (example of the code for blinking a LED above).

volatile register unsigned int __R30;

int main(void) {

__R30 = SET_MASK;

while(1) {
__R30 = __R30 & ~(SET_MASK);
__delay_cycles(100000000); // half-second delay


I’ve also tried to follow this tutorial:
and I get an error when I do: ./loader text.bin data.bin, it says an error message of “prudrv failed to open”. But I can’t quit understand what that program does.

Can anyone tell me what am I doing wrong ?

Thanks you very much,
Fred Gomes

My recommendation is to check out
The Beaglebone Black has the needed compiler and linker modules. You can compiler code directly on the BBB, no need to compile on the PC and then transfer to the BBB. Chad