Blink test using libpruio but failed

Hi guys, I tried to access the PRU with a simple blink test on Beaglebone Black using libpruio library. But I get this error,

I've found the Exploring Beaglebone book to be invaluable for getting
the PRU working.

https://www.amazon.com/Exploring-BeagleBone-Techniques-Building-Embedded/dp/1118935128/ref=sr_1_sc_1

It walks you through configuring the PRU and provides example code for it.

It has a great website and companion code too. Chapter 13 is about the PRU:

http://exploringbeaglebone.com/chapter13/
https://github.com/derekmolloy/exploringBB/tree/master/chp13

Best,
Justin

Hello Loo Chuan Yin!

Hi guys, I tried to access the PRU with a simple blink test on Beaglebone Black using libpruio library. But I get this error,

**
initialisation failed (out of memory)

Find descriptions for error codes in the documentation. In your case the constructor failed, check libpruio: Messages. libpruio failed to allocate a small amount of memory (< 4kB).

Segmentation fault

This second message I do not understand. Any further issue is on your system, not related to libpruio.

Regards

I checked your code more in detail. This message is because your code continues despite the error in the constructor. Better stop in that case (as in the original stepper.c example).

Regards